Introduce ada_binop_addsub_operation
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
73796c73
TT
12021-03-08 Tom Tromey <tom@tromey.com>
2
3 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
4 * ada-exp.h (class ada_binop_addsub_operation): New.
5
cd9a3148
TT
62021-03-08 Tom Tromey <tom@tromey.com>
7
8 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
9 (ada_resolve_variable): Declare.
10 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
11 (ada_resolve_variable): New functions.
12 (resolve_subexp): Update.
13
cf12b17f
TT
142021-03-08 Tom Tromey <tom@tromey.com>
15
16 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
17 method.
18 * c-exp.h (class opencl_ternop_cond_operation): New.
19
944fd3b8
TT
202021-03-08 Tom Tromey <tom@tromey.com>
21
22 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
23 method.
24 * c-exp.h (class opencl_logical_binop_operation): New.
25
33b79214
TT
262021-03-08 Tom Tromey <tom@tromey.com>
27
28 * opencl-lang.c (opencl_structop_operation::evaluate): New
29 method.
30 * c-exp.h (class opencl_structop_operation): New.
31
2492ba36
TT
322021-03-08 Tom Tromey <tom@tromey.com>
33
34 * opencl-lang.c (opencl_logical_not): No longer static. Change
35 parameters.
36 (evaluate_subexp_opencl): Update.
37 * c-exp.h (opencl_notequal_operation): New typedef.
38
a88c3c8d
TT
392021-03-08 Tom Tromey <tom@tromey.com>
40
41 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
42 static. Change parameters.
43 (eval_opencl_assign): No longer static. Add "op" parameter.
44 (evaluate_subexp_opencl): Update.
45 * c-exp.h (opencl_binop_operation): New template class.
46 (opencl_assign_operation, opencl_equal_operation)
47 (opencl_notequal_operation, opencl_less_operation)
48 (opencl_gtr_operation, opencl_geq_operation)
49 (opencl_leq_operation): New typedefs.
50
e9677704
TT
512021-03-08 Tom Tromey <tom@tromey.com>
52
53 * opencl-lang.c (opencl_value_cast): No longer static.
54 * c-exp.h (opencl_cast_type_operation): New typedef.
55
f403a4e4
TT
562021-03-08 Tom Tromey <tom@tromey.com>
57
58 * f-exp.h (eval_op_f_allocated): Declare.
59 (fortran_allocated_operation): New typedef.
60 * f-lang.c (eval_op_f_allocated): No longer static.
61
eb4c9271
TT
622021-03-08 Tom Tromey <tom@tromey.com>
63
64 * f-lang.c (eval_op_f_associated): New functions.
65 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
66 typedefs.
67
58a76c72
TT
682021-03-08 Tom Tromey <tom@tromey.com>
69
70 * f-lang.c (fortran_bound_1arg::evaluate)
71 (fortran_bound_2arg::evaluate): New methods.
72 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
73 New.
74
2f98abe1
TT
752021-03-08 Tom Tromey <tom@tromey.com>
76
77 * expop.h (class unop_addr_operation) <get_expression>: New
78 method.
79 * f-lang.c (fortran_undetermined::value_subarray)
80 (fortran_undetermined::evaluate): New methods.
81 (fortran_prepare_argument): New overload.
82 * f-exp.h (class fortran_range_operation)
83 (class fortran_undetermined): New classes.
84
638fd74a
TT
852021-03-08 Tom Tromey <tom@tromey.com>
86
87 * rust-lang.c (rust_structop::evaluate_funcall): New method.
88 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
89 method.
90
a00b7254
TT
912021-03-08 Tom Tromey <tom@tromey.com>
92
93 * expression.h (class operation) <evaluate_funcall>: New methods.
94 * expop.h (class scope_operation) <evaluate_funcall>: New method.
95 (class var_value_operation) <evaluate_funcall>: New method.
96 (class structop_base_operation) <evaluate_funcall>: New method.
97 (class var_msym_value_operation) <evaluate_funcall>: New method.
98 (class structop_member_base): New class.
99 (class structop_member_operation): Derive from
100 structop_member_base.
101 (class structop_mptr_operation): Derive from
102 structop_member_base.
103 (class funcall_operation): New class.
104 * eval.c (operation::evaluate_funcall)
105 (var_value_operation::evaluate_funcall)
106 (scope_operation::evaluate_funcall)
107 (structop_member_base::evaluate_funcall)
108 (structop_base_operation::evaluate_funcall): New methods.
109
1c02eb30
TT
1102021-03-08 Tom Tromey <tom@tromey.com>
111
112 * expop.h (class array_operation): New.
113 * eval.c (array_operation::evaluate_struct_tuple)
114 (array_operation::evaluate): New methods.
115
e4479080
TT
1162021-03-08 Tom Tromey <tom@tromey.com>
117
118 * expop.h (class adl_func_operation): New.
119 * eval.c (adl_func_operation::evaluate): New method.
120
95d49dfb
TT
1212021-03-08 Tom Tromey <tom@tromey.com>
122
123 * ada-lang.c (ada_unop_in_range): No longer static.
124 * ada-exp.h (class ada_unop_range_operation): New.
125
7c15d377
TT
1262021-03-08 Tom Tromey <tom@tromey.com>
127
128 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
129 No longer static.
130 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
131 (ada_atr_size_operation, ada_abs_operation): New typedefs.
132
5019124b
TT
1332021-03-08 Tom Tromey <tom@tromey.com>
134
135 * expop.h (class logical_and_operation)
136 (class logical_or_operation): New.
137 * eval.c (logical_and_operation::evaluate)
138 (logical_or_operation::evaluate): New methods.
139 * ax-gdb.c (logical_and_operation::do_generate_ax)
140 (logical_or_operation::do_generate_ax): New methods.
141
2bc9b40c
TT
1422021-03-08 Tom Tromey <tom@tromey.com>
143
144 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
145 static.
146 * m2-exp.h: New file.
147
5947d337
TT
1482021-03-08 Tom Tromey <tom@tromey.com>
149
150 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
151 * rust-exp.h (class rust_aggregate_operation): New.
152
e4407a20
TT
1532021-03-08 Tom Tromey <tom@tromey.com>
154
155 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
156 No longer static.
157 * rust-exp.h (class rust_struct_anon): New.
158 (class rust_structop): New.
159
9db6b6dd
TT
1602021-03-08 Tom Tromey <tom@tromey.com>
161
162 * rust-lang.c (rust_range): No longer static.
163 * rust-exp.h (class rust_range_operation): New.
164
6ce1ad67
TT
1652021-03-08 Tom Tromey <tom@tromey.com>
166
167 * rust-lang.c (rust_subscript): No longer static.
168 * rust-exp.h (class rust_subscript_operation): New.
169
11dd3dce
TT
1702021-03-08 Tom Tromey <tom@tromey.com>
171
172 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
173 parameter.
174 (rust_evaluate_subexp): Update.
175 * rust-exp.h (class rust_unop_ind_operation): New.
176
6fab4359
TT
1772021-03-08 Tom Tromey <tom@tromey.com>
178
179 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
180 longer static. Add "opcode" parameter.
181 (rust_evaluate_subexp): Update.
182 * rust-exp.h: New file.
183
9dcd3e29
TT
1842021-03-08 Tom Tromey <tom@tromey.com>
185
186 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
187 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
188 (eval_op_f_kind): No longer static. Add "opcode" parameter.
189 (evaluate_subexp_f): Update.
190 * f-exp.h: New file.
191
fc715eb2
TT
1922021-03-08 Tom Tromey <tom@tromey.com>
193
194 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
195 * ada-exp.h (class ada_ternop_range_operation): New.
196
cc6bd32e
TT
1972021-03-08 Tom Tromey <tom@tromey.com>
198
199 * ada-lang.c (ada_qual_operation::evaluate): New method.
200 * ada-exp.h (class ada_qual_operation): New.
201
42fecb61
TT
2022021-03-08 Tom Tromey <tom@tromey.com>
203
204 * ada-lang.c (ada_string_operation::evaluate): New method.
205 * ada-exp.h (class ada_string_operation): New.
206
03070ee9
TT
2072021-03-08 Tom Tromey <tom@tromey.com>
208
209 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
210 * ada-exp.h: New file.
211
821e72d7
TT
2122021-03-08 Tom Tromey <tom@tromey.com>
213
214 * expop.h (class multi_subscript_operation): New.
215 * eval.c (multi_subscript_operation::evaluate): New method.
216
085734dd
TT
2172021-03-08 Tom Tromey <tom@tromey.com>
218
219 * eval.c (objc_msgcall_operation::evaluate): New method.
220 * c-exp.h (class objc_msgcall_operation): New.
221
e82a5afc
TT
2222021-03-08 Tom Tromey <tom@tromey.com>
223
224 * expop.h (class var_value_operation): New.
225 * eval.c (var_value_operation::evaluate)
226 (var_value_operation::evaluate_for_address)
227 (var_value_operation::evaluate_with_coercion)
228 (var_value_operation::evaluate_for_sizeof)
229 (var_value_operation::evaluate_for_cast): New methods.
230 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
231
d9ad79d8
TT
2322021-03-08 Tom Tromey <tom@tromey.com>
233
234 * expop.h (cxx_cast_ftype): New typedef.
235 (cxx_cast_operation): New template.
236 (dynamic_cast_operation, reinterpret_cast_operation): New
237 typedefs.
238
292382f4
TT
2392021-03-08 Tom Tromey <tom@tromey.com>
240
241 * expop.h (class unop_cast_type_operation): New.
242 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
243 method.
244
165a813a
TT
2452021-03-08 Tom Tromey <tom@tromey.com>
246
247 * expop.h (class unop_cast_operation): New.
248 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
249
e5946e16
TT
2502021-03-08 Tom Tromey <tom@tromey.com>
251
252 * expop.h (class assign_modify_operation): New.
253 * eval.c (eval_binop_assign_modify): No longer static.
254 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
255
40786782
TT
2562021-03-08 Tom Tromey <tom@tromey.com>
257
258 * expop.h (class assign_operation): New.
259 * ax-gdb.c (assign_operation::do_generate_ax): New method.
260
44b675c8
TT
2612021-03-08 Tom Tromey <tom@tromey.com>
262
263 * expop.h (class type_instance_operation): New.
264 * eval.c (type_instance_operation::evaluate): New method.
265
f6b42326
TT
2662021-03-08 Tom Tromey <tom@tromey.com>
267
268 * expop.h (class op_this_operation): New.
269 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
270
cbc18219
TT
2712021-03-08 Tom Tromey <tom@tromey.com>
272
273 * expop.h (class unop_memval_operation)
274 (class unop_memval_type_operation): New.
275 * eval.c (eval_op_memval): No longer static.
276 (unop_memval_operation::evaluate_for_address)
277 (unop_memval_type_operation::evaluate_for_address)
278 (unop_memval_operation::evaluate_for_sizeof)
279 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
280 * ax-gdb.c (unop_memval_operation::do_generate_ax)
281 (unop_memval_type_operation::do_generate_ax): New methods.
282
ae4bb61e
TT
2832021-03-08 Tom Tromey <tom@tromey.com>
284
285 * expop.h (class unop_alignof_operation): New.
286 * eval.c (eval_op_alignof): No longer static.
287
85d23bda
TT
2882021-03-08 Tom Tromey <tom@tromey.com>
289
290 * expop.h (class unop_sizeof_operation): New.
291 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
292
14aff815
TT
2932021-03-08 Tom Tromey <tom@tromey.com>
294
295 * expop.h (class unop_addr_operation): New.
296 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
297
929f3aa7
TT
2982021-03-08 Tom Tromey <tom@tromey.com>
299
300 * expop.h (class typeid_operation): New.
301
0af8829e
TT
3022021-03-08 Tom Tromey <tom@tromey.com>
303
304 * expop.h (class decltype_operation): New.
305
4efc574c
TT
3062021-03-08 Tom Tromey <tom@tromey.com>
307
308 * expop.h (class typeof_operation): New.
309
5b5f5140
TT
3102021-03-08 Tom Tromey <tom@tromey.com>
311
312 * expop.h (class type_operation): New.
313 * eval.c (eval_op_type): No longer static.
314
876469ff
TT
3152021-03-08 Tom Tromey <tom@tromey.com>
316
317 * expop.h (class unop_ind_base_operation)
318 (class unop_ind_operation): New.
319 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
320 (unop_ind_base_operation::evaluate_for_address)
321 (unop_ind_base_operation::evaluate_for_sizeof): New method.
322 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
323
6d89e296
TT
3242021-03-08 Tom Tromey <tom@tromey.com>
325
326 * expop.h (unop_incr_operation): New template.
327 (preinc_operation, predec_operation, postinc_operation)
328 (postdec_operation): New typedefs.
329 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
330 (eval_op_postdec): No longer static.
331
9307d17b
TT
3322021-03-08 Tom Tromey <tom@tromey.com>
333
334 * expop.h (unary_ftype): New typedef.
335 (unop_operation, usual_ax_binop_operation): New templates.
336 (unary_plus_operation, unary_neg_operation)
337 (unary_complement_operation, unary_logical_not_operation): New
338 typedefs.
339 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
340 (eval_op_lognot): No longer static.
341 * ax-gdb.c (gen_expr_unop): New function.
342
ae64ba58
TT
3432021-03-08 Tom Tromey <tom@tromey.com>
344
345 * ax-gdb.c (comma_operation::do_generate_ax): New method.
346
d4eff4c1
TT
3472021-03-08 Tom Tromey <tom@tromey.com>
348
349 * expop.h (class repeat_operation): New.
350 * eval.c (eval_op_repeat): No longer static. Remove "op"
351 parameter.
352 (evaluate_subexp_standard): Update.
353 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
354
46916f2b
TT
3552021-03-08 Tom Tromey <tom@tromey.com>
356
357 * expop.h (class comparison_operation): New.
358 (equal_operation, notequal_operation, less_operation)
359 (gtr_operation, geq_operation, leq_operation): New typedefs.
360 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
361 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
362
224d6424
TT
3632021-03-08 Tom Tromey <tom@tromey.com>
364
365 * expop.h (class subscript_operation): New.
366 * eval.c (eval_op_subscript): No longer static.
367
373907ff
TT
3682021-03-08 Tom Tromey <tom@tromey.com>
369
370 * expop.h (class binop_operation, class usual_ax_binop_operation):
371 New.
372 (exp_operation, intdiv_operation, mod_operation, mul_operation)
373 (div_operation, rem_operation, lsh_operation, rsh_operation)
374 (bitwise_and_operation, bitwise_ior_operation)
375 (bitwise_xor_operation): New typedefs.
376 * eval.c (eval_op_binary): No longer static.
377
5133d78b
TT
3782021-03-08 Tom Tromey <tom@tromey.com>
379
380 * expop.h (class sub_operation): New.
381 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
382 (evaluate_subexp_standard): Update.
383
a94323b6
TT
3842021-03-08 Tom Tromey <tom@tromey.com>
385
386 * expop.h (class add_operation): New.
387 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
388 (evaluate_subexp_standard): Update.
389
e51e26a0
TT
3902021-03-08 Tom Tromey <tom@tromey.com>
391
392 * expop.h (class concat_operation): New.
393 * eval.c (eval_op_concat): No longer static. Remove "op"
394 parameter.
395 (evaluate_subexp_standard): Update.
396
07f724a8
TT
3972021-03-08 Tom Tromey <tom@tromey.com>
398
399 * expop.h (class structop_member_operation)
400 (class structop_mptr_operation): New.
401 * eval.c (eval_op_member): No longer static.
402
ab0609be
TT
4032021-03-08 Tom Tromey <tom@tromey.com>
404
405 * expop.h (class structop_ptr_operation): New.
406 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
407 parameter.
408
808b22cf
TT
4092021-03-08 Tom Tromey <tom@tromey.com>
410
411 * expop.h (class structop_base_operation)
412 (class structop_operation): New.
413 * eval.c (eval_op_structop_struct): No longer static.
414
8cfd3e95
TT
4152021-03-08 Tom Tromey <tom@tromey.com>
416
417 * expop.h (class complex_operation): New.
418
09db3700
TT
4192021-03-08 Tom Tromey <tom@tromey.com>
420
421 * eval.c (eval_op_objc_selector): No longer static.
422 * c-exp.h (class objc_selector_operation): New.
423
06dc61b9
TT
4242021-03-08 Tom Tromey <tom@tromey.com>
425
426 * eval.c: Include c-exp.h.
427 * c-exp.h (class objc_nsstring_operation): New.
428
72d0a711
TT
4292021-03-08 Tom Tromey <tom@tromey.com>
430
431 * c-lang.c (c_string_operation::evaluate): New method.
432 * c-exp.h: New file.
433
9186293f
TT
4342021-03-08 Tom Tromey <tom@tromey.com>
435
436 * expop.h (class ternop_cond_operation): New.
437 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
438
1594e0bb
TT
4392021-03-08 Tom Tromey <tom@tromey.com>
440
441 * expop.h (class ternop_slice_operation): New.
442 * eval.c (eval_op_ternop): No longer static.
443
b50db09f
TT
4442021-03-08 Tom Tromey <tom@tromey.com>
445
446 * expop.h (class string_operation): New.
447 * eval.c (eval_op_string): No longer static.
448
e6e01e16
TT
4492021-03-08 Tom Tromey <tom@tromey.com>
450
451 * expop.h (class internalvar_operation): New.
452 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
453
e6985c5e
TT
4542021-03-08 Tom Tromey <tom@tromey.com>
455
456 * expop.h (class bool_operation): New.
457
55bdbff8
TT
4582021-03-08 Tom Tromey <tom@tromey.com>
459
460 * expop.h (class register_operation): New.
461 * eval.c (eval_op_register): No longer static.
462 * ax-gdb.c (register_operation::do_generate_ax): New method.
463
247d935b
TT
4642021-03-08 Tom Tromey <tom@tromey.com>
465
466 * expop.h (class last_operation): New.
467
17679395
TT
4682021-03-08 Tom Tromey <tom@tromey.com>
469
470 * expop.h (class func_static_var_operation): New.
471 * eval.c (eval_op_func_static_var): No longer static.
472
b5cc3923
TT
4732021-03-08 Tom Tromey <tom@tromey.com>
474
475 * expop.h (class var_entry_value_operation): New.
476 * eval.c (eval_op_var_entry_value): No longer static.
477
0c8effa3
TT
4782021-03-08 Tom Tromey <tom@tromey.com>
479
480 * expression.h (class operation) <set_outermost>: New method.
481 * expop.h (class var_msym_value_operation): New.
482 * eval.c (eval_op_var_msym_value): No longer static.
483 (var_msym_value_operation::evaluate_for_address)
484 (var_msym_value_operation::evaluate_for_sizeof)
485 (var_msym_value_operation::evaluate_for_cast): New methods.
486 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
487 method.
488
d336c29e
TT
4892021-03-08 Tom Tromey <tom@tromey.com>
490
491 * expop.h (class long_const_operation): New.
492 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
493
d5ab122c
TT
4942021-03-08 Tom Tromey <tom@tromey.com>
495
496 * expop.h (class scope_operation): New.
497 * eval.c (eval_op_scope): No longer static.
498 (scope_operation::evaluate_for_address): New method.
499 * ax-gdb.c (scope_operation::do_generate_ax): New method.
500
cae26a0c
TT
5012021-03-08 Tom Tromey <tom@tromey.com>
502
503 * expprint.c (float_const_operation::dump): New method.
504 * expop.h (float_data): New typedef.
505 (class float_const_operation): New.
506
75f9892d
TT
5072021-03-08 Tom Tromey <tom@tromey.com>
508
509 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
510 * ax-gdb.c (gen_expr_binop): New function.
511 (gen_expr_structop): Likewise.
512
de401988
TT
5132021-03-08 Tom Tromey <tom@tromey.com>
514
515 * expprint.c (expr::dump_for_expression): New functions.
516 * expop.h (dump_for_expression): New overloads.
517 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
518 Update.
519
e2803273
TT
5202021-03-08 Tom Tromey <tom@tromey.com>
521
522 * expression.h (expr::operation): New class.
523 (expr::make_operation): New function.
524 (expr::operation_up): New typedef.
525 * expop.h: New file.
526 * eval.c (operation::evaluate_for_cast)
527 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
528 New methods.
529 * ax-gdb.c (operation::generate_ax): New method.
530
e18c58f2
TT
5312021-03-08 Tom Tromey <tom@tromey.com>
532
533 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
534 (gen_expr_binop_rest): New overload.
535
c0d7ed8c
TT
5362021-03-08 Tom Tromey <tom@tromey.com>
537
538 * eval.c (eval_multi_subscript): New function.
539 (evaluate_subexp_standard): Use it.
540
dd5fd283
TT
5412021-03-08 Tom Tromey <tom@tromey.com>
542
543 * ada-lang.c (ada_binop_exp): New function.
544 (ada_evaluate_subexp): Use it.
545
3848abd6
TT
5462021-03-08 Tom Tromey <tom@tromey.com>
547
548 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
549 parameters.
550 (ada_evaluate_subexp): Use it.
551
38dc70cf
TT
5522021-03-08 Tom Tromey <tom@tromey.com>
553
554 * ada-lang.c (ada_binop_minmax): New function.
555 (ada_evaluate_subexp): Use it.
556
b84564fc
TT
5572021-03-08 Tom Tromey <tom@tromey.com>
558
559 * ada-lang.c (ada_unop_atr): New function.
560 (ada_evaluate_subexp): Use it.
561
b467efaa
TT
5622021-03-08 Tom Tromey <tom@tromey.com>
563
564 * ada-lang.c (ada_binop_in_bounds): New function.
565 (ada_evaluate_subexp): Use it.
566
5ce19db8
TT
5672021-03-08 Tom Tromey <tom@tromey.com>
568
569 * ada-lang.c (ada_ternop_slice): New function.
570 (ada_evaluate_subexp): Use it.
571
214b13ac
TT
5722021-03-08 Tom Tromey <tom@tromey.com>
573
574 * ada-lang.c (ada_equal_binop): New function.
575 (ada_evaluate_subexp): Use it.
576
faa1dfd7
TT
5772021-03-08 Tom Tromey <tom@tromey.com>
578
579 * ada-lang.c (ada_mult_binop): New function.
580 (ada_evaluate_subexp): Use it.
581
d05e24e6
TT
5822021-03-08 Tom Tromey <tom@tromey.com>
583
584 * ada-lang.c (ada_abs): New function.
585 (ada_evaluate_subexp): Use it.
586
68c75735
TT
5872021-03-08 Tom Tromey <tom@tromey.com>
588
589 * ada-lang.c (ada_atr_size): New function.
590 (ada_evaluate_subexp): Use it.
591
020dbabe
TT
5922021-03-08 Tom Tromey <tom@tromey.com>
593
594 * ada-lang.c (ada_atr_tag): New function.
595 (ada_evaluate_subexp): Use it.
596
7efc87ff
TT
5972021-03-08 Tom Tromey <tom@tromey.com>
598
599 * ada-lang.c (ada_unop_in_range): New function.
600 (ada_evaluate_subexp): Use it.
601
82390ab8
TT
6022021-03-08 Tom Tromey <tom@tromey.com>
603
604 * ada-lang.c (ada_unop_neg): New function.
605 (ada_evaluate_subexp): Use it.
606
62d4bd94
TT
6072021-03-08 Tom Tromey <tom@tromey.com>
608
609 * ada-lang.c (eval_ternop_in_range): New function.
610 (ada_evaluate_subexp): Use it.
611
3634f669
TT
6122021-03-08 Tom Tromey <tom@tromey.com>
613
614 * opencl-lang.c (eval_opencl_assign): New function.
615 (evaluate_subexp_opencl): Use it.
616
5e80600e
TT
6172021-03-08 Tom Tromey <tom@tromey.com>
618
619 * eval.c (eval_op_objc_msgcall): New function.
620 (evaluate_subexp_standard): Use it.
621
fb5ba2ab
TT
6222021-03-08 Tom Tromey <tom@tromey.com>
623
624 * eval.c (eval_binop_assign_modify): New function.
625 (evaluate_subexp_standard): Use it.
626
a49881f7
TT
6272021-03-08 Tom Tromey <tom@tromey.com>
628
629 * m2-lang.c (eval_op_m2_subscript): New function.
630 (evaluate_subexp_modula2): Use it.
631
41bdced5
TT
6322021-03-08 Tom Tromey <tom@tromey.com>
633
634 * m2-lang.c (eval_op_m2_high): New function.
635 (evaluate_subexp_modula2): Use it.
636
13ea014a
TT
6372021-03-08 Tom Tromey <tom@tromey.com>
638
639 * eval.c (evaluate_subexp_for_address_base): New function.
640 (evaluate_subexp_for_address): Use it.
641 (evaluate_subexp_for_sizeof_base): New function.
642 (evaluate_subexp_for_sizeof): Use it.
643
1fa41fc7
TT
6442021-03-08 Tom Tromey <tom@tromey.com>
645
646 * rust-lang.c (eval_op_rust_structop): New function.
647 (rust_evaluate_subexp): Use it.
648
575cae23
TT
6492021-03-08 Tom Tromey <tom@tromey.com>
650
651 * rust-lang.c (eval_op_rust_struct_anon): New function.
652 (rust_evaluate_subexp): Use it.
653
05104233
TT
6542021-03-08 Tom Tromey <tom@tromey.com>
655
656 * rust-lang.c (eval_op_rust_array): New function.
657 (rust_evaluate_subexp): Use it.
658
6fa9831f
TT
6592021-03-08 Tom Tromey <tom@tromey.com>
660
661 * rust-lang.c (eval_op_rust_complement): New function.
662 (rust_evaluate_subexp): Use it.
663
d123f9e4
TT
6642021-03-08 Tom Tromey <tom@tromey.com>
665
666 * rust-lang.c (eval_op_rust_ind): New function.
667 (rust_evaluate_subexp): Use it.
668
984af2cb
TT
6692021-03-08 Tom Tromey <tom@tromey.com>
670
671 * rust-lang.c (rust_subscript): Change parameters.
672 (rust_evaluate_subexp): Update.
673
d148f803
TT
6742021-03-08 Tom Tromey <tom@tromey.com>
675
676 * rust-lang.c (rust_range): Change parameters.
677 (rust_evaluate_subexp): Update.
678
9cbd1c20
TT
6792021-03-08 Tom Tromey <tom@tromey.com>
680
681 * f-lang.c (eval_op_f_allocated): New function.
682 (evaluate_subexp_f): Use it.
683
3c18c49c
TT
6842021-03-08 Tom Tromey <tom@tromey.com>
685
686 * f-lang.c (fortran_require_array): New function.
687 (evaluate_subexp_f): Use it.
688
216f6fcb
TT
6892021-03-08 Tom Tromey <tom@tromey.com>
690
691 * f-lang.c (eval_op_f_kind): New function.
692 (evaluate_subexp_f): Use it.
693
00f2db6f
TT
6942021-03-08 Tom Tromey <tom@tromey.com>
695
696 * f-lang.c (eval_op_f_cmplx): New function.
697 (evaluate_subexp_f): Use it.
698
93b2b5fa
TT
6992021-03-08 Tom Tromey <tom@tromey.com>
700
701 * f-lang.c (eval_op_f_modulo): New function.
702 (evaluate_subexp_f): Use it.
703
9f1a1f3c
TT
7042021-03-08 Tom Tromey <tom@tromey.com>
705
706 * f-lang.c (eval_op_f_floor): New function.
707 (evaluate_subexp_f): Use it.
708
3dc41f3c
TT
7092021-03-08 Tom Tromey <tom@tromey.com>
710
711 * f-lang.c (eval_op_f_ceil): New function.
712 (evaluate_subexp_f): Use it.
713
e08109f2
TT
7142021-03-08 Tom Tromey <tom@tromey.com>
715
716 * f-lang.c (eval_op_f_mod): New function.
717 (evaluate_subexp_f): Use it.
718
cc05c68e
TT
7192021-03-08 Tom Tromey <tom@tromey.com>
720
721 * f-lang.c (eval_op_f_abs): New function.
722 (evaluate_subexp_f): Use it.
723
aec95807
TT
7242021-03-08 Tom Tromey <tom@tromey.com>
725
726 * eval.c (eval_op_type): New function.
727 (evaluate_subexp_standard): Use it.
728
a220ead5
TT
7292021-03-08 Tom Tromey <tom@tromey.com>
730
731 * eval.c (eval_op_postdec): New function.
732 (evaluate_subexp_standard): Use it.
733
abffe116
TT
7342021-03-08 Tom Tromey <tom@tromey.com>
735
736 * eval.c (eval_op_postinc): New function.
737 (evaluate_subexp_standard): Use it.
738
9e1361b7
TT
7392021-03-08 Tom Tromey <tom@tromey.com>
740
741 * eval.c (eval_op_predec): New file.
742 (evaluate_subexp_standard): Use it.
743
00f50884
TT
7442021-03-08 Tom Tromey <tom@tromey.com>
745
746 * eval.c (eval_op_preinc): New function.
747 (evaluate_subexp_standard): Use it.
748
3aef2a07
TT
7492021-03-08 Tom Tromey <tom@tromey.com>
750
751 * eval.c (eval_op_memval): New function.
752 (evaluate_subexp_standard): Use it.
753
acee9468
TT
7542021-03-08 Tom Tromey <tom@tromey.com>
755
756 * eval.c (eval_op_alignof): New function.
757 (evaluate_subexp_standard): Use it.
758
786f70ee
TT
7592021-03-08 Tom Tromey <tom@tromey.com>
760
761 * eval.c (eval_op_ind): New function.
762 (evaluate_subexp_standard): Use it.
763
24338fb9
TT
7642021-03-08 Tom Tromey <tom@tromey.com>
765
766 * eval.c (eval_op_lognot): New function.
767 (evaluate_subexp_standard): Use it.
768
1f09ec81
TT
7692021-03-08 Tom Tromey <tom@tromey.com>
770
771 * eval.c (eval_op_complement): New function.
772 (evaluate_subexp_standard): Use it.
773
606d105f
TT
7742021-03-08 Tom Tromey <tom@tromey.com>
775
776 * eval.c (eval_op_neg): New function.
777 (evaluate_subexp_standard): Use it.
778
39f288be
TT
7792021-03-08 Tom Tromey <tom@tromey.com>
780
781 * eval.c (eval_op_plus): New function.
782 (evaluate_subexp_standard): Use it.
783
eed70b1c
TT
7842021-03-08 Tom Tromey <tom@tromey.com>
785
786 * eval.c (eval_op_repeat): New function.
787 (evaluate_subexp_standard): Use it.
788
60cdd487
TT
7892021-03-08 Tom Tromey <tom@tromey.com>
790
791 * eval.c (eval_op_leq): New function.
792 (evaluate_subexp_standard): Use it.
793
96e3efd9
TT
7942021-03-08 Tom Tromey <tom@tromey.com>
795
796 * eval.c (eval_op_geq): New function.
797 (evaluate_subexp_standard): Use it.
798
1f78d732
TT
7992021-03-08 Tom Tromey <tom@tromey.com>
800
801 * eval.c (eval_op_gtr): New function.
802 (evaluate_subexp_standard): Use it.
803
6cad1349
TT
8042021-03-08 Tom Tromey <tom@tromey.com>
805
806 * eval.c (eval_op_less): New function.
807 (evaluate_subexp_standard): Use it.
808
1fcb3559
TT
8092021-03-08 Tom Tromey <tom@tromey.com>
810
811 * eval.c (eval_op_notequal): New function.
812 (evaluate_subexp_standard): Use it.
813
0cc96de8
TT
8142021-03-08 Tom Tromey <tom@tromey.com>
815
816 * eval.c (eval_op_equal): New function.
817 (evaluate_subexp_standard): Use it.
818
288d26bc
TT
8192021-03-08 Tom Tromey <tom@tromey.com>
820
821 * eval.c (eval_op_subscript): New function.
822 (evaluate_subexp_standard): Use it.
823
7cdcdd02
TT
8242021-03-08 Tom Tromey <tom@tromey.com>
825
826 * eval.c (eval_op_binary): New function.
827 (evaluate_subexp_standard): Use it.
828
d9790e22
TT
8292021-03-08 Tom Tromey <tom@tromey.com>
830
831 * eval.c (eval_op_sub): New function.
832 (evaluate_subexp_standard): Use it.
833
aedaf9ac
TT
8342021-03-08 Tom Tromey <tom@tromey.com>
835
836 * eval.c (eval_op_add): New function.
837 (evaluate_subexp_standard): Use it.
838
b7a96ed2
TT
8392021-03-08 Tom Tromey <tom@tromey.com>
840
841 * eval.c (eval_op_member): New function.
842 (evaluate_subexp_standard): Use it.
843
fb461aa3
TT
8442021-03-08 Tom Tromey <tom@tromey.com>
845
846 * eval.c (eval_op_structop_ptr): New function.
847 (evaluate_subexp_standard): Use it.
848
3e96c4fc
TT
8492021-03-08 Tom Tromey <tom@tromey.com>
850
851 * eval.c (eval_op_structop_struct): New function.
852 (evaluate_subexp_standard): Use it.
853
f960a617
TT
8542021-03-08 Tom Tromey <tom@tromey.com>
855
856 * eval.c (eval_op_ternop): New function.
857 (evaluate_subexp_standard): Use it.
858
5c2f201e
TT
8592021-03-08 Tom Tromey <tom@tromey.com>
860
861 * eval.c (eval_op_concat): New function.
862 (evaluate_subexp_standard): Use it.
863
f871bae1
TT
8642021-03-08 Tom Tromey <tom@tromey.com>
865
866 * eval.c (eval_op_objc_selector): New function.
867 (evaluate_subexp_standard): Use it.
868
14a1c64a
TT
8692021-03-08 Tom Tromey <tom@tromey.com>
870
871 * eval.c (eval_op_string): New function.
872 (evaluate_subexp_standard): Use it.
873
ffff730b
TT
8742021-03-08 Tom Tromey <tom@tromey.com>
875
876 * eval.c (eval_op_register): New function.
877 (evaluate_subexp_standard): Use it.
878
9b1d8af6
TT
8792021-03-08 Tom Tromey <tom@tromey.com>
880
881 * eval.c (eval_op_func_static_var): New function.
882 (evaluate_subexp_standard): Use it.
883
c0df9289
TT
8842021-03-08 Tom Tromey <tom@tromey.com>
885
886 * eval.c (eval_op_var_msym_value): New function.
887 (evaluate_subexp_standard): Use it.
888
50b98adc
TT
8892021-03-08 Tom Tromey <tom@tromey.com>
890
891 * eval.c (eval_op_var_entry_value): New function.
892 (evaluate_subexp_standard): Use it.
893
ea2d29f7
TT
8942021-03-08 Tom Tromey <tom@tromey.com>
895
896 * eval.c (eval_op_scope): New function.
897 (evaluate_subexp_standard): Use it.
898
01573d73
TT
8992021-03-06 Chernov Sergey <klen_s@mail.ru>
900
901 PR gdb/27528:
902 * ada-lang.c (ada_fold_name): Use gdb::to_string.
903
9938d15a
TT
9042021-03-06 Tom Tromey <tom@tromey.com>
905
906 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
907 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
908 * dwarf2/read.c (dwarf2_elf_names): No longer static.
909 (locate_dwz_sections, dwz_search_other_debugdirs)
910 (dwarf2_get_dwz_file): Move to dwz.c.
911 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
912 read.h.
913 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
914 (dwarf2_get_dwz_file): Move from read.c.
915
18035655
TT
9162021-03-06 Tom Tromey <tom@tromey.com>
917
918 * debuginfod-support.h: Include scoped_fd.h.
919
a7308ce0
TT
9202021-03-06 Tom Tromey <tom@tromey.com>
921
922 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
923 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
924 (get_abbrev_section_for_cu, read_attribute_value)
925 (get_debug_line_section): Update.
926 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
927
fbedd546
TT
9282021-03-06 Tom Tromey <tom@tromey.com>
929
930 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
931 method.
932 * dwarf2/read.c (section_is_p): Remove.
933 (dwarf2_per_bfd::locate_sections)
934 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
935 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
936 (dwarf2_locate_common_dwp_sections)
937 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
938 Update.
939
c2a62a3d
TT
9402021-03-06 Tom Tromey <tom@tromey.com>
941
942 * xcoffread.c: Include sect-names.h.
943 * symfile.h (struct dwarf2_section_names, struct
944 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
945 * dwarf2/sect-names.h: New file, from symfile.h.
946 * dwarf2/read.c: Include sect-names.h.
947
4444f407
TT
9482021-03-06 Tom Tromey <tom@tromey.com>
949
950 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
951 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
952 (abbrev_table::read): Update.
953 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
954 (struct abbrev_info): Reformat.
955 <attrs>: Now an array.
956 (struct abbrev_table) <alloc_abbrev>: Remove.
957
dd99cf0c
WP
9582021-03-06 Weimin Pan <weimin.pan@oracle.com>
959
960 * ctfread.c (ctf_psymtab_add_enums): New function.
961 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
962
844be3f2
WP
9632021-03-06 Weimin Pan <weimin.pan@oracle.com>
964
965 * ctfread.c (read_func_kind_type): Set up function arguments.
966
b2668f28
AB
9672021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
968 Andrew Burgess <andrew.burgess@embecosm.com>
969
970 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
971 includes.
972 (riscv_csrset): New static global.
973 (riscv_update_csrmap): New function.
974 (riscv_iterate_over_regset_sections): Process CSRs.
975
d782d24b
AB
9762021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
977
978 * riscv-tdep.c (riscv_feature_name_csr): Define.
979 (riscv_feature_name_cpu): Define.
980 (riscv_feature_name_fpu): Define.
981 (riscv_feature_name_virtual): Define.
982 (riscv_xreg_feature): Use riscv_feature_name_cpu.
983 (riscv_freg_feature): Use riscv_feature_name_fpu.
984 (riscv_virtual_feature): Use riscv_feature_name_virtual.
985 (riscv_csr_feature): Use riscv_feature_name_csr.
986 * riscv-tdep.h (riscv_feature_name_csr): Declare.
987
fb8f3fc0
AB
9882021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
989 Craig Blackmore <craig.blackmore@embecosm.com>
990
991 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
992 (ALLDEPFILES): Add riscv-none-tdep.c.
993 * configure: Regenerate.
994 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
995 support.
996 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
997 * elf-none-tdep.c: New file.
998 * elf-none-tdep.h: New file.
999 * riscv-none-tdep.c: New file.
1000
95ce627a
AB
10012021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1002 Andrew Burgess <andrew.burgess@embecosm.com>
1003
1004 * corelow.c: Add 'xml-tdesc.h' include.
1005 (core_target::read_description): Load the target description from
1006 the core file when possible.
1007 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1008 note.
1009 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1010 (gcore_elf_make_tdesc_note): New function.
1011 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1012 * linux-tdep.c (linux_make_corefile_notes): Add target description
1013 note.
1014
f3a5df7b
AB
10152021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1016
1017 * Makefile.in (SFILES): Add gcore-elf.c.
1018 (HFILES_NO_SRCDIR): Add gcore-elf.h
1019 * configure: Regenerate.
1020 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1021 support.
1022 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1023 (struct fbsd_collect_regset_section_cb_data): Delete.
1024 (fbsd_collect_regset_section_cb): Delete.
1025 (fbsd_collect_thread_registers): Delete.
1026 (struct fbsd_corefile_thread_data): Delete.
1027 (fbsd_corefile_thread): Delete.
1028 (fbsd_make_corefile_notes): Call
1029 gcore_elf_build_thread_register_notes instead of the now deleted
1030 FreeBSD code.
1031 * gcore-elf.c: New file, the content was moved here from
1032 linux-tdep.c, functions were renamed and given minor cleanup.
1033 * gcore-elf.h: New file.
1034 * gcore.c (gcore_find_signalled_thread): Moved here from
1035 linux-tdep.c and given a new name. Minor cleanups.
1036 * gcore.h (gcore_find_signalled_thread): Declare.
1037 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1038 (struct linux_collect_regset_section_cb_data): Delete.
1039 (linux_collect_regset_section_cb): Delete.
1040 (linux_collect_thread_registers): Delete.
1041 (linux_corefile_thread): Call
1042 gcore_elf_build_thread_register_notes.
1043 (find_signalled_thread): Delete.
1044 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1045
d1e93af6
SM
10462021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1047
1048 PR gdb/27147
1049 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1050 process_stratum_target parameter,
1051 sparc_store_inferior_registers): update callers.
1052 * sparc-nat.c (sparc_fetch_inferior_registers,
1053 sparc_store_inferior_registers): Add process_stratum_target
1054 parameter. Switch current thread before calling
1055 sparc_supply_gregset / sparc_collect_rwindow.
1056 (sparc_store_inferior_registers): Likewise.
1057 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1058 (sparc32obsd_collect_uthread): Likewise.
1059 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1060 Add assertion.
1061 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1062 sparc64obsd_supply_uthread): Add assertion.
1063
1178743e
TT
10642021-03-04 Tom Tromey <tromey@adacore.com>
1065
1066 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1067 (aux_add_nonlocal_symbols): Update.
1068 (ada_add_block_symbols): Change "found_sym" to bool.
1069
1bfa81ac
TT
10702021-03-03 Tom Tromey <tromey@adacore.com>
1071
1072 * ada-lang.c (ada_resolve_function): Update comment.
1073 (is_nonfunction, add_symbols_from_enclosing_procs)
1074 (remove_extra_symbols): Likewise.
1075 (struct match_data): Add constructor, initializers.
1076 (add_nonlocal_symbols): Remove memset.
1077 (aux_add_nonlocal_symbols): Update comment.
1078 (ada_add_block_renamings, add_nonlocal_symbols)
1079 (ada_add_all_symbols): Likewise.
1080 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1081
bbcdf9ab
TT
10822021-03-02 Tom Tromey <tromey@adacore.com>
1083
1084 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1085 (cast_to_gnat_encoded_fixed_point_type): Remove.
1086 (ada_value_cast, ada_evaluate_subexp): Update.
1087 (gnat_encoded_fixed_point_type_info)
1088 (ada_is_gnat_encoded_fixed_point_type)
1089 (gnat_encoded_fixed_point_delta)
1090 (gnat_encoded_fixed_point_scaling_factor): Remove.
1091 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1092 (gnat_encoded_fixed_point_delta)
1093 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1094 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1095 (ada_print_type): Update.
1096 * ada-valprint.c (ada_value_print_num): Update.
1097 * dwarf2/read.c (ada_get_gnat_encoded_number)
1098 (ada_get_gnat_encoded_ratio): New functions.
1099 (finish_fixed_point_type): Use them. Add parameters.
1100 (GNAT_FIXED_POINT_SUFFIX): New define.
1101 (gnat_encoded_fixed_point_type_info): New function.
1102 (read_base_type): Handle gnat encodings.
1103
5f9febe0
TT
11042021-03-02 Tom Tromey <tromey@adacore.com>
1105
1106 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1107 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1108 std::string.
1109 (GROW_VECT): Remove.
1110 (grow_vect): Remove.
1111
d1183b06
TT
11122021-03-02 Tom Tromey <tromey@adacore.com>
1113
1114 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1115 * ada-lang.c (resolve_subexp): Update.
1116 (ada_resolve_function): Accept a vector.
1117 (is_nonfunction, add_defn_to_vec)
1118 (add_symbols_from_enclosing_procs): Likewise.
1119 (num_defns_collected, defns_collected): Remove.
1120 (remove_extra_symbols): Return a vector.
1121 (remove_irrelevant_renamings): Return void.
1122 (ada_add_local_symbols): Accept a vector.
1123 (struct match_data) <obstackp>: Remove.
1124 <resultp>: New member.
1125 (aux_add_nonlocal_symbols): Update.
1126 (ada_add_block_renamings, add_nonlocal_symbols)
1127 (ada_add_all_symbols): Accept a vector.
1128 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1129 vector.
1130 (ada_lookup_symbol): Update.
1131 (ada_add_block_symbols): Accept a vector.
1132 (get_var_value, iterate_over_symbols): Update.
1133 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1134 Update.
1135
886d459f
TT
11362021-03-02 Tom Tromey <tromey@adacore.com>
1137
1138 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1139
bdcccc56
TT
11402021-03-02 Tom Tromey <tromey@adacore.com>
1141
1142 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1143 auto_obstack.
1144 <root>: Initialize.
1145 (ada_pspace_data): Remove destructor.
1146 <sym_cache>: Now a unique_ptr.
1147 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1148 (ada_get_symbol_cache): Use 'new'.
1149 (ada_clear_symbol_cache): Rewrite.
1150
1228719f
TT
11512021-03-02 Tom Tromey <tromey@adacore.com>
1152
1153 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1154 is null.
1155
bb3a4efe
LS
11562021-02-27 Lancelot Six <lsix@lancelotsix.com>
1157
1158 PR gdb/27393
1159 * source.c (add_path): Skip empty dirnames.
1160
26b43ca6 11612021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
1162
1163 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1164 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1165
dffdd8b5
SM
11662021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1167
1168 PR gdb/26861
1169 * target.c (target_mourn_inferior): Only compare pids in
1170 target_mourn_inferior.
1171
64d38fdd
JM
11722021-02-25 Jan Matyas <jmatyas@codasip.com>
1173
1174 PR gdb/26819
1175 * remote.c (remote_target::start_remote): Ensure the single
1176 thread, automatically added for remote targets without the
1177 concept of threading, is initially in set to the "resumed"
1178 state.
1179 * remote.c (remote_target::add_current_inferior_and_thread):
1180 Add return value - return the main thread.
1181
2450ad54
JV
11822021-02-25 Jan Vrany <jan.vrany@labware.com>
1183
1184 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1185 (mi_tsv_created): Likewise.
1186 (mi_tsv_deleted): Likewise.
1187
30c80d88
TV
11882021-02-25 Tom de Vries <tdevries@suse.de>
1189
1190 PR symtab/27354
1191 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1192 section_kind for &dwo_file->sections.info.
1193
68337b8b
AB
11942021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1195
1196 PR fortran/26155
1197 * f-lang.c (fortran_argument_convert): Delete declaration.
1198 (fortran_prepare_argument): New function.
1199 (evaluate_subexp_f): Move logic to new function
1200 fortran_prepare_argument.
1201
faeb9f13
AB
12022021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1203
1204 * f-exp.y (f77_keywords): Add 'associated'.
1205 * f-lang.c (fortran_associated): New function.
1206 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1207 (operator_length_f): Likewise.
1208 (print_unop_or_binop_subexp_f): New function.
1209 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1210 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1211 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1212 (operator_check_f): Likewise.
1213 * std-operator.def: Add FORTRAN_ASSOCIATED.
1214
170f4b23
AB
12152021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1216
1217 * f-exp.y (fortran_operators): Add ".xor.".
1218
aa659cfa
TV
12192021-02-24 Tom de Vries <tdevries@suse.de>
1220
1221 PR symtab/27336
1222 * dwarf2/attribute.c (attribute::form_is_signed): New function
1223 factored out of ...
1224 * dwarf2/attribute.h (attribute::as_signed): ... here.
1225 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1226 (attribute::form_is_signed): Declare.
1227 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1228 for DW_AT_decl_file.
1229
268c77c1
KB
12302021-02-24 Kevin Buettner <kevinb@redhat.com>
1231
1232 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1233 order for <sys/ptrace.h> and <asm/ptrace.h>.
1234
665af52e
KB
12352021-02-24 Kevin Buettner <kevinb@redhat.com>
1236
1237 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1238 <sys/ptrace.h>.
1239
dd80d750
AB
12402021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1241
1242 * exec.c (set_section_command): Move variable declarations into
1243 the function body, and use std::string instead of a fixed size
1244 buffer.
1245
336aa7b7
AB
12462021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1247
1248 * exec.c (exec_target::get_section_table): Delete member function.
1249 (section_table_read_available_memory): Use current_top_target, not
1250 just the exec_ops target.
1251 * target-delegates.c: Regenerate.
1252 * target.c (default_get_section_table): New function.
1253 * target.h (target_ops::get_section_table): Change default
1254 behaviour to call default_get_section_table.
1255 (default_get_section_table): Declare.
1256
02f7d26b
AB
12572021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1258
1259 * exec.c (exec_target::close): Call new clear_target_sections
1260 function.
1261 (program_space::add_target_sections): Update name of member
1262 variable.
1263 (program_space::add_target_sections): Update name of member
1264 variable.
1265 (program_space::remove_target_sections): Likewise.
1266 (exec_one_fork): Use new target_sections member function.
1267 (exec_target::get_section_table): Likewise.
1268 (exec_target::files_info): Likewise.
1269 (set_section_command): Likewise.
1270 (exec_set_section_address): Likewise.
1271 (exec_target::has_memory): Use new target_sections member
1272 function.
1273 * progspace.h (program_space::clear_target_sections): New member
1274 function.
1275 (program_space::target_sections): Rename member variable to
1276 m_target_sections, replace with a new member function.
1277 (program_space::m_target_sections): New member variable.
1278 * solib-dsbt.c (scan_dyntag): Use new member function.
1279 * solib-svr4.c (scan_dyntag): Likewise.
1280
19cf757a
AB
12812021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1282
1283 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1284 return type const.
1285 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1286 (section_table_read_available_memory): Make local const.
1287 (exec_target::xfer_partial): Make local const.
1288 (print_section_info): Make parameter const.
1289 * gdb/exec.h (print_section_info): Likewise.
1290 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1291 const.
1292 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1293 Likewise.
1294 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1295 Likewise.
1296 * gdb/s390-tdep.c (s390_load): Likewise.
1297 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1298 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1299 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1300 Rename to...
1301 (target_debug_print_const_target_section_table_p): ...this.
1302 * gdb/target-delegates.c: Regenerate.
1303 * gdb/target.c (target_get_section_table): Make return type const.
1304 (target_section_by_addr): Likewise. Also make some locals const.
1305 (memory_xfer_partial_1): Make some locals const.
1306 * gdb/target.h (struct target_ops) <get_section_table>: Make
1307 return type const.
1308 (target_section_by_addr): Likewise.
1309 (target_get_section_table): Likewise.
1310
02a79309
AB
13112021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1312
1313 * NEWS: Mention new 'maint info target-sections' command.
1314 * maint.c (maintenance_info_target_sections): New function.
1315 (_initialize_maint_cmds): Register new command.
1316
895b7b4e
AB
13172021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1318
1319 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1320 (riscv_features_from_bfd): ...this. Change parameter type to
1321 'bfd*', and update as required.
1322 (riscv_find_default_target_description): Update call to
1323 riscv_features_from_bfd. Select a default xlen based on
1324 info.bfd_arch_info.
1325 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1326
bc3c0632
AB
13272021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1328
1329 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1330 dynamic types in UNOP_IND.
1331
08ac5771
SM
13322021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1333
1334 PR gdb/26828
1335 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1336 Instantiate queue.
1337 (~dwarf2_queue_guard): Clear queue.
1338 (queue_comp_unit): Assert that queue is
1339 instantiated.
1340 (process_queue): Adjust.
1341 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1342
616c069a
SM
13432021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1344
1345 PR gdb/26828
1346 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1347 to decide whether or not to enqueue it for expansion.
1348 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1349 after calling maybe_queue_comp_unit.
1350
897608ed
SM
13512021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1352
1353 * linux-nat.c (linux_nat_filter_event): Return void.
1354
15908a11
TT
13552021-02-22 Tom Tromey <tromey@adacore.com>
1356
1357 * solib-svr4.c (enable_break): Update.
1358 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1359 type.
1360 (target_bfd_reopen): Change parameter type.
1361 * bfd-target.h (target_bfd_reopen): Change parameter type.
1362
f53fc427
SM
13632021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1364
1365 * thread.c (add_thread_silent): Add assert.
1366 (find_thread_ptid): Add assert.
1367
de146e19
SM
13682021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1369
1370 PR gdb/27435
1371 * inf-ptrace.c (struct target_unpusher): Move to target.h.
1372 (target_unpush_up): Likewise.
1373 * procfs.c (procfs_target::attach): Push target early. Use
1374 target_unpush_up to unpush target in case of error.
1375 * target.h (struct target_unpusher): Move here.
1376 (target_unpush_up): Likewise.
1377
8488c357
KB
13782021-02-19 Kevin Buettner <kevinb@redhat.com>
1379
1380 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
1381 (which in turn includes <gnulib/config.h>) before include
1382 of <signal.h>.
1383
5a9f5403
NC
13842021-02-19 Nelson Chu <nelson.chu@sifive.com>
1385
1386 PR 27158
1387 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
1388 (decode_j_type_insn): Likewise.
1389 (decode_cj_type_insn): Likewise.
1390 (decode_b_type_insn): Likewise.
1391 (decode): Likewise.
1392
26f53cd3
TT
13932021-02-18 Tom Tromey <tom@tromey.com>
1394
1395 * expression.h (struct expression) <evaluate>: Declare method.
1396 * eval.c (evaluate_subexp): Simplify.
1397 (expression::evaluate): New method.
1398 (evaluate_expression, evaluate_type): Use expression::evaluate.
1399
6a780b67
KB
14002021-02-17 Kevin Buettner <kevinb@redhat.com>
1401
1402 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1403 to accessing it.
1404 (ada_lookup_name_info): Likewise.
1405
adeab0c5
MF
14062021-02-13 Mike Frysinger <vapier@gentoo.org>
1407
1408 * aclocal.m4: Regenerate.
1409
089436f7
TV
14102021-02-12 Tom de Vries <tdevries@suse.de>
1411
1412 PR threads/26228
1413 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1414 (lin_thread_signals): New static var.
1415 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1416 New function.
1417 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1418 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1419 Declare.
1420 * linux-thread-db.c (check_thread_signals): Use
1421 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1422
96df3e28
AB
14232021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1424
1425 * f-exp.y (f77_keywords): Add allocated.
1426 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
1427 (operator_length_f): Likewise.
1428 (print_subexp_f): Likewise.
1429 (dump_subexp_body_f): Likewise.
1430 (operator_check_f): Likewise.
1431 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
1432
05f68f52
TV
14332021-02-11 Tom de Vries <tdevries@suse.de>
1434
1435 PR symtab/27353
1436 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
1437 Return true for DW_FORM_strx.
1438
b260f8d6
TT
14392021-02-11 Tom Tromey <tromey@adacore.com>
1440
1441 PR gdb/27383:
1442 * parse.c (write_exp_symbol_reference): Write sym.block.
1443
bf3386f0
AB
14442021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1445
1446 * NEWS: Mention changes to 'maint info sections'.
1447 * maint.c (match_substring): Return a bool, fix whitespace issue.
1448 (struct single_bfd_flag_info): New struct.
1449 (bfd_flag_info): New static global.
1450 (match_bfd_flags): Return a bool, use bfd_flag_info.
1451 (print_bfd_flags): Use bfd_flag_info.
1452 (maint_print_section_info): Delete trailing whitespace.
1453 (struct maint_info_sections_opts): New struct.
1454 (maint_info_sections_option_defs): New static global.
1455 (maint_info_sections_completer): New function.
1456 (maintenance_info_sections): Use option parsing mechanism.
1457 (_initialize_maint_cmds): Update command help text for 'maint info
1458 sections' and register a command completer.
1459
4790db14
AB
14602021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1461
1462 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
1463 functionality merged into...
1464 (maint_print_all_sections): ...this new function.
1465 (maintenance_info_sections): Make use of maint_print_all_sections,
1466 allow all objects to be printed even where there's no executable.
1467
1db66e34
AB
14682021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1469
1470 * breakpoint.c (resolve_sal_pc): Make use of
1471 bound_minimal_symbol::obj_section.
1472 * maint.c (maintenance_translate_address): Likewise.
1473 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1474 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1475 member function.
1476 * printcmd.c (info_address_command): Make use of
1477 bound_minimal_symbol::obj_section.
1478
18b8df43
AM
14792021-02-11 Alan Modra <amodra@gmail.com>
1480
1481 * arm-symbian-tdep.c: Delete.
1482 * NEWS: Mention arm-symbian removal.
1483 * Makefile.in: Remove arm-symbian-tdep entries.
1484 * configure.tgt: Remove arm*-*-symbianelf*.
1485 * doc/gdb.texinfo: Remove mention of SymbianOS.
1486 * osabi.c (gdb_osabi_names): Remove "Symbian".
1487 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
1488 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
1489 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
1490 handling.
1491 * testsuite/gdb.base/dup-sect.exp: Likewise.
1492 * testsuite/gdb.base/long_long.exp: Likewise.
1493 * testsuite/gdb.base/solib-weak.exp: Likewise.
1494 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
1495 * testsuite/gdb.python/py-section-script.exp: Likewise.
1496 * testsuite/lib/dwarf.exp: Likewise.
1497 * testsuite/lib/gdb.exp: Likewise.
1498
e92c8eb8
AB
14992021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1500
1501 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
1502 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
1503 (one_or_two_args): New pattern.
1504 (f77_keywords): Add lbound and ubound.
1505 * f-lang.c (fortran_bounds_all_dims): New function.
1506 (fortran_bounds_for_dimension): New function.
1507 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
1508 (operator_length_f): Likewise.
1509 (print_subexp_f): Likewise.
1510 (dump_subexp_body_f): Likewise.
1511 (operator_check_f): Likewise.
1512 * std-operator.def (FORTRAN_LBOUND): Define.
1513 (FORTRAN_UBOUND): Define.
1514
a52d653e
AB
15152021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1516
1517 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
1518 and set_section_index member functions where appropriate.
1519 * coffread.c (coff_symtab_read): Likewise.
1520 (process_coff_symbol): Likewise.
1521 * ctfread.c (set_symbol_address): Likewise.
1522 * dwarf2/read.c (add_partial_symbol): Likewise.
1523 (var_decode_location): Likewise.
1524 * language.c: Likewise.
1525 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
1526 (compact_minimal_symbols): Likewise.
1527 (minimal_symbol_upper_bound): Likewise.
1528 * objfiles.c (relocate_one_symbol): Likewise.
1529 * psympriv.h (partial_symbol::obj_section): Likewise.
1530 (partial_symbol::address): Likewise.
1531 * psymtab.c (partial_symtab::add_psymbol): Likewise.
1532 * stabsread.c (scan_file_globals): Likewise.
1533 * symmisc.c (dump_msymbols): Likewise.
1534 * symtab.c (general_symbol_info::obj_section): Likewise.
1535 (fixup_section): Likewise.
1536 (get_msymbol_address): Likewise.
1537 * symtab.h (general_symbol_info::section): Rename to...
1538 (general_symbol_info::m_section): ...this.
1539 (general_symbol_info::set_section_index): New member function.
1540 (general_symbol_info::section_index): Likewise.
1541 (SYMBOL_SECTION): Delete.
1542 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1543 set_section_index member functions where appropriate.
1544 (MSYMBOL_SECTION): Delete.
1545 (symbol::symbol): Update to initialize 'm_section'.
1546 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1547 (process_xcoff_symbol): Likewise.
1548
ebbc3a7d
AB
15492021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1550
1551 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1552 MSYMBOL_OBJ_SECTION.
1553 * findvar.c (language_defn::read_var_value): Likewise.
1554 * infcmd.c (jump_command): Likewise.
1555 * linespec.c (minsym_found): Likewise.
1556 * maint.c (maintenance_translate_address): Likewise.
1557 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1558 (minimal_symbol_upper_bound): Likewise.
1559 * parse.c (find_minsym_type_and_address): Likewise.
1560 (operator_check_standard): Likewise.
1561 * printcmd.c (info_address_command): Likewise.
1562 * symmisc.c (dump_msymbols): Likewise.
1563 (print_symbol): Likewise.
1564 * symtab.c (general_symbol_info::obj_section): Define new
1565 function.
1566 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1567 (find_pc_sect_compunit_symtab): Likewise.
1568 (find_function_start_sal): Likewise.
1569 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1570 MSYMBOL_OBJ_SECTION.
1571 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1572 function.
1573 (SYMBOL_OBJ_SECTION): Delete.
1574 (MSYMBOL_OBJ_SECTION): Delete.
1575
9bb305b3
TT
15762021-02-09 Tom Tromey <tom@tromey.com>
1577
1578 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1579
cf2b2075
TV
15802021-02-09 Tom de Vries <tdevries@suse.de>
1581
1582 PR symtab/27341
1583 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1584 construct an array type. Add assert to ensure that element_type is
1585 not being modified.
1586
03642b71
AB
15872021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1588
1589 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1590 (gcore_collect_regset_section_cb): Delete.
1591 (gcore_collect_thread_registers): Delete.
1592 (gcore_build_thread_register_notes): Delete.
1593 (gcore_find_signalled_thread): Delete.
1594 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1595 'gdbarch' and 'thread_info' declarations.
1596 (gcore_build_thread_register_notes): Delete declaration.
1597 (gcore_find_signalled_thread): Likewise.
1598 * fbsd-tdep.c: Remove 'gcore.h' include.
1599 (struct fbsd_collect_regset_section_cb_data): New struct.
1600 (fbsd_collect_regset_section_cb): New function.
1601 (fbsd_collect_thread_registers): New function.
1602 (struct fbsd_corefile_thread_data): New struct.
1603 (fbsd_corefile_thread): New function.
1604 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1605 * linux-tdep.c: Remove 'gcore.h' include.
1606 (struct linux_collect_regset_section_cb_data): New struct.
1607 (linux_collect_regset_section_cb): New function.
1608 (linux_collect_thread_registers): New function.
1609 (linux_corefile_thread): Call Linux specific code.
1610 (find_signalled_thread): New function.
1611 (linux_make_corefile_notes): Call find_signalled_thread.
1612
f73e424f
TT
16132021-02-09 Tom Tromey <tromey@adacore.com>
1614
1615 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1616 not_lval value.
1617 * value.c (value_contents_copy_raw): Now static.
1618 * value.h (value_contents_copy_raw): Don't declare.
1619
a4f0544b
TT
16202021-02-09 Tom Tromey <tromey@adacore.com>
1621
1622 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1623 fields.
1624
9b3e4b5d
SV
16252021-02-08 Shahab Vahedi <shahab@synopsys.com>
1626
1627 PR tdep/27369
1628 * arc-linux-tdep.c (handle_atomic_sequence): New.
1629 (arc_linux_software_single_step): Call handle_atomic_sequence().
1630
29db1eb3
AB
16312021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1632
1633 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1634 function.
1635 (REQUIRE_WINDOW): Call is_valid member function.
1636 (REQUIRE_WINDOW_FOR_SETTER): New define.
1637 (gdbpy_tui_is_valid): Call is_valid member function.
1638 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1639 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1640 tui_active too.
1641 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1642 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1643 the function.
1644
e0c23e11
AB
16452021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1646
1647 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1648 for the title is not nullptr.
1649
1cf23996
AB
16502021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1651
1652 * tui-layout.c (saved_tui_windows): Delete.
1653 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1654 call new get_windows member function instead.
1655 (tui_get_window_by_name): Check in tui_windows.
1656 (tui_layout_window::apply): Don't add to tui_windows.
1657 * tui-layout.h (tui_layout_base::get_windows): New member function.
1658 (tui_layout_window::get_windows): Likewise.
1659 (tui_layout_split::get_windows): Likewise.
1660
a53a2657
AB
16612021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1662
1663 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1664 of the window objects.
1665
2708dbbd
AB
16662021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1667
1668 * python/python.c (gdbpy_print_stack): Reformat an error message.
1669
cd074e04
AB
16702021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1671
1672 * tui/tui-interp.c (tui_command_line_handler): New function.
1673 (tui_interp::resume): Register tui_command_line_handler as the
1674 input_handler.
1675 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1676 function.
1677 (tui_getc_1): Delete handling of '\n' and '\r'.
1678 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1679
4cf28e91
HD
16802021-02-07 Hannes Domani <ssbssa@yahoo.de>
1681
1682 * tui/tui-regs.c (tui_data_window::display_registers_from):
1683 Mark invisible register sub windows.
1684 (tui_data_window::check_register_values): Ignore invisible
1685 register sub windows.
1686
3537bc23
HD
16872021-02-07 Hannes Domani <ssbssa@yahoo.de>
1688
1689 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1690 n_spaces with a negative value.
1691
5fc2d6aa
HD
16922021-02-07 Hannes Domani <ssbssa@yahoo.de>
1693
1694 * tui/tui-regs.c (tui_data_window::display_registers_from):
1695 Add refresh_window call.
1696
83962f83
HD
16972021-02-07 Hannes Domani <ssbssa@yahoo.de>
1698
1699 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1700
0110ec82
SM
17012021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1702
1703 * symmisc.c (std_in, std_out, std_err): Remove.
1704 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1705
7c6944ab
TV
17062021-02-05 Tom de Vries <tdevries@suse.de>
1707
1708 PR breakpoints/27330
1709 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1710 glibc object file has debug info.
1711
e77b0004
TV
17122021-02-05 Tom de Vries <tdevries@suse.de>
1713
1714 PR symtab/27333
1715 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1716
0e857c82
TV
17172021-02-05 Tom de Vries <tdevries@suse.de>
1718
1719 PR breakpoints/27313
1720 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1721 syscall numbers.
1722
bdfea17e
TT
17232021-02-05 Tom Tromey <tom@tromey.com>
1724
1725 * compile/compile-c-support.c (get_compile_context)
1726 (c_get_compile_context, cplus_get_compile_context): Change return
1727 type.
1728 * language.c (language_defn::get_compile_instance): New method.
1729 * language.h (language_defn::get_compile_instance): Change return
1730 type. No longer inline.
1731 * c-lang.c (c_language::get_compile_instance): Change return type.
1732 (cplus_language::get_compile_instance): Change return type.
1733 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1734 Change return type.
1735 * compile/compile.c (compile_to_object): Update.
1736
1b30f421
TT
17372021-02-05 Tom Tromey <tom@tromey.com>
1738
1739 * parser-defs.h (write_exp_symbol_reference): Declare.
1740 * parse.c (write_exp_symbol_reference): New function.
1741 * p-exp.y (variable): Use write_exp_symbol_reference.
1742 * m2-exp.y (variable): Use write_exp_symbol_reference.
1743 * f-exp.y (variable): Use write_exp_symbol_reference.
1744 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1745 * c-exp.y (variable): Use write_exp_symbol_reference.
1746
ae710496
TV
17472021-02-05 Tom de Vries <tdevries@suse.de>
1748
1749 PR exp/27265
1750 * valarith.c (complex_binop): Throw an error if complex type can't
1751 be created.
1752
d3b54e63
TV
17532021-02-05 Tom de Vries <tdevries@suse.de>
1754
1755 PR symtab/27307
1756 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1757 return.
1758
fc9a13fb
TV
17592021-02-05 Tom de Vries <tdevries@suse.de>
1760
1761 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1762
04b4939b
MF
17632021-02-04 Mike Frysinger <vapier@gentoo.org>
1764
1765 * configure.tgt (riscv*-*-*): Set gdb_sim.
1766
6ff267e1
SM
17672021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1768
1769 * target.c (target_is_non_stop_p): Return bool.
1770 * target.h (target_is_non_stop_p): Return bool.
1771
fdbc5215
SM
17722021-02-04 Simon Marchi <simon.marchi@efficios.com>
1773
1774 * record-full.c (record_full_async_inferior_event_handler):
1775 Don't clear async event handler.
1776 (record_full_base_target::wait): Clear async event handler at
1777 beginning.
1778
85d3ad8e
SM
17792021-02-04 Simon Marchi <simon.marchi@efficios.com>
1780
1781 * record-btrace.c (record_btrace_handle_async_inferior_event):
1782 Don't clear async event handler.
1783 (record_btrace_target::wait): Clear async event handler at
1784 beginning.
1785
baa8575b
SM
17862021-02-04 Simon Marchi <simon.marchi@efficios.com>
1787
1788 * remote.c (remote_target::wait): Clear async event handler at
1789 beginning, mark if needed at the end.
1790 (remote_async_inferior_event_handler): Don't set or clear async
1791 event handler.
1792
6b36ddeb
SM
17932021-02-04 Simon Marchi <simon.marchi@efficios.com>
1794
1795 * async-event.h (async_event_handler_func): Add documentation.
1796 * async-event.c (check_async_event_handlers): Don't clear
1797 async_event_handler ready flag.
1798 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1799 flag.
1800 * record-btrace.c (record_btrace_handle_async_inferior_event):
1801 Likewise.
1802 * record-full.c (record_full_async_inferior_event_handler):
1803 Likewise.
1804 * remote-notif.c (remote_async_get_pending_events_handler):
1805 Likewise.
1806 * remote.c (remote_async_inferior_event_handler): Likewise.
1807
72d383bb
SM
18082021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1809
1810 * infrun.c (handle_inferior_event): Move stop_soon variable to
1811 inner scope.
1812
408f6686
PA
18132021-02-03 Pedro Alves <pedro@palves.net>
1814
1815 * infcmd.c (detach_command): Hold strong reference to target, and
1816 if all-stop on entry, restart threads on exit.
1817 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1818 (restart_stepped_thread): ... this new function. Also handle
1819 trap_expected.
1820 (restart_after_all_stop_detach): New function.
1821 * infrun.h (restart_after_all_stop_detach): Declare.
1822
ac7d717c
PA
18232021-02-03 Pedro Alves <pedro@palves.net>
1824
1825 * infrun.c (struct step_over_info): Initialize fields.
1826 (prepare_for_detach): Handle ongoing in-line step over.
1827
e87f0fe8
PA
18282021-02-03 Pedro Alves <pedro@palves.net>
1829
1830 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1831 here...
1832 * remote.c (remote_target::remote_detach_1): ... and here ...
1833 * target.c (target_detach): ... instead of here.
1834 * target.h (target_ops::detach): Add comment.
1835
8ff53139
PA
18362021-02-03 Pedro Alves <pedro@palves.net>
1837
1838 * infrun.c (struct wait_one_event): Move higher up.
1839 (prepare_for_detach): Abort in-progress displaced steps instead of
1840 letting them complete.
1841 (handle_one): If the inferior is detaching, don't add the thread
1842 back to the global step-over chain.
1843 (restart_threads): Don't restart threads if detaching.
1844 (handle_signal_stop): Remove inferior::detaching reference.
1845
91475068
PA
18462021-02-03 Pedro Alves <pedro@palves.net>
1847
1848 * infrun.c (prepare_for_detach): Don't release scoped_restore
1849 before returning.
1850
d758e62c
PA
18512021-02-03 Pedro Alves <pedro@palves.net>
1852
1853 * infrun.c (handle_one): New function, factored out from ...
1854 (stop_all_threads): ... here.
1855
b0083dd7
PA
18562021-02-03 Pedro Alves <pedro@palves.net>
1857
1858 * remote.c (remote_notif_stop_ack): Don't error out on
1859 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1860 (remote_target::discard_pending_stop_replies): Don't delete
1861 in-flight notification; instead, clear its contents.
1862
621cc310
PA
18632021-02-03 Pedro Alves <pedro@palves.net>
1864
1865 * remote.c (extended_remote_target::attach): Set target async in
1866 the target-non-stop path too.
1867
2ab76a18
PA
18682021-02-03 Pedro Alves <pedro@palves.net>
1869
1870 PR gdb/27055
1871 * infrun.c (handle_signal_stop): Move main context_switch call
1872 earlier, before STOP_QUIETLY_NO_SIGSTOP.
1873
2e3773ff
LS
18742021-02-02 Lancelot SIX <lsix@lancelotsix.com>
1875
1876 * NEWS (Changed commands): Add entry for the behavior change of
1877 the inferior command.
1878 * inferior.c (inferior_command): When no argument is given to the
1879 inferior command, display info about the currently selected
1880 inferior.
1881
e57933dc
SM
18822021-02-02 Simon Marchi <simon.marchi@efficios.com>
1883
1884 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
1885 a sect_offset.
1886 (read_attribute_reprocess): Adjust.
1887
2b0c7f41
SM
18882021-02-02 Simon Marchi <simon.marchi@efficios.com>
1889
1890 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
1891 <gnu_ranges_base>: ... this...
1892 <rnglists_base>: ... and this.
1893 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
1894 <gnu_ranges_base>: ... this...
1895 <rnglists_base>: ... and this.
1896 (read_cutu_die_from_dwo): Adjust
1897 (dwarf2_get_pc_bounds): Adjust
1898 (dwarf2_record_block_ranges): Adjust.
1899 (read_full_die_1): Adjust
1900 (partial_die_info::read): Adjust.
1901 (read_rnglist_index): Adjust.
1902
a1c40103
SM
19032021-02-02 Simon Marchi <simon.marchi@efficios.com>
1904
1905 PR gdb/26813
1906 * dwarf2/read.c (read_loclists_rnglists_header): Add
1907 header_offset parameter and use it.
1908 (read_loclist_index): Read header of the current contribution,
1909 not the one at the beginning of the section.
1910 (read_rnglist_index): Likewise.
1911
b1829e1b
SM
19122021-02-02 Simon Marchi <simon.marchi@efficios.com>
1913
1914 PR gdb/26813
1915 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
1916 requires_reprocessing flag.
1917 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
1918 DW_FORM_loclistx.
1919 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
1920 and DW_FORM_loclistx.
1921 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
1922 instead of set_address for DW_FORM_loclistx and
1923 DW_FORM_rnglistx.
1924
0c800c6e
SM
19252021-02-02 Simon Marchi <simon.marchi@efficios.com>
1926
1927 * dwarf2/read.c (read_loclist_index): Remove bound check for
1928 start of offset.
1929 (read_rnglist_index): Likewise.
1930
05787bad
SM
19312021-02-02 Simon Marchi <simon.marchi@efficios.com>
1932
1933 * dwarf2/read.c (read_loclist_index): Add bound check for the end
1934 of the offset.
1935
5e4d9bbc
SM
19362021-02-02 Simon Marchi <simon.marchi@efficios.com>
1937
1938 * dwarf2/read.c (read_rnglist_index): Fix bound check.
1939
a0c1eeba
SM
19402021-02-02 Simon Marchi <simon.marchi@efficios.com>
1941
1942 * dwarf2/read.c (read_loclist_index): Change complaints into
1943 errors.
1944
2bd3e4b8
TV
19452021-02-02 Tom de Vries <tdevries@suse.de>
1946
1947 PR symtab/24620
1948 * dwarf2/index-write.c (write_one_signatured_type): Skip if
1949 psymtab == nullptr.
1950
82a1fd3a
AB
19512021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1952
1953 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
1954 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
1955 here from linux-tdep.c and given a new name. Minor cleanups.
1956 (gcore_collect_regset_section_cb): Likewise.
1957 (gcore_collect_thread_registers): Likewise.
1958 (gcore_build_thread_register_notes): Likewise.
1959 (gcore_find_signalled_thread): Likewise.
1960 * gcore.h (gcore_build_thread_register_notes): Declare.
1961 (gcore_find_signalled_thread): Declare.
1962 * fbsd-tdep.c: Add 'gcore.h' include.
1963 (struct fbsd_collect_regset_section_cb_data): Delete.
1964 (fbsd_collect_regset_section_cb): Delete.
1965 (fbsd_collect_thread_registers): Delete.
1966 (struct fbsd_corefile_thread_data): Delete.
1967 (fbsd_corefile_thread): Delete.
1968 (fbsd_make_corefile_notes): Call
1969 gcore_build_thread_register_notes instead of the now deleted
1970 FreeBSD code.
1971 * linux-tdep.c: Add 'gcore.h' include.
1972 (struct linux_collect_regset_section_cb_data): Delete.
1973 (linux_collect_regset_section_cb): Delete.
1974 (linux_collect_thread_registers): Delete.
1975 (linux_corefile_thread): Call
1976 gcore_build_thread_register_notes.
1977 (find_signalled_thread): Delete.
1978 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1979
ebde6f2d
TV
19802021-01-29 Tom de Vries <tdevries@suse.de>
1981
1982 PR breakpoints/26063
1983 * infrun.c (process_event_stop_test): Reset
1984 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
1985 changed.
1986
0f93c3a2
AB
19872021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1988
1989 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
1990 assert. Extend the header comment.
1991
f237f998
AB
19922021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1993
1994 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
1995 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
1996 * tui/tui-data.h (TUI_STATUS_WIN): Define.
1997 (tui_locator_win_info_ptr): Delete declaration.
1998 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
1999 (tui_disasm_window::set_contents): Fetch state from tui_location
2000 global.
2001 (tui_get_begin_asm_address): Likewise.
2002 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2003 for locator window.
2004 (get_locator_window): Delete.
2005 (initialize_known_windows): Treat locator window just like all the
2006 rest.
2007 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2008 (tui_source_window::set_contents): Fetch state from tui_location
2009 global.
2010 (tui_source_window::showing_source_p): Likewise.
2011 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2012 (_locator): Delete.
2013 (tui_locator_win_info_ptr): Delete.
2014 (tui_locator_window::make_status_line): Fetch state from
2015 tui_location global.
2016 (tui_locator_window::rerender): Remove check of 'handle',
2017 reindent function body.
2018 (tui_locator_window::set_locator_fullname): Delete.
2019 (tui_locator_window::set_locator_info): Delete.
2020 (tui_update_locator_fullname): Delete.
2021 (tui_show_frame_info): Likewise.
2022 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2023 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2024 tui/tui-location.h and renamed to
2025 tui_location_tracker::set_location.
2026 (tui_locator_window::set_locator_fullname): Moved to
2027 tui/tui-location.h and renamed to
2028 tui_location_tracker::set_fullname.
2029 (tui_locator_window::full_name): Delete.
2030 (tui_locator_window::proc_name): Delete.
2031 (tui_locator_window::line_no): Delete.
2032 (tui_locator_window::addr): Delete.
2033 (tui_locator_window::gdbarch): Delete.
2034 (tui_update_locator_fullname): Delete declaration.
2035 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2036 for locator window.
2037 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2038 (tui_display_main): Call function on tui_location directly.
2039 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2040 * tui/tui-location.c: New file.
2041 * tui/tui-location.h: New file.
2042
8ee511af
SM
20432021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2044
2045 * gdbtypes.h (get_type_arch): Rename to...
2046 (struct type) <arch>: ... this, update all users.
2047
6ac37371
SM
20482021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2049
2050 * gdbtypes.h (struct type) <arch>: Rename to...
2051 <arch_owner>: ... this, update all users.
2052 <objfile>: Rename to...
2053 <objfile_owner>: ... this, update all users.
2054
24cf6389
AB
20552021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2056
2057 * gdbcmd.h (execute_command_to_string): Update comment.
2058 * top.c (execute_command_to_string): Update header comment.
2059
2a7f6487
TV
20602021-01-28 Tom de Vries <tdevries@suse.de>
2061
2062 PR breakpoints/27205
2063 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2064 (create_longjmp_master_breakpoint_names): New function, factored out
2065 of ...
2066 (create_longjmp_master_breakpoint): ... here. Only try to install
2067 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2068 breakpoint in libc.so failed.
2069
59b59f08
LS
20702021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2071
2072 PR gdb/27133
2073 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2074 unique_ptr is released when the wrapped pointer is kept for later
2075 use.
2076
807f647c
MM
20772021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2078
2079 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2080 BLR and BR instructions.
2081 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2082 (enum aarch64_masks): New.
2083
4ef367bf
TT
20842021-01-26 Tom Tromey <tromey@adacore.com>
2085
2086 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2087 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2088 (windows_init_thread_list, windows_nat::handle_load_dll)
2089 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2090 (windows_nat_target::resume)
2091 (windows_nat_target::get_windows_debug_event)
2092 (windows_nat_target::interrupt, windows_xfer_memory)
2093 (windows_nat_target::close): Update.
2094 * nat/windows-nat.c (DEBUG_EVENTS): Use
2095 debug_prefixed_printf_cond.
2096 (matching_pending_stop, fetch_pending_stop)
2097 (continue_last_debug_event): Update.
2098
4cb1265b
MS
20992020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2100
2101 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2102 elfcore_write_file_note.
2103
d0cc52bd
SV
21042021-01-26 Shahab Vahedi <shahab@synopsys.com>
2105
2106 * arc-tdep.c (arc_add_reggroups): New function.
2107 (arc_gdbarch_init): Call arc_add_reggroups.
2108
ac3571d9 21092021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
2110
2111 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2112
9f6c202e
TV
21132021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2114 Simon Marchi <simon.marchi@polymtl.ca>
2115 Tom de Vries <tdevries@suse.de>
2116
2117 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2118 DW_AT_ranges.
2119
a625a8c9
TT
21202021-01-25 Tom Tromey <tromey@adacore.com>
2121
2122 * dwarf2/read.c (get_mpz): New function.
2123 (get_dwarf2_rational_constant): Use it.
2124
19184910
TT
21252021-01-25 Tom Tromey <tromey@adacore.com>
2126
2127 * ada-lang.c (resolve_subexp): Handle array context.
2128
b10bae18
TT
21292021-01-23 Tom Tromey <tom@tromey.com>
2130
2131 PR compile/25575
2132 * compile/compile-loc2c.c (note_register): New function.
2133 (pushf_register_address, pushf_register): Use it.
2134
3637a558
TT
21352021-01-23 Tom Tromey <tom@tromey.com>
2136
2137 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2138 Change type of "registers_used".
2139 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2140 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2141 (locexpr_generate_c_location, loclist_generate_c_location): Change
2142 type of "registers_used".
2143 * compile/compile.h (compile_dwarf_expr_to_c)
2144 (compile_dwarf_bounds_to_c): Update.
2145 * compile/compile-loc2c.c (pushf_register_address)
2146 (pushf_register, do_compile_dwarf_expr_to_c)
2147 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2148 of "registers_used".
2149 * compile/compile-c.h (generate_c_for_variable_locations):
2150 Update.
2151 * compile/compile-c-symbols.c (generate_vla_size)
2152 (generate_c_for_for_one_variable): Change type of
2153 "registers_used".
2154 (generate_c_for_variable_locations): Return std::vector.
2155 * compile/compile-c-support.c (generate_register_struct): Change
2156 type of "registers_used".
2157 (compute): Update.
2158
9f7f6cb8
TT
21592021-01-23 Tom Tromey <tom@tromey.com>
2160
2161 * compile/compile-internal.h (class compile_instance)
2162 <set_arguments>: Change return type.
2163 * compile/compile.c (compile_to_object): Remove call to reset.
2164 (compile_instance::set_arguments): Change return type.
2165
dd5ca05f
SM
21662021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2167
2168 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2169 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2170
d3ee35db
LS
21712021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2172
2173 * Makefile.in (SELFTESTS_SRCS): Add
2174 unittests/gdb_tilde_expand-selftests.c.
2175 * unittests/gdb_tilde_expand-selftests.c: New file.
2176
9d2d8a16
AB
21772021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2178
2179 PR cli/25956
2180 * NEWS: Mention new command.
2181 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2182 (version_style): Define.
2183 (cli_style_option::cli_style_option): Add intensity parameter, and
2184 use as appropriate.
2185 (_initialize_cli_style): Register version style set/show commands.
2186 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2187 (version_style): Declare.
2188 * top.c (print_gdb_version): Use version_stype, and styled_string
2189 to print the GDB version string.
2190
e7b43072
AB
21912021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2192
2193 * utils.c (emit_style_escape): Only emit an escape sequence if the
2194 requested style is different than the current applied style.
2195 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2196 current applied_style.
2197 (fputs_styled): Remove is_default check.
2198 (fputs_styled_unfiltered): Likewise.
2199 (vfprintf_styled_no_gdbfmt): Likewise.
2200
2189c312
SM
22012021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2202
2203 * remote.h (remote_debug_printf): New.
2204 (remote_debug_printf_nofunc): New.
2205 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2206 * remote.c: Use above macros throughout file.
2207
02349803
SM
22082021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2209
2210 * remote.h (remote_debug): Change to bool.
2211 * remote.c (remote_debug): Change to bool.
2212 (_initialize_remote): Adjust.
2213
cda09ec9
SM
22142021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2215
2216 * target.h (remote_debug): Move to...
2217 * remote.h (remote_debug): ... here.
2218 * top.c (remote_debug): Move to...
2219 * remote.c (remote_debug): ... here.
2220 * remote-sim.c: Include remote.h.
2221
baf2b57f
SM
22222021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2223
2224 * cli/cli-cmds.c (show_remote_debug): Remove.
2225 (show_remote_timeout): Remove.
2226 (_initialize_cli_cmds): Don't register commands.
2227 * remote.c (show_remote_debug): Move here.
2228 (show_remote_timeout): Move here.
2229 (_initialize_remote): Register commands.
2230
344e9841
SM
22312021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2232
2233 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2234 type::objfile method instead.
2235
30625020
SM
22362021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2237
2238 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2239 use the type::is_objfile_owned method.
2240
5b7d941b
SM
22412021-01-22 Simon Marchi <simon.marchi@efficios.com>
2242
2243 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2244 (TYPE_OWNER): Remove.
2245 (TYPE_OBJFILE): Adjust.
2246 (struct main_type) <flag_objfile_owned>: Rename to...
2247 <m_flag_objfile_owned>: ... this.
2248 <owner>: Rename to...
2249 <m_owner>: ... this.
2250 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2251 methods.
2252 (TYPE_ALLOC): Adjust.
2253 * gdbtypes.c (alloc_type): Adjust.
2254 (alloc_type_arch): Adjust.
2255 (alloc_type_copy): Adjust.
2256 (get_type_arch): Adjust.
2257 (smash_type): Adjust.
2258 (lookup_array_range_type): Adjust.
2259 (recursive_dump_type): Adjust.
2260 (copy_type_recursive): Adjust.
2261 * compile/compile-c-types.c (convert_func): Adjust.
2262 (convert_type_basic): Adjust.
2263 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2264 Adjust.
2265 * language.c
2266 (language_arch_info::type_and_symbol::alloc_type_symbol):
2267 Adjust.
2268
d5d24e12
LM
22692021-01-21 Luis Machado <luis.machado@linaro.org>
2270
2271 * coffread.c (enter_linenos): Passing string to complaint.
2272 * valops.c (value_assign): Make array view.
2273
a59902a7
SM
22742021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2275
2276 * auto-load.h (debug_auto_load): Move here.
2277 (auto_load_debug_printf): New.
2278 * auto-load.c: Use auto_load_debug_printf.
2279 (debug_auto_load): Move to header.
2280 * linux-thread-db.c (try_thread_db_load): Use
2281 auto_load_debug_printf.
2282 * main.c (captured_main_1): Likewise.
2283
d3abc0ce
SM
22842021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2285
2286 * f-valprint.c (f77_array_offset_tbl): Remove.
2287
1e15fcac
SM
22882021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2289
2290 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2291
439706e6
SM
22922021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2293
2294 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2295 of gdb_select.
2296
325d39e4
HD
22972021-01-21 Hannes Domani <ssbssa@yahoo.de>
2298
2299 PR python/19151
2300 * python/py-breakpoint.c (bppy_get_location): Handle
2301 bp_hardware_breakpoint.
2302 (bppy_init): Likewise.
2303 (gdbpy_breakpoint_created): Likewise.
2304
7cb6d92a
SM
23052021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2306
2307 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2308
d4dd4fca
SM
23092021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2310
2311 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2312 (_initialize_gdb_bfd): Adjust.
2313
de53369b
SM
23142021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2315
2316 PR gdb/26828
2317 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2318
17e593e9
SM
23192021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2320
2321 * dwarf2/read.c (follow_die_offset): Add logging.
2322 (dwarf2_per_objfile::age_comp_units): Add logging.
2323
6bd434d6
SM
23242021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2325
2326 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2327 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2328 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2329 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2330 * arm-tdep.c (struct frame_unwind): Make static.
2331 * auto-load.c (auto_load_safe_path_vec): Make static.
2332 * csky-tdep.c (csky_stub_unwind): Make static.
2333 * gdbarch.c (gdbarch_data_registry): Make static.
2334 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2335 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2336 * i386-tdep.c (i386_frame_setup_skip_insns,
2337 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2338 Make static.
2339 * infrun.c (observer_mode): Make static.
2340 * linux-nat.c (sigchld_action): Make static.
2341 * linux-thread-db.c (thread_db_list): Make static.
2342 * maint-test-options.c (maintenance_test_options_list):
2343 * mep-tdep.c (mep_csr_registers): Make static.
2344 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2345 (stats): Make static.
2346 * nat/linux-osdata.c (struct osdata_type): Make static.
2347 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2348 * progspace.c (last_program_space_num): Make static.
2349 * python/py-param.c (struct parm_constant): Remove struct type
2350 name.
2351 (parm_constants): Make static.
2352 * python/py-record-btrace.c (btpy_list_methods): Make static.
2353 * python/py-record.c (recpy_gap_type): Make static.
2354 * record.c (record_goto_cmdlist): Make static.
2355 * regcache.c (regcache_descr_handle): Make static.
2356 * registry.h (DEFINE_REGISTRY): Make definition static.
2357 * symmisc.c (std_in, std_out, std_err): Make static.
2358 * top.c (previous_saved_command_line): Make static.
2359 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2360 static.
2361 * unittests/command-def-selftests.c (nr_duplicates,
2362 nr_invalid_prefixcmd, lists): Make static.
2363 * unittests/observable-selftests.c (test_notification): Make
2364 static.
2365 * unittests/optional/assignment/1.cc (counter): Make static.
2366 * unittests/optional/assignment/2.cc (counter): Make static.
2367 * unittests/optional/assignment/3.cc (counter): Make static.
2368 * unittests/optional/assignment/4.cc (counter): Make static.
2369 * unittests/optional/assignment/5.cc (counter): Make static.
2370 * unittests/optional/assignment/6.cc (counter): Make static.
2371
a6c11cbb
JS
23722021-01-20 Joel Sherrill <joel@rtems.org>
2373
2374 PR gdb/27219
2375 * remote.c (struct remote_thread_info) <resume_state>: Rename
2376 to...
2377 <get_resume_state>: ... this.
2378 (remote_target::resume): Adjust.
2379 (remote_target::commit_resume): Adjust.
2380 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
2381
6f52fdf4
SDJ
23822021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
2383 Tom Tromey <tom@tromey.com>
2384
2385 * stap-probe.c (stap_parse_single_operand): Handle '!'
2386 operator.
2387 (stap_parse_argument_conditionally): Likewise.
2388 Skip spaces after processing open-parenthesis sub-expression.
2389 (stap_parse_argument_1): Skip spaces after call to
2390 stap_parse_argument_conditionally.
2391 Handle case when right-side expression is a parenthesized
2392 sub-expression.
2393 Skip spaces after call to stap_parse_argument_1.
2394
1c3b85ad
LS
23952021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2396
2397 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2398
a9a87d35
LM
23992021-01-19 Luis Machado <luis.machado@linaro.org>
2400
2401 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2402 memory and save data.
2403 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2404 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2405 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2406 (trad_frame_value_bytes_p): Remove.
2407 (trad_frame_reset_saved_regs): Adjust documentation.
2408 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2409 constructor and reset the state of the registers.
2410 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2411 (trad_frame_value_bytes_p, trad_frame_set_value)
2412 (trad_frame_set_realreg, trad_frame_set_addr)
2413 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2414 (trad_frame_set_reg_realreg): Update to call member function.
2415 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2416 (trad_frame_get_prev_register): Likewise.
2417
2418 * aarch64-tdep.c (aarch64_analyze_prologue)
2419 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2420 (aarch64_prologue_prev_register): Update to use member functions.
2421 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2422 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
2423 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
2424 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
2425 (arm_make_epilogue_frame_cache): Likewise.
2426 * avr-tdep.c (avr_frame_unwind_cache)
2427 (avr_frame_prev_register): Likewise.
2428 * cris-tdep.c (cris_scan_prologue): Likewise.
2429 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
2430 * frv-tdep.c (frv_analyze_prologue): Likewise.
2431 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
2432 * lm32-tdep.c (lm32_frame_cache): Likewise.
2433 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2434 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2435 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
2436 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
2437 (reset_saved_regs): Adjust to set realreg.
2438 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
2439 call member functions.
2440 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
2441 * s390-tdep.c (s390_prologue_frame_unwind_cache)
2442 (s390_backchain_frame_unwind_cache): Likewise.
2443 * score-tdep.c (score7_analyze_prologue)
2444 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
2445 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
2446 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2447 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
2448 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2449 * tilegx-tdep.c (tilegx_analyze_prologue)
2450 (tilegx_frame_cache): Likewise.
2451 * v850-tdep.c (v850_frame_cache): Likewise.
2452 * vax-tdep.c (vax_frame_cache): Likewise.
2453
bdec2917
LM
24542021-01-19 Luis Machado <luis.machado@linaro.org>
2455
2456 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
2457 of buffer + length.
2458 (put_frame_register_bytes): Likewise.
2459 Adjust documentation.
2460 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
2461 (safe_frame_unwind_memory): Likewise.
2462 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
2463 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
2464 gdb::array_view.
2465 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
2466 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
2467 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2468 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
2469 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
2470 * dwarf2/loc.c (rw_pieced_value): Likewise.
2471 * hppa-tdep.c (hppa_frame_cache): Likewise.
2472 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2473 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2474 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2475 (i386_linux_rt_sigtramp_start): Likewise.
2476 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2477 * i386-tdep.c (i386_register_to_value): Likewise.
2478 * i387-tdep.c (i387_register_to_value): Likewise.
2479 * ia64-tdep.c (ia64_register_to_value): Likewise.
2480 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2481 (m32r_linux_rt_sigtramp_start): Likewise.
2482 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2483 * m68k-tdep.c (m68k_register_to_value): Likewise.
2484 * mips-tdep.c (mips_register_to_value)
2485 (mips_value_to_register): Likewise.
2486 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
2487 (ppcfbsd_sigtramp_frame_cache): Likewise.
2488 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
2489 (ppcobsd_sigtramp_frame_cache): Likewise.
2490 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
2491 (rs6000_register_to_value): Likewise.
2492 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2493 * tramp-frame.c (tramp_frame_start): Likewise.
2494 * valops.c (value_assign): Likewise.
2495
ccbe4c82
LM
24962021-01-19 Luis Machado <luis.machado@linaro.org>
2497
2498 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
2499 array_view.
2500 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
2501 instead of buffer and size.
2502 (trad_frame_set_reg_value_bytes): Likewise.
2503 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
2504 (trad_frame_set_value_bytes): Likewise.
2505
0e7620dc
MF
25062021-01-18 Mike Frysinger <vapier@gentoo.org>
2507
2508 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
2509
6a9ad81c
AB
25102021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
2511
2512 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
2513 (riscv_fbsd_gregset): Use riscv_supply_regset.
2514 (riscv_fbsd_fpregset): Likewise.
2515 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
2516 (riscv_linux_fregset): Likewise.
2517 * riscv-tdep.c (riscv_supply_regset): Define new function.
2518 * riscv-tdep.h (riscv_supply_regset): Declare new function.
2519
d3d7d1ba
TV
25202021-01-18 Tom de Vries <tdevries@suse.de>
2521
2522 PR tdep/27172
2523 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
2524 New macro.
2525 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
2526 for SEGV_BNDERR.
2527
aa2838cc
SM
25282021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2529
2530 * remote.c (class remote_target) <remote_hostio_send_command,
2531 remote_hostio_parse_result>: Constify parameter.
2532 (remote_hostio_parse_result): Likewise.
2533 (remote_target::remote_hostio_send_command): Adjust.
2534 (remote_target::remote_hostio_pread_vFile): Adjust.
2535 (remote_target::fileio_readlink): Adjust.
2536 (remote_target::fileio_fstat): Adjust.
2537
b5c8f22d
SM
25382021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2539
2540 * remote.c (remote_target::start_remote): Move wait_status to
2541 narrower scope.
2542
e3b2741b
SM
25432021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2544
2545 * remote.c (class remote_target):
2546 <add_current_inferior_and_thread>: Constify parameter.
2547 (stop_reply_extract_thread): Likewise.
2548 (remote_target::get_current_thread): Likewise.
2549 (remote_target::add_current_inferior_and_thread): Likewise.
2550
cecb1912
SM
25512021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2552
2553 * remote.c (class remote_target)
2554 <remote_unpack_thread_info_response,
2555 parse_threadlist_response>: Constify parameter and/or return
2556 value and or local variable.
2557 (stub_unpack_int): Likewise.
2558 (unpack_nibble): Likewise.
2559 (unpack_byte): Likewise.
2560 (unpack_int): Likewise.
2561 (unpack_string): Likewise.
2562 (unpack_threadid): Likewise.
2563 (remote_target::remote_unpack_thread_info_response): Likewise.
2564 (remote_target::parse_threadlist_response): Likewise.
2565
5a11fff0
AB
25662021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2567
2568 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2569
17e89137
LS
25702021-01-14 Lancelot Six <lsix@lancelotsix.com>
2571
2572 * MAINTAINERS (Write After Approval): Add myself.
2573
58eadc4b
BE
25742021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2575
2576 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2577 because is_trivially_default_constructible was first implemented with
2578 gcc-5.
2579
5fae2a2c
TV
25802021-01-14 Tom de Vries <tdevries@suse.de>
2581
2582 PR breakpoints/27151
2583 * objfiles.h (in_plt_section): Handle .plt.sec.
2584
8f66807b
AB
25852021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2586
2587 PR gdb/26819
2588 * remote.c
2589 (remote_target::select_thread_for_ambiguous_stop_reply): New
2590 member function.
2591 (remote_target::process_stop_reply): Call
2592 select_thread_for_ambiguous_stop_reply.
2593
bd497355
SM
25942021-01-13 Simon Marchi <simon.marchi@efficios.com>
2595
2596 * record-btrace.c (class record_btrace_target): Remove.
2597 (record_btrace_target::commit_resume): Remove.
2598 * record-full.c (class record_full_target): Remove.
2599 (record_full_target::commit_resume): Remove.
2600
c9d22089
SM
26012021-01-13 Simon Marchi <simon.marchi@efficios.com>
2602
2603 * remote.c (enum class resume_state): New.
2604 (struct resumed_pending_vcont_info): New.
2605 (struct remote_thread_info) <resume_state, set_not_resumed,
2606 set_resumed_pending_vcont, resumed_pending_vcont_info,
2607 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2608 New.
2609 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2610 (remote_target::remote_add_thread): Adjust.
2611 (remote_target::process_initial_stop_replies): Adjust.
2612 (remote_target::resume): Adjust.
2613 (remote_target::commit_resume): Rely on state in
2614 remote_thread_info and not on tp->executing.
2615 (remote_target::process_stop_reply): Adjust.
2616
d8d1feb4
SM
26172021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2618
2619 * arc-tdep.h (arc_debug_printf): New.
2620 * arc-tdep.c: Use arc_debug_printf.
2621 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2622 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2623 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2624
fb0f5031
SM
26252021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2626
2627 * arc-tdep.h (arc_debug): Change type to bool.
2628 * arc-tdep.c (arc_debug): Change type to bool.
2629 (arc_analyze_prologue): Adjust.
2630 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2631 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2632
5bf7e91b
SM
26332021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2634
2635 * auto-load.c (auto_load_objfile_script_1): Use bool.
2636 (execute_script_contents): Use bool.
2637
db972fce
SM
26382021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2639
2640 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2641 comment here.
2642 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2643 comment to header.
2644 * extension-priv.h (struct extension_language_script_ops)
2645 <auto_load_enabled>: Return bool.
2646 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2647 comment here.
2648 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2649 comment to header.
2650 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2651 move comment here.
2652 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2653 move comment to header.
2654 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2655 move comment here.
2656 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2657 move comment to header.
2658
5e12f48f
SM
26592021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2660
2661 * auto-load.h (file_is_auto_load_safe): Change return type to
2662 bool, move comment here.
2663 * auto-load.c (file_is_auto_load_safe): Change return type and
2664 advice_printed to bool. Move comment to header.
2665
54ca9002
SM
26662021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2667
2668 * jit.c (jit_debug_printf): New, use throughout file.
2669
24a7f1b5
SM
26702021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2671
2672 * infrun.c (normal_stop): Fix indentation.
2673
fe7a351a
SM
26742021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2675
2676 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2677 declarations to ...
2678 * symfile.h: ... here.
2679 * symfile.c: Update doc.
2680
16e9019e
SM
26812021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2682
2683 * target.h (baud_rate, serial_parity): Move declarations...
2684 * serial.h: ... here.
2685 * main.c: Include serial.h.
2686 * serial.c (baud_rate, serial_parity): Update doc.
2687
b2f2ae0d
SM
26882021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2689
2690 * top.c (pre_init_ui_hook): Remove.
2691
5291fe3c
SP
26922021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2693
2694 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2695 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2696 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2697 * features/aarch64-fpu.xml: Add bfloat16 type.
2698
ce38f5ed
AB
26992021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2700
2701 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2702
7c654b71
AB
27032021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * f-exp.y (dot_ops): Rename to...
2706 (fortran_operators): ...this. Add a header comment. Add symbol
2707 based operators.
2708 (yylex): Update to use fortran_operators not dot_ops. Remove
2709 special handling for '**', this is now included in
2710 fortran_operators.
2711
c6185dce
SM
27122021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2713
2714 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2715 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2716 * aarch64-tdep.c: Use aarch64_debug_printf.
2717
eef401dc
SM
27182021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2719
2720 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2721 file.
2722
062eaacb
SM
27232021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2724
2725 * jit.c (jit_debug): Change type to bool.
2726 (_initialize_jit): Adjust.
2727
54585eee
TT
27282021-01-09 Tom Tromey <tom@tromey.com>
2729
2730 PR compile/23672
2731 * compile/compile.c (compile_to_object): Avoid crash when
2732 osabi_triplet_regexp returns NULL.
2733
bc167b6b
TT
27342021-01-09 Tom Tromey <tom@tromey.com>
2735
2736 * tracepoint.h (class collection_list) <append_exp>: Take a
2737 std::string.
2738 * tracepoint.c (collection_list::append_exp): Take a std::string.
2739 (encode_actions_1): Update.
2740
8fc48b79
TT
27412021-01-08 Tom Tromey <tromey@adacore.com>
2742
2743 * parse.c (parse_expression): Add void_context_p parameter. Use
2744 parse_exp_in_context.
2745 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2746 parse_expression.
2747 (print_command, call_command): Update.
2748 * expression.h (parse_expression): Add void_context_p parameter.
2749
3c8c6de2
AB
27502021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2751
2752 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2753 for internalvar components that have a dynamic location.
2754
1940319c
TV
27552021-01-08 Tom de Vries <tdevries@suse.de>
2756
2757 PR gdb/26881
2758 * breakpoint.c (create_exception_master_breakpoint_probe)
2759 (create_exception_master_breakpoint_hook): Factor out
2760 of ...
2761 (create_exception_master_breakpoint): ... here. Only try to install
2762 the master exception breakpoint in objfile.debug using the
2763 _Unwind_DebugHook method, if the install using probes in objfile
2764 failed.
2765
e3436813
AB
27662021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2767
2768 * f-lang.c (fortran_value_subarray): Call value_from_component.
2769
e904f56d
MF
27702021-01-07 Mike Frysinger <vapier@gentoo.org>
2771
2772 * remote-sim.c: Include memory-map.h.
2773 (gdbsim_target): Define memory_map override.
2774 (gdbsim_target::memory_map): Define.
2775
959d6a67
TT
27762021-01-07 Tom Tromey <tromey@adacore.com>
2777
2778 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2779
d4813f10
TT
27802021-01-07 Tom Tromey <tromey@adacore.com>
2781
2782 * ada-lang.c (add_component_interval): Start loop using vector's
2783 updated size.
2784
b49180ac
TT
27852021-01-06 Tom Tromey <tromey@adacore.com>
2786
2787 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2788 Do not cast result.
2789 * valarith.c (fixed_point_binop): Handle multiplication
2790 and division specially.
2791 * valops.c (value_to_gdb_mpq): New function.
2792 (value_cast_to_fixed_point): Use it.
2793
55195361
HD
27942021-01-05 Hannes Domani <ssbssa@yahoo.de>
2795
2796 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2797 Call wnoutrefresh instead of tui_win_info::refresh_window.
2798
1b6d4bb2
HD
27992021-01-05 Hannes Domani <ssbssa@yahoo.de>
2800
2801 * tui/tui-source.c (tui_source_window::show_line_number):
2802 Redraw second space after line number.
2803
b5ff370e
HD
28042021-01-05 Hannes Domani <ssbssa@yahoo.de>
2805
2806 PR tui/26927
2807 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2808 Fix source pad size in prefresh.
2809 (tui_source_window_base::show_source_content): Grow source pad
2810 if necessary.
2811
c68ea49f
MF
28122021-01-04 Mike Frysinger <vapier@gentoo.org>
2813
2814 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2815 (bfin_frame_align): Use align_down.
2816
e4ad960a
TV
28172021-01-04 Tom de Vries <tdevries@suse.de>
2818
2819 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2820 terminators that do not terminate anything.
2821
3ec3145c
SM
28222021-01-04 Simon Marchi <simon.marchi@efficios.com>
2823
2824 * debug.c (debug_print_depth): New.
2825 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2826 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2827 * infrun.c (start_step_over): Use
2828 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2829 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2830 INFRUN_SCOPED_DEBUG_START_END.
2831 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2832
e71daf80
SM
28332021-01-04 Simon Marchi <simon.marchi@efficios.com>
2834
2835 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2836
335709bc
SM
28372021-01-04 Simon Marchi <simon.marchi@efficios.com>
2838
2839 * utils.c (vfprintf_unfiltered): Print timestamp only when
2840 previous debug output ended with a newline.
2841
098caef4
LM
28422021-01-04 Luis Machado <luis.machado@linaro.org>
2843
2844 Update all users of trad_frame_saved_reg to use the new member
2845 functions.
2846
2847 Remote all struct keywords from declarations of trad_frame_saved_reg
2848 types, except on forward declarations.
2849
2850 * aarch64-tdep.c: Update.
2851 * alpha-mdebug-tdep.c: Update.
2852 * alpha-tdep.c: Update.
2853 * arc-tdep.c: Update.
2854 * arm-tdep.c: Update.
2855 * avr-tdep.c: Update.
2856 * cris-tdep.c: Update.
2857 * csky-tdep.c: Update.
2858 * frv-tdep.c: Update.
2859 * hppa-linux-tdep.c: Update.
2860 * hppa-tdep.c: Update.
2861 * hppa-tdep.h: Update.
2862 * lm32-tdep.c: Update.
2863 * m32r-linux-tdep.c: Update.
2864 * m32r-tdep.c: Update.
2865 * m68hc11-tdep.c: Update.
2866 * mips-tdep.c: Update.
2867 * moxie-tdep.c: Update.
2868 * riscv-tdep.c: Update.
2869 * rs6000-tdep.c: Update.
2870 * s390-linux-tdep.c: Update.
2871 * s390-tdep.c: Update.
2872 * score-tdep.c: Update.
2873 * sparc-netbsd-tdep.c: Update.
2874 * sparc-sol2-tdep.c: Update.
2875 * sparc64-fbsd-tdep.c: Update.
2876 * sparc64-netbsd-tdep.c: Update.
2877 * sparc64-obsd-tdep.c: Update.
2878 * sparc64-sol2-tdep.c: Update.
2879 * tilegx-tdep.c: Update.
2880 * v850-tdep.c: Update.
2881 * vax-tdep.c: Update.
2882
2883 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
2884 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
2885
2886 * trad-frame.c: Update.
2887 Remove TF_REG_* enum.
2888 (trad_frame_alloc_saved_regs): Add a static assertion to check for
2889 a trivially-constructible struct.
2890 (trad_frame_reset_saved_regs): Adjust to use member function.
2891 (trad_frame_value_p): Likewise.
2892 (trad_frame_addr_p): Likewise.
2893 (trad_frame_realreg_p): Likewise.
2894 (trad_frame_value_bytes_p): Likewise.
2895 (trad_frame_set_value): Likewise.
2896 (trad_frame_set_realreg): Likewise.
2897 (trad_frame_set_addr): Likewise.
2898 (trad_frame_set_unknown): Likewise.
2899 (trad_frame_set_value_bytes): Likewise.
2900 (trad_frame_get_prev_register): Likewise.
2901 * trad-frame.h: Update.
2902 (trad_frame_saved_reg_kind): New enum.
2903 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
2904 <m_kind, m_reg>: New member fields.
2905 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
2906 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
2907 <is_addr, is_unknown, is_value_bytes>: New member functions.
2908
9898e882
SM
29092021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
2910
2911 * target-float.c: Fix typos.
2912
b66b4e65
HD
29132021-01-02 Hannes Domani <ssbssa@yahoo.de>
2914
2915 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
2916
b5b5650a
JB
29172021-01-01 Joel Brobecker <brobecker@adacore.com>
2918
2919 * gdbarch.sh: Update copyright year range.
2920
3666a048
JB
29212021-01-01 Joel Brobecker <brobecker@adacore.com>
2922
2923 Update copyright year range in copyright header of all GDB files.
2924
ff7e39b6
JB
29252021-01-01 Joel Brobecker <brobecker@adacore.com>
2926
2927 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
2928 to the list of directories to update.
2929
2b47c078
JB
29302021-01-01 Joel Brobecker <brobecker@adacore.com>
2931
2932 * top.c (print_gdb_version): Update copyright year.
2933
476923f1 29342021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 2935
476923f1 2936 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 2937
476923f1 2938For older changes see ChangeLog-2020.
c906108c
SS
2939\f
2940Local Variables:
2941mode: change-log
2942left-margin: 8
2943fill-column: 74
2944version-control: never
57da7796 2945coding: utf-8
c906108c 2946End:
This page took 2.655956 seconds and 4 git commands to generate.