Introduce ada_binop_in_bounds
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
82c3886e
TT
12021-03-08 Tom Tromey <tom@tromey.com>
2
3 * ada-lang.c (ada_binop_in_bounds): No longer static.
4 * ada-exp.h (class ada_binop_in_bounds_operation): New.
5
1b1ebfab
TT
62021-03-08 Tom Tromey <tom@tromey.com>
7
8 * ada-lang.c (ada_ternop_slice): No longer static.
9 * ada-exp.h (class ada_ternop_slice_operation): New.
10
039e4b76
TT
112021-03-08 Tom Tromey <tom@tromey.com>
12
13 * ada-exp.h (ada_bitwise_operation): New template class.
14 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
15 (ada_bitwise_xor_operation): New typedefs.
16
6e8fb7b7
TT
172021-03-08 Tom Tromey <tom@tromey.com>
18
19 * ada-lang.c (ada_equal_binop): No longer static.
20 * ada-exp.h (class ada_binop_equal_operation): New.
21
d9e7db06
TT
222021-03-08 Tom Tromey <tom@tromey.com>
23
24 * ada-lang.c (ada_mult_binop): No longer static.
25 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
26 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
27
73796c73
TT
282021-03-08 Tom Tromey <tom@tromey.com>
29
30 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
31 * ada-exp.h (class ada_binop_addsub_operation): New.
32
cd9a3148
TT
332021-03-08 Tom Tromey <tom@tromey.com>
34
35 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
36 (ada_resolve_variable): Declare.
37 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
38 (ada_resolve_variable): New functions.
39 (resolve_subexp): Update.
40
cf12b17f
TT
412021-03-08 Tom Tromey <tom@tromey.com>
42
43 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
44 method.
45 * c-exp.h (class opencl_ternop_cond_operation): New.
46
944fd3b8
TT
472021-03-08 Tom Tromey <tom@tromey.com>
48
49 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
50 method.
51 * c-exp.h (class opencl_logical_binop_operation): New.
52
33b79214
TT
532021-03-08 Tom Tromey <tom@tromey.com>
54
55 * opencl-lang.c (opencl_structop_operation::evaluate): New
56 method.
57 * c-exp.h (class opencl_structop_operation): New.
58
2492ba36
TT
592021-03-08 Tom Tromey <tom@tromey.com>
60
61 * opencl-lang.c (opencl_logical_not): No longer static. Change
62 parameters.
63 (evaluate_subexp_opencl): Update.
64 * c-exp.h (opencl_notequal_operation): New typedef.
65
a88c3c8d
TT
662021-03-08 Tom Tromey <tom@tromey.com>
67
68 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
69 static. Change parameters.
70 (eval_opencl_assign): No longer static. Add "op" parameter.
71 (evaluate_subexp_opencl): Update.
72 * c-exp.h (opencl_binop_operation): New template class.
73 (opencl_assign_operation, opencl_equal_operation)
74 (opencl_notequal_operation, opencl_less_operation)
75 (opencl_gtr_operation, opencl_geq_operation)
76 (opencl_leq_operation): New typedefs.
77
e9677704
TT
782021-03-08 Tom Tromey <tom@tromey.com>
79
80 * opencl-lang.c (opencl_value_cast): No longer static.
81 * c-exp.h (opencl_cast_type_operation): New typedef.
82
f403a4e4
TT
832021-03-08 Tom Tromey <tom@tromey.com>
84
85 * f-exp.h (eval_op_f_allocated): Declare.
86 (fortran_allocated_operation): New typedef.
87 * f-lang.c (eval_op_f_allocated): No longer static.
88
eb4c9271
TT
892021-03-08 Tom Tromey <tom@tromey.com>
90
91 * f-lang.c (eval_op_f_associated): New functions.
92 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
93 typedefs.
94
58a76c72
TT
952021-03-08 Tom Tromey <tom@tromey.com>
96
97 * f-lang.c (fortran_bound_1arg::evaluate)
98 (fortran_bound_2arg::evaluate): New methods.
99 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
100 New.
101
2f98abe1
TT
1022021-03-08 Tom Tromey <tom@tromey.com>
103
104 * expop.h (class unop_addr_operation) <get_expression>: New
105 method.
106 * f-lang.c (fortran_undetermined::value_subarray)
107 (fortran_undetermined::evaluate): New methods.
108 (fortran_prepare_argument): New overload.
109 * f-exp.h (class fortran_range_operation)
110 (class fortran_undetermined): New classes.
111
638fd74a
TT
1122021-03-08 Tom Tromey <tom@tromey.com>
113
114 * rust-lang.c (rust_structop::evaluate_funcall): New method.
115 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
116 method.
117
a00b7254
TT
1182021-03-08 Tom Tromey <tom@tromey.com>
119
120 * expression.h (class operation) <evaluate_funcall>: New methods.
121 * expop.h (class scope_operation) <evaluate_funcall>: New method.
122 (class var_value_operation) <evaluate_funcall>: New method.
123 (class structop_base_operation) <evaluate_funcall>: New method.
124 (class var_msym_value_operation) <evaluate_funcall>: New method.
125 (class structop_member_base): New class.
126 (class structop_member_operation): Derive from
127 structop_member_base.
128 (class structop_mptr_operation): Derive from
129 structop_member_base.
130 (class funcall_operation): New class.
131 * eval.c (operation::evaluate_funcall)
132 (var_value_operation::evaluate_funcall)
133 (scope_operation::evaluate_funcall)
134 (structop_member_base::evaluate_funcall)
135 (structop_base_operation::evaluate_funcall): New methods.
136
1c02eb30
TT
1372021-03-08 Tom Tromey <tom@tromey.com>
138
139 * expop.h (class array_operation): New.
140 * eval.c (array_operation::evaluate_struct_tuple)
141 (array_operation::evaluate): New methods.
142
e4479080
TT
1432021-03-08 Tom Tromey <tom@tromey.com>
144
145 * expop.h (class adl_func_operation): New.
146 * eval.c (adl_func_operation::evaluate): New method.
147
95d49dfb
TT
1482021-03-08 Tom Tromey <tom@tromey.com>
149
150 * ada-lang.c (ada_unop_in_range): No longer static.
151 * ada-exp.h (class ada_unop_range_operation): New.
152
7c15d377
TT
1532021-03-08 Tom Tromey <tom@tromey.com>
154
155 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
156 No longer static.
157 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
158 (ada_atr_size_operation, ada_abs_operation): New typedefs.
159
5019124b
TT
1602021-03-08 Tom Tromey <tom@tromey.com>
161
162 * expop.h (class logical_and_operation)
163 (class logical_or_operation): New.
164 * eval.c (logical_and_operation::evaluate)
165 (logical_or_operation::evaluate): New methods.
166 * ax-gdb.c (logical_and_operation::do_generate_ax)
167 (logical_or_operation::do_generate_ax): New methods.
168
2bc9b40c
TT
1692021-03-08 Tom Tromey <tom@tromey.com>
170
171 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
172 static.
173 * m2-exp.h: New file.
174
5947d337
TT
1752021-03-08 Tom Tromey <tom@tromey.com>
176
177 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
178 * rust-exp.h (class rust_aggregate_operation): New.
179
e4407a20
TT
1802021-03-08 Tom Tromey <tom@tromey.com>
181
182 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
183 No longer static.
184 * rust-exp.h (class rust_struct_anon): New.
185 (class rust_structop): New.
186
9db6b6dd
TT
1872021-03-08 Tom Tromey <tom@tromey.com>
188
189 * rust-lang.c (rust_range): No longer static.
190 * rust-exp.h (class rust_range_operation): New.
191
6ce1ad67
TT
1922021-03-08 Tom Tromey <tom@tromey.com>
193
194 * rust-lang.c (rust_subscript): No longer static.
195 * rust-exp.h (class rust_subscript_operation): New.
196
11dd3dce
TT
1972021-03-08 Tom Tromey <tom@tromey.com>
198
199 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
200 parameter.
201 (rust_evaluate_subexp): Update.
202 * rust-exp.h (class rust_unop_ind_operation): New.
203
6fab4359
TT
2042021-03-08 Tom Tromey <tom@tromey.com>
205
206 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
207 longer static. Add "opcode" parameter.
208 (rust_evaluate_subexp): Update.
209 * rust-exp.h: New file.
210
9dcd3e29
TT
2112021-03-08 Tom Tromey <tom@tromey.com>
212
213 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
214 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
215 (eval_op_f_kind): No longer static. Add "opcode" parameter.
216 (evaluate_subexp_f): Update.
217 * f-exp.h: New file.
218
fc715eb2
TT
2192021-03-08 Tom Tromey <tom@tromey.com>
220
221 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
222 * ada-exp.h (class ada_ternop_range_operation): New.
223
cc6bd32e
TT
2242021-03-08 Tom Tromey <tom@tromey.com>
225
226 * ada-lang.c (ada_qual_operation::evaluate): New method.
227 * ada-exp.h (class ada_qual_operation): New.
228
42fecb61
TT
2292021-03-08 Tom Tromey <tom@tromey.com>
230
231 * ada-lang.c (ada_string_operation::evaluate): New method.
232 * ada-exp.h (class ada_string_operation): New.
233
03070ee9
TT
2342021-03-08 Tom Tromey <tom@tromey.com>
235
236 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
237 * ada-exp.h: New file.
238
821e72d7
TT
2392021-03-08 Tom Tromey <tom@tromey.com>
240
241 * expop.h (class multi_subscript_operation): New.
242 * eval.c (multi_subscript_operation::evaluate): New method.
243
085734dd
TT
2442021-03-08 Tom Tromey <tom@tromey.com>
245
246 * eval.c (objc_msgcall_operation::evaluate): New method.
247 * c-exp.h (class objc_msgcall_operation): New.
248
e82a5afc
TT
2492021-03-08 Tom Tromey <tom@tromey.com>
250
251 * expop.h (class var_value_operation): New.
252 * eval.c (var_value_operation::evaluate)
253 (var_value_operation::evaluate_for_address)
254 (var_value_operation::evaluate_with_coercion)
255 (var_value_operation::evaluate_for_sizeof)
256 (var_value_operation::evaluate_for_cast): New methods.
257 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
258
d9ad79d8
TT
2592021-03-08 Tom Tromey <tom@tromey.com>
260
261 * expop.h (cxx_cast_ftype): New typedef.
262 (cxx_cast_operation): New template.
263 (dynamic_cast_operation, reinterpret_cast_operation): New
264 typedefs.
265
292382f4
TT
2662021-03-08 Tom Tromey <tom@tromey.com>
267
268 * expop.h (class unop_cast_type_operation): New.
269 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
270 method.
271
165a813a
TT
2722021-03-08 Tom Tromey <tom@tromey.com>
273
274 * expop.h (class unop_cast_operation): New.
275 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
276
e5946e16
TT
2772021-03-08 Tom Tromey <tom@tromey.com>
278
279 * expop.h (class assign_modify_operation): New.
280 * eval.c (eval_binop_assign_modify): No longer static.
281 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
282
40786782
TT
2832021-03-08 Tom Tromey <tom@tromey.com>
284
285 * expop.h (class assign_operation): New.
286 * ax-gdb.c (assign_operation::do_generate_ax): New method.
287
44b675c8
TT
2882021-03-08 Tom Tromey <tom@tromey.com>
289
290 * expop.h (class type_instance_operation): New.
291 * eval.c (type_instance_operation::evaluate): New method.
292
f6b42326
TT
2932021-03-08 Tom Tromey <tom@tromey.com>
294
295 * expop.h (class op_this_operation): New.
296 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
297
cbc18219
TT
2982021-03-08 Tom Tromey <tom@tromey.com>
299
300 * expop.h (class unop_memval_operation)
301 (class unop_memval_type_operation): New.
302 * eval.c (eval_op_memval): No longer static.
303 (unop_memval_operation::evaluate_for_address)
304 (unop_memval_type_operation::evaluate_for_address)
305 (unop_memval_operation::evaluate_for_sizeof)
306 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
307 * ax-gdb.c (unop_memval_operation::do_generate_ax)
308 (unop_memval_type_operation::do_generate_ax): New methods.
309
ae4bb61e
TT
3102021-03-08 Tom Tromey <tom@tromey.com>
311
312 * expop.h (class unop_alignof_operation): New.
313 * eval.c (eval_op_alignof): No longer static.
314
85d23bda
TT
3152021-03-08 Tom Tromey <tom@tromey.com>
316
317 * expop.h (class unop_sizeof_operation): New.
318 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
319
14aff815
TT
3202021-03-08 Tom Tromey <tom@tromey.com>
321
322 * expop.h (class unop_addr_operation): New.
323 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
324
929f3aa7
TT
3252021-03-08 Tom Tromey <tom@tromey.com>
326
327 * expop.h (class typeid_operation): New.
328
0af8829e
TT
3292021-03-08 Tom Tromey <tom@tromey.com>
330
331 * expop.h (class decltype_operation): New.
332
4efc574c
TT
3332021-03-08 Tom Tromey <tom@tromey.com>
334
335 * expop.h (class typeof_operation): New.
336
5b5f5140
TT
3372021-03-08 Tom Tromey <tom@tromey.com>
338
339 * expop.h (class type_operation): New.
340 * eval.c (eval_op_type): No longer static.
341
876469ff
TT
3422021-03-08 Tom Tromey <tom@tromey.com>
343
344 * expop.h (class unop_ind_base_operation)
345 (class unop_ind_operation): New.
346 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
347 (unop_ind_base_operation::evaluate_for_address)
348 (unop_ind_base_operation::evaluate_for_sizeof): New method.
349 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
350
6d89e296
TT
3512021-03-08 Tom Tromey <tom@tromey.com>
352
353 * expop.h (unop_incr_operation): New template.
354 (preinc_operation, predec_operation, postinc_operation)
355 (postdec_operation): New typedefs.
356 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
357 (eval_op_postdec): No longer static.
358
9307d17b
TT
3592021-03-08 Tom Tromey <tom@tromey.com>
360
361 * expop.h (unary_ftype): New typedef.
362 (unop_operation, usual_ax_binop_operation): New templates.
363 (unary_plus_operation, unary_neg_operation)
364 (unary_complement_operation, unary_logical_not_operation): New
365 typedefs.
366 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
367 (eval_op_lognot): No longer static.
368 * ax-gdb.c (gen_expr_unop): New function.
369
ae64ba58
TT
3702021-03-08 Tom Tromey <tom@tromey.com>
371
372 * ax-gdb.c (comma_operation::do_generate_ax): New method.
373
d4eff4c1
TT
3742021-03-08 Tom Tromey <tom@tromey.com>
375
376 * expop.h (class repeat_operation): New.
377 * eval.c (eval_op_repeat): No longer static. Remove "op"
378 parameter.
379 (evaluate_subexp_standard): Update.
380 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
381
46916f2b
TT
3822021-03-08 Tom Tromey <tom@tromey.com>
383
384 * expop.h (class comparison_operation): New.
385 (equal_operation, notequal_operation, less_operation)
386 (gtr_operation, geq_operation, leq_operation): New typedefs.
387 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
388 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
389
224d6424
TT
3902021-03-08 Tom Tromey <tom@tromey.com>
391
392 * expop.h (class subscript_operation): New.
393 * eval.c (eval_op_subscript): No longer static.
394
373907ff
TT
3952021-03-08 Tom Tromey <tom@tromey.com>
396
397 * expop.h (class binop_operation, class usual_ax_binop_operation):
398 New.
399 (exp_operation, intdiv_operation, mod_operation, mul_operation)
400 (div_operation, rem_operation, lsh_operation, rsh_operation)
401 (bitwise_and_operation, bitwise_ior_operation)
402 (bitwise_xor_operation): New typedefs.
403 * eval.c (eval_op_binary): No longer static.
404
5133d78b
TT
4052021-03-08 Tom Tromey <tom@tromey.com>
406
407 * expop.h (class sub_operation): New.
408 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
409 (evaluate_subexp_standard): Update.
410
a94323b6
TT
4112021-03-08 Tom Tromey <tom@tromey.com>
412
413 * expop.h (class add_operation): New.
414 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
415 (evaluate_subexp_standard): Update.
416
e51e26a0
TT
4172021-03-08 Tom Tromey <tom@tromey.com>
418
419 * expop.h (class concat_operation): New.
420 * eval.c (eval_op_concat): No longer static. Remove "op"
421 parameter.
422 (evaluate_subexp_standard): Update.
423
07f724a8
TT
4242021-03-08 Tom Tromey <tom@tromey.com>
425
426 * expop.h (class structop_member_operation)
427 (class structop_mptr_operation): New.
428 * eval.c (eval_op_member): No longer static.
429
ab0609be
TT
4302021-03-08 Tom Tromey <tom@tromey.com>
431
432 * expop.h (class structop_ptr_operation): New.
433 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
434 parameter.
435
808b22cf
TT
4362021-03-08 Tom Tromey <tom@tromey.com>
437
438 * expop.h (class structop_base_operation)
439 (class structop_operation): New.
440 * eval.c (eval_op_structop_struct): No longer static.
441
8cfd3e95
TT
4422021-03-08 Tom Tromey <tom@tromey.com>
443
444 * expop.h (class complex_operation): New.
445
09db3700
TT
4462021-03-08 Tom Tromey <tom@tromey.com>
447
448 * eval.c (eval_op_objc_selector): No longer static.
449 * c-exp.h (class objc_selector_operation): New.
450
06dc61b9
TT
4512021-03-08 Tom Tromey <tom@tromey.com>
452
453 * eval.c: Include c-exp.h.
454 * c-exp.h (class objc_nsstring_operation): New.
455
72d0a711
TT
4562021-03-08 Tom Tromey <tom@tromey.com>
457
458 * c-lang.c (c_string_operation::evaluate): New method.
459 * c-exp.h: New file.
460
9186293f
TT
4612021-03-08 Tom Tromey <tom@tromey.com>
462
463 * expop.h (class ternop_cond_operation): New.
464 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
465
1594e0bb
TT
4662021-03-08 Tom Tromey <tom@tromey.com>
467
468 * expop.h (class ternop_slice_operation): New.
469 * eval.c (eval_op_ternop): No longer static.
470
b50db09f
TT
4712021-03-08 Tom Tromey <tom@tromey.com>
472
473 * expop.h (class string_operation): New.
474 * eval.c (eval_op_string): No longer static.
475
e6e01e16
TT
4762021-03-08 Tom Tromey <tom@tromey.com>
477
478 * expop.h (class internalvar_operation): New.
479 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
480
e6985c5e
TT
4812021-03-08 Tom Tromey <tom@tromey.com>
482
483 * expop.h (class bool_operation): New.
484
55bdbff8
TT
4852021-03-08 Tom Tromey <tom@tromey.com>
486
487 * expop.h (class register_operation): New.
488 * eval.c (eval_op_register): No longer static.
489 * ax-gdb.c (register_operation::do_generate_ax): New method.
490
247d935b
TT
4912021-03-08 Tom Tromey <tom@tromey.com>
492
493 * expop.h (class last_operation): New.
494
17679395
TT
4952021-03-08 Tom Tromey <tom@tromey.com>
496
497 * expop.h (class func_static_var_operation): New.
498 * eval.c (eval_op_func_static_var): No longer static.
499
b5cc3923
TT
5002021-03-08 Tom Tromey <tom@tromey.com>
501
502 * expop.h (class var_entry_value_operation): New.
503 * eval.c (eval_op_var_entry_value): No longer static.
504
0c8effa3
TT
5052021-03-08 Tom Tromey <tom@tromey.com>
506
507 * expression.h (class operation) <set_outermost>: New method.
508 * expop.h (class var_msym_value_operation): New.
509 * eval.c (eval_op_var_msym_value): No longer static.
510 (var_msym_value_operation::evaluate_for_address)
511 (var_msym_value_operation::evaluate_for_sizeof)
512 (var_msym_value_operation::evaluate_for_cast): New methods.
513 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
514 method.
515
d336c29e
TT
5162021-03-08 Tom Tromey <tom@tromey.com>
517
518 * expop.h (class long_const_operation): New.
519 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
520
d5ab122c
TT
5212021-03-08 Tom Tromey <tom@tromey.com>
522
523 * expop.h (class scope_operation): New.
524 * eval.c (eval_op_scope): No longer static.
525 (scope_operation::evaluate_for_address): New method.
526 * ax-gdb.c (scope_operation::do_generate_ax): New method.
527
cae26a0c
TT
5282021-03-08 Tom Tromey <tom@tromey.com>
529
530 * expprint.c (float_const_operation::dump): New method.
531 * expop.h (float_data): New typedef.
532 (class float_const_operation): New.
533
75f9892d
TT
5342021-03-08 Tom Tromey <tom@tromey.com>
535
536 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
537 * ax-gdb.c (gen_expr_binop): New function.
538 (gen_expr_structop): Likewise.
539
de401988
TT
5402021-03-08 Tom Tromey <tom@tromey.com>
541
542 * expprint.c (expr::dump_for_expression): New functions.
543 * expop.h (dump_for_expression): New overloads.
544 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
545 Update.
546
e2803273
TT
5472021-03-08 Tom Tromey <tom@tromey.com>
548
549 * expression.h (expr::operation): New class.
550 (expr::make_operation): New function.
551 (expr::operation_up): New typedef.
552 * expop.h: New file.
553 * eval.c (operation::evaluate_for_cast)
554 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
555 New methods.
556 * ax-gdb.c (operation::generate_ax): New method.
557
e18c58f2
TT
5582021-03-08 Tom Tromey <tom@tromey.com>
559
560 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
561 (gen_expr_binop_rest): New overload.
562
c0d7ed8c
TT
5632021-03-08 Tom Tromey <tom@tromey.com>
564
565 * eval.c (eval_multi_subscript): New function.
566 (evaluate_subexp_standard): Use it.
567
dd5fd283
TT
5682021-03-08 Tom Tromey <tom@tromey.com>
569
570 * ada-lang.c (ada_binop_exp): New function.
571 (ada_evaluate_subexp): Use it.
572
3848abd6
TT
5732021-03-08 Tom Tromey <tom@tromey.com>
574
575 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
576 parameters.
577 (ada_evaluate_subexp): Use it.
578
38dc70cf
TT
5792021-03-08 Tom Tromey <tom@tromey.com>
580
581 * ada-lang.c (ada_binop_minmax): New function.
582 (ada_evaluate_subexp): Use it.
583
b84564fc
TT
5842021-03-08 Tom Tromey <tom@tromey.com>
585
586 * ada-lang.c (ada_unop_atr): New function.
587 (ada_evaluate_subexp): Use it.
588
b467efaa
TT
5892021-03-08 Tom Tromey <tom@tromey.com>
590
591 * ada-lang.c (ada_binop_in_bounds): New function.
592 (ada_evaluate_subexp): Use it.
593
5ce19db8
TT
5942021-03-08 Tom Tromey <tom@tromey.com>
595
596 * ada-lang.c (ada_ternop_slice): New function.
597 (ada_evaluate_subexp): Use it.
598
214b13ac
TT
5992021-03-08 Tom Tromey <tom@tromey.com>
600
601 * ada-lang.c (ada_equal_binop): New function.
602 (ada_evaluate_subexp): Use it.
603
faa1dfd7
TT
6042021-03-08 Tom Tromey <tom@tromey.com>
605
606 * ada-lang.c (ada_mult_binop): New function.
607 (ada_evaluate_subexp): Use it.
608
d05e24e6
TT
6092021-03-08 Tom Tromey <tom@tromey.com>
610
611 * ada-lang.c (ada_abs): New function.
612 (ada_evaluate_subexp): Use it.
613
68c75735
TT
6142021-03-08 Tom Tromey <tom@tromey.com>
615
616 * ada-lang.c (ada_atr_size): New function.
617 (ada_evaluate_subexp): Use it.
618
020dbabe
TT
6192021-03-08 Tom Tromey <tom@tromey.com>
620
621 * ada-lang.c (ada_atr_tag): New function.
622 (ada_evaluate_subexp): Use it.
623
7efc87ff
TT
6242021-03-08 Tom Tromey <tom@tromey.com>
625
626 * ada-lang.c (ada_unop_in_range): New function.
627 (ada_evaluate_subexp): Use it.
628
82390ab8
TT
6292021-03-08 Tom Tromey <tom@tromey.com>
630
631 * ada-lang.c (ada_unop_neg): New function.
632 (ada_evaluate_subexp): Use it.
633
62d4bd94
TT
6342021-03-08 Tom Tromey <tom@tromey.com>
635
636 * ada-lang.c (eval_ternop_in_range): New function.
637 (ada_evaluate_subexp): Use it.
638
3634f669
TT
6392021-03-08 Tom Tromey <tom@tromey.com>
640
641 * opencl-lang.c (eval_opencl_assign): New function.
642 (evaluate_subexp_opencl): Use it.
643
5e80600e
TT
6442021-03-08 Tom Tromey <tom@tromey.com>
645
646 * eval.c (eval_op_objc_msgcall): New function.
647 (evaluate_subexp_standard): Use it.
648
fb5ba2ab
TT
6492021-03-08 Tom Tromey <tom@tromey.com>
650
651 * eval.c (eval_binop_assign_modify): New function.
652 (evaluate_subexp_standard): Use it.
653
a49881f7
TT
6542021-03-08 Tom Tromey <tom@tromey.com>
655
656 * m2-lang.c (eval_op_m2_subscript): New function.
657 (evaluate_subexp_modula2): Use it.
658
41bdced5
TT
6592021-03-08 Tom Tromey <tom@tromey.com>
660
661 * m2-lang.c (eval_op_m2_high): New function.
662 (evaluate_subexp_modula2): Use it.
663
13ea014a
TT
6642021-03-08 Tom Tromey <tom@tromey.com>
665
666 * eval.c (evaluate_subexp_for_address_base): New function.
667 (evaluate_subexp_for_address): Use it.
668 (evaluate_subexp_for_sizeof_base): New function.
669 (evaluate_subexp_for_sizeof): Use it.
670
1fa41fc7
TT
6712021-03-08 Tom Tromey <tom@tromey.com>
672
673 * rust-lang.c (eval_op_rust_structop): New function.
674 (rust_evaluate_subexp): Use it.
675
575cae23
TT
6762021-03-08 Tom Tromey <tom@tromey.com>
677
678 * rust-lang.c (eval_op_rust_struct_anon): New function.
679 (rust_evaluate_subexp): Use it.
680
05104233
TT
6812021-03-08 Tom Tromey <tom@tromey.com>
682
683 * rust-lang.c (eval_op_rust_array): New function.
684 (rust_evaluate_subexp): Use it.
685
6fa9831f
TT
6862021-03-08 Tom Tromey <tom@tromey.com>
687
688 * rust-lang.c (eval_op_rust_complement): New function.
689 (rust_evaluate_subexp): Use it.
690
d123f9e4
TT
6912021-03-08 Tom Tromey <tom@tromey.com>
692
693 * rust-lang.c (eval_op_rust_ind): New function.
694 (rust_evaluate_subexp): Use it.
695
984af2cb
TT
6962021-03-08 Tom Tromey <tom@tromey.com>
697
698 * rust-lang.c (rust_subscript): Change parameters.
699 (rust_evaluate_subexp): Update.
700
d148f803
TT
7012021-03-08 Tom Tromey <tom@tromey.com>
702
703 * rust-lang.c (rust_range): Change parameters.
704 (rust_evaluate_subexp): Update.
705
9cbd1c20
TT
7062021-03-08 Tom Tromey <tom@tromey.com>
707
708 * f-lang.c (eval_op_f_allocated): New function.
709 (evaluate_subexp_f): Use it.
710
3c18c49c
TT
7112021-03-08 Tom Tromey <tom@tromey.com>
712
713 * f-lang.c (fortran_require_array): New function.
714 (evaluate_subexp_f): Use it.
715
216f6fcb
TT
7162021-03-08 Tom Tromey <tom@tromey.com>
717
718 * f-lang.c (eval_op_f_kind): New function.
719 (evaluate_subexp_f): Use it.
720
00f2db6f
TT
7212021-03-08 Tom Tromey <tom@tromey.com>
722
723 * f-lang.c (eval_op_f_cmplx): New function.
724 (evaluate_subexp_f): Use it.
725
93b2b5fa
TT
7262021-03-08 Tom Tromey <tom@tromey.com>
727
728 * f-lang.c (eval_op_f_modulo): New function.
729 (evaluate_subexp_f): Use it.
730
9f1a1f3c
TT
7312021-03-08 Tom Tromey <tom@tromey.com>
732
733 * f-lang.c (eval_op_f_floor): New function.
734 (evaluate_subexp_f): Use it.
735
3dc41f3c
TT
7362021-03-08 Tom Tromey <tom@tromey.com>
737
738 * f-lang.c (eval_op_f_ceil): New function.
739 (evaluate_subexp_f): Use it.
740
e08109f2
TT
7412021-03-08 Tom Tromey <tom@tromey.com>
742
743 * f-lang.c (eval_op_f_mod): New function.
744 (evaluate_subexp_f): Use it.
745
cc05c68e
TT
7462021-03-08 Tom Tromey <tom@tromey.com>
747
748 * f-lang.c (eval_op_f_abs): New function.
749 (evaluate_subexp_f): Use it.
750
aec95807
TT
7512021-03-08 Tom Tromey <tom@tromey.com>
752
753 * eval.c (eval_op_type): New function.
754 (evaluate_subexp_standard): Use it.
755
a220ead5
TT
7562021-03-08 Tom Tromey <tom@tromey.com>
757
758 * eval.c (eval_op_postdec): New function.
759 (evaluate_subexp_standard): Use it.
760
abffe116
TT
7612021-03-08 Tom Tromey <tom@tromey.com>
762
763 * eval.c (eval_op_postinc): New function.
764 (evaluate_subexp_standard): Use it.
765
9e1361b7
TT
7662021-03-08 Tom Tromey <tom@tromey.com>
767
768 * eval.c (eval_op_predec): New file.
769 (evaluate_subexp_standard): Use it.
770
00f50884
TT
7712021-03-08 Tom Tromey <tom@tromey.com>
772
773 * eval.c (eval_op_preinc): New function.
774 (evaluate_subexp_standard): Use it.
775
3aef2a07
TT
7762021-03-08 Tom Tromey <tom@tromey.com>
777
778 * eval.c (eval_op_memval): New function.
779 (evaluate_subexp_standard): Use it.
780
acee9468
TT
7812021-03-08 Tom Tromey <tom@tromey.com>
782
783 * eval.c (eval_op_alignof): New function.
784 (evaluate_subexp_standard): Use it.
785
786f70ee
TT
7862021-03-08 Tom Tromey <tom@tromey.com>
787
788 * eval.c (eval_op_ind): New function.
789 (evaluate_subexp_standard): Use it.
790
24338fb9
TT
7912021-03-08 Tom Tromey <tom@tromey.com>
792
793 * eval.c (eval_op_lognot): New function.
794 (evaluate_subexp_standard): Use it.
795
1f09ec81
TT
7962021-03-08 Tom Tromey <tom@tromey.com>
797
798 * eval.c (eval_op_complement): New function.
799 (evaluate_subexp_standard): Use it.
800
606d105f
TT
8012021-03-08 Tom Tromey <tom@tromey.com>
802
803 * eval.c (eval_op_neg): New function.
804 (evaluate_subexp_standard): Use it.
805
39f288be
TT
8062021-03-08 Tom Tromey <tom@tromey.com>
807
808 * eval.c (eval_op_plus): New function.
809 (evaluate_subexp_standard): Use it.
810
eed70b1c
TT
8112021-03-08 Tom Tromey <tom@tromey.com>
812
813 * eval.c (eval_op_repeat): New function.
814 (evaluate_subexp_standard): Use it.
815
60cdd487
TT
8162021-03-08 Tom Tromey <tom@tromey.com>
817
818 * eval.c (eval_op_leq): New function.
819 (evaluate_subexp_standard): Use it.
820
96e3efd9
TT
8212021-03-08 Tom Tromey <tom@tromey.com>
822
823 * eval.c (eval_op_geq): New function.
824 (evaluate_subexp_standard): Use it.
825
1f78d732
TT
8262021-03-08 Tom Tromey <tom@tromey.com>
827
828 * eval.c (eval_op_gtr): New function.
829 (evaluate_subexp_standard): Use it.
830
6cad1349
TT
8312021-03-08 Tom Tromey <tom@tromey.com>
832
833 * eval.c (eval_op_less): New function.
834 (evaluate_subexp_standard): Use it.
835
1fcb3559
TT
8362021-03-08 Tom Tromey <tom@tromey.com>
837
838 * eval.c (eval_op_notequal): New function.
839 (evaluate_subexp_standard): Use it.
840
0cc96de8
TT
8412021-03-08 Tom Tromey <tom@tromey.com>
842
843 * eval.c (eval_op_equal): New function.
844 (evaluate_subexp_standard): Use it.
845
288d26bc
TT
8462021-03-08 Tom Tromey <tom@tromey.com>
847
848 * eval.c (eval_op_subscript): New function.
849 (evaluate_subexp_standard): Use it.
850
7cdcdd02
TT
8512021-03-08 Tom Tromey <tom@tromey.com>
852
853 * eval.c (eval_op_binary): New function.
854 (evaluate_subexp_standard): Use it.
855
d9790e22
TT
8562021-03-08 Tom Tromey <tom@tromey.com>
857
858 * eval.c (eval_op_sub): New function.
859 (evaluate_subexp_standard): Use it.
860
aedaf9ac
TT
8612021-03-08 Tom Tromey <tom@tromey.com>
862
863 * eval.c (eval_op_add): New function.
864 (evaluate_subexp_standard): Use it.
865
b7a96ed2
TT
8662021-03-08 Tom Tromey <tom@tromey.com>
867
868 * eval.c (eval_op_member): New function.
869 (evaluate_subexp_standard): Use it.
870
fb461aa3
TT
8712021-03-08 Tom Tromey <tom@tromey.com>
872
873 * eval.c (eval_op_structop_ptr): New function.
874 (evaluate_subexp_standard): Use it.
875
3e96c4fc
TT
8762021-03-08 Tom Tromey <tom@tromey.com>
877
878 * eval.c (eval_op_structop_struct): New function.
879 (evaluate_subexp_standard): Use it.
880
f960a617
TT
8812021-03-08 Tom Tromey <tom@tromey.com>
882
883 * eval.c (eval_op_ternop): New function.
884 (evaluate_subexp_standard): Use it.
885
5c2f201e
TT
8862021-03-08 Tom Tromey <tom@tromey.com>
887
888 * eval.c (eval_op_concat): New function.
889 (evaluate_subexp_standard): Use it.
890
f871bae1
TT
8912021-03-08 Tom Tromey <tom@tromey.com>
892
893 * eval.c (eval_op_objc_selector): New function.
894 (evaluate_subexp_standard): Use it.
895
14a1c64a
TT
8962021-03-08 Tom Tromey <tom@tromey.com>
897
898 * eval.c (eval_op_string): New function.
899 (evaluate_subexp_standard): Use it.
900
ffff730b
TT
9012021-03-08 Tom Tromey <tom@tromey.com>
902
903 * eval.c (eval_op_register): New function.
904 (evaluate_subexp_standard): Use it.
905
9b1d8af6
TT
9062021-03-08 Tom Tromey <tom@tromey.com>
907
908 * eval.c (eval_op_func_static_var): New function.
909 (evaluate_subexp_standard): Use it.
910
c0df9289
TT
9112021-03-08 Tom Tromey <tom@tromey.com>
912
913 * eval.c (eval_op_var_msym_value): New function.
914 (evaluate_subexp_standard): Use it.
915
50b98adc
TT
9162021-03-08 Tom Tromey <tom@tromey.com>
917
918 * eval.c (eval_op_var_entry_value): New function.
919 (evaluate_subexp_standard): Use it.
920
ea2d29f7
TT
9212021-03-08 Tom Tromey <tom@tromey.com>
922
923 * eval.c (eval_op_scope): New function.
924 (evaluate_subexp_standard): Use it.
925
01573d73
TT
9262021-03-06 Chernov Sergey <klen_s@mail.ru>
927
928 PR gdb/27528:
929 * ada-lang.c (ada_fold_name): Use gdb::to_string.
930
9938d15a
TT
9312021-03-06 Tom Tromey <tom@tromey.com>
932
933 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
934 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
935 * dwarf2/read.c (dwarf2_elf_names): No longer static.
936 (locate_dwz_sections, dwz_search_other_debugdirs)
937 (dwarf2_get_dwz_file): Move to dwz.c.
938 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
939 read.h.
940 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
941 (dwarf2_get_dwz_file): Move from read.c.
942
18035655
TT
9432021-03-06 Tom Tromey <tom@tromey.com>
944
945 * debuginfod-support.h: Include scoped_fd.h.
946
a7308ce0
TT
9472021-03-06 Tom Tromey <tom@tromey.com>
948
949 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
950 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
951 (get_abbrev_section_for_cu, read_attribute_value)
952 (get_debug_line_section): Update.
953 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
954
fbedd546
TT
9552021-03-06 Tom Tromey <tom@tromey.com>
956
957 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
958 method.
959 * dwarf2/read.c (section_is_p): Remove.
960 (dwarf2_per_bfd::locate_sections)
961 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
962 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
963 (dwarf2_locate_common_dwp_sections)
964 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
965 Update.
966
c2a62a3d
TT
9672021-03-06 Tom Tromey <tom@tromey.com>
968
969 * xcoffread.c: Include sect-names.h.
970 * symfile.h (struct dwarf2_section_names, struct
971 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
972 * dwarf2/sect-names.h: New file, from symfile.h.
973 * dwarf2/read.c: Include sect-names.h.
974
4444f407
TT
9752021-03-06 Tom Tromey <tom@tromey.com>
976
977 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
978 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
979 (abbrev_table::read): Update.
980 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
981 (struct abbrev_info): Reformat.
982 <attrs>: Now an array.
983 (struct abbrev_table) <alloc_abbrev>: Remove.
984
dd99cf0c
WP
9852021-03-06 Weimin Pan <weimin.pan@oracle.com>
986
987 * ctfread.c (ctf_psymtab_add_enums): New function.
988 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
989
844be3f2
WP
9902021-03-06 Weimin Pan <weimin.pan@oracle.com>
991
992 * ctfread.c (read_func_kind_type): Set up function arguments.
993
b2668f28
AB
9942021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
995 Andrew Burgess <andrew.burgess@embecosm.com>
996
997 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
998 includes.
999 (riscv_csrset): New static global.
1000 (riscv_update_csrmap): New function.
1001 (riscv_iterate_over_regset_sections): Process CSRs.
1002
d782d24b
AB
10032021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1004
1005 * riscv-tdep.c (riscv_feature_name_csr): Define.
1006 (riscv_feature_name_cpu): Define.
1007 (riscv_feature_name_fpu): Define.
1008 (riscv_feature_name_virtual): Define.
1009 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1010 (riscv_freg_feature): Use riscv_feature_name_fpu.
1011 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1012 (riscv_csr_feature): Use riscv_feature_name_csr.
1013 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1014
fb8f3fc0
AB
10152021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1016 Craig Blackmore <craig.blackmore@embecosm.com>
1017
1018 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1019 (ALLDEPFILES): Add riscv-none-tdep.c.
1020 * configure: Regenerate.
1021 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1022 support.
1023 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1024 * elf-none-tdep.c: New file.
1025 * elf-none-tdep.h: New file.
1026 * riscv-none-tdep.c: New file.
1027
95ce627a
AB
10282021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1029 Andrew Burgess <andrew.burgess@embecosm.com>
1030
1031 * corelow.c: Add 'xml-tdesc.h' include.
1032 (core_target::read_description): Load the target description from
1033 the core file when possible.
1034 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1035 note.
1036 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1037 (gcore_elf_make_tdesc_note): New function.
1038 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1039 * linux-tdep.c (linux_make_corefile_notes): Add target description
1040 note.
1041
f3a5df7b
AB
10422021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1043
1044 * Makefile.in (SFILES): Add gcore-elf.c.
1045 (HFILES_NO_SRCDIR): Add gcore-elf.h
1046 * configure: Regenerate.
1047 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1048 support.
1049 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1050 (struct fbsd_collect_regset_section_cb_data): Delete.
1051 (fbsd_collect_regset_section_cb): Delete.
1052 (fbsd_collect_thread_registers): Delete.
1053 (struct fbsd_corefile_thread_data): Delete.
1054 (fbsd_corefile_thread): Delete.
1055 (fbsd_make_corefile_notes): Call
1056 gcore_elf_build_thread_register_notes instead of the now deleted
1057 FreeBSD code.
1058 * gcore-elf.c: New file, the content was moved here from
1059 linux-tdep.c, functions were renamed and given minor cleanup.
1060 * gcore-elf.h: New file.
1061 * gcore.c (gcore_find_signalled_thread): Moved here from
1062 linux-tdep.c and given a new name. Minor cleanups.
1063 * gcore.h (gcore_find_signalled_thread): Declare.
1064 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1065 (struct linux_collect_regset_section_cb_data): Delete.
1066 (linux_collect_regset_section_cb): Delete.
1067 (linux_collect_thread_registers): Delete.
1068 (linux_corefile_thread): Call
1069 gcore_elf_build_thread_register_notes.
1070 (find_signalled_thread): Delete.
1071 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1072
d1e93af6
SM
10732021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1074
1075 PR gdb/27147
1076 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1077 process_stratum_target parameter,
1078 sparc_store_inferior_registers): update callers.
1079 * sparc-nat.c (sparc_fetch_inferior_registers,
1080 sparc_store_inferior_registers): Add process_stratum_target
1081 parameter. Switch current thread before calling
1082 sparc_supply_gregset / sparc_collect_rwindow.
1083 (sparc_store_inferior_registers): Likewise.
1084 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1085 (sparc32obsd_collect_uthread): Likewise.
1086 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1087 Add assertion.
1088 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1089 sparc64obsd_supply_uthread): Add assertion.
1090
1178743e
TT
10912021-03-04 Tom Tromey <tromey@adacore.com>
1092
1093 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1094 (aux_add_nonlocal_symbols): Update.
1095 (ada_add_block_symbols): Change "found_sym" to bool.
1096
1bfa81ac
TT
10972021-03-03 Tom Tromey <tromey@adacore.com>
1098
1099 * ada-lang.c (ada_resolve_function): Update comment.
1100 (is_nonfunction, add_symbols_from_enclosing_procs)
1101 (remove_extra_symbols): Likewise.
1102 (struct match_data): Add constructor, initializers.
1103 (add_nonlocal_symbols): Remove memset.
1104 (aux_add_nonlocal_symbols): Update comment.
1105 (ada_add_block_renamings, add_nonlocal_symbols)
1106 (ada_add_all_symbols): Likewise.
1107 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1108
bbcdf9ab
TT
11092021-03-02 Tom Tromey <tromey@adacore.com>
1110
1111 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1112 (cast_to_gnat_encoded_fixed_point_type): Remove.
1113 (ada_value_cast, ada_evaluate_subexp): Update.
1114 (gnat_encoded_fixed_point_type_info)
1115 (ada_is_gnat_encoded_fixed_point_type)
1116 (gnat_encoded_fixed_point_delta)
1117 (gnat_encoded_fixed_point_scaling_factor): Remove.
1118 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1119 (gnat_encoded_fixed_point_delta)
1120 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1121 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1122 (ada_print_type): Update.
1123 * ada-valprint.c (ada_value_print_num): Update.
1124 * dwarf2/read.c (ada_get_gnat_encoded_number)
1125 (ada_get_gnat_encoded_ratio): New functions.
1126 (finish_fixed_point_type): Use them. Add parameters.
1127 (GNAT_FIXED_POINT_SUFFIX): New define.
1128 (gnat_encoded_fixed_point_type_info): New function.
1129 (read_base_type): Handle gnat encodings.
1130
5f9febe0
TT
11312021-03-02 Tom Tromey <tromey@adacore.com>
1132
1133 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1134 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1135 std::string.
1136 (GROW_VECT): Remove.
1137 (grow_vect): Remove.
1138
d1183b06
TT
11392021-03-02 Tom Tromey <tromey@adacore.com>
1140
1141 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1142 * ada-lang.c (resolve_subexp): Update.
1143 (ada_resolve_function): Accept a vector.
1144 (is_nonfunction, add_defn_to_vec)
1145 (add_symbols_from_enclosing_procs): Likewise.
1146 (num_defns_collected, defns_collected): Remove.
1147 (remove_extra_symbols): Return a vector.
1148 (remove_irrelevant_renamings): Return void.
1149 (ada_add_local_symbols): Accept a vector.
1150 (struct match_data) <obstackp>: Remove.
1151 <resultp>: New member.
1152 (aux_add_nonlocal_symbols): Update.
1153 (ada_add_block_renamings, add_nonlocal_symbols)
1154 (ada_add_all_symbols): Accept a vector.
1155 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1156 vector.
1157 (ada_lookup_symbol): Update.
1158 (ada_add_block_symbols): Accept a vector.
1159 (get_var_value, iterate_over_symbols): Update.
1160 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1161 Update.
1162
886d459f
TT
11632021-03-02 Tom Tromey <tromey@adacore.com>
1164
1165 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1166
bdcccc56
TT
11672021-03-02 Tom Tromey <tromey@adacore.com>
1168
1169 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1170 auto_obstack.
1171 <root>: Initialize.
1172 (ada_pspace_data): Remove destructor.
1173 <sym_cache>: Now a unique_ptr.
1174 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1175 (ada_get_symbol_cache): Use 'new'.
1176 (ada_clear_symbol_cache): Rewrite.
1177
1228719f
TT
11782021-03-02 Tom Tromey <tromey@adacore.com>
1179
1180 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1181 is null.
1182
bb3a4efe
LS
11832021-02-27 Lancelot Six <lsix@lancelotsix.com>
1184
1185 PR gdb/27393
1186 * source.c (add_path): Skip empty dirnames.
1187
26b43ca6 11882021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
1189
1190 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1191 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1192
dffdd8b5
SM
11932021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1194
1195 PR gdb/26861
1196 * target.c (target_mourn_inferior): Only compare pids in
1197 target_mourn_inferior.
1198
64d38fdd
JM
11992021-02-25 Jan Matyas <jmatyas@codasip.com>
1200
1201 PR gdb/26819
1202 * remote.c (remote_target::start_remote): Ensure the single
1203 thread, automatically added for remote targets without the
1204 concept of threading, is initially in set to the "resumed"
1205 state.
1206 * remote.c (remote_target::add_current_inferior_and_thread):
1207 Add return value - return the main thread.
1208
2450ad54
JV
12092021-02-25 Jan Vrany <jan.vrany@labware.com>
1210
1211 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1212 (mi_tsv_created): Likewise.
1213 (mi_tsv_deleted): Likewise.
1214
30c80d88
TV
12152021-02-25 Tom de Vries <tdevries@suse.de>
1216
1217 PR symtab/27354
1218 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1219 section_kind for &dwo_file->sections.info.
1220
68337b8b
AB
12212021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1222
1223 PR fortran/26155
1224 * f-lang.c (fortran_argument_convert): Delete declaration.
1225 (fortran_prepare_argument): New function.
1226 (evaluate_subexp_f): Move logic to new function
1227 fortran_prepare_argument.
1228
faeb9f13
AB
12292021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1230
1231 * f-exp.y (f77_keywords): Add 'associated'.
1232 * f-lang.c (fortran_associated): New function.
1233 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1234 (operator_length_f): Likewise.
1235 (print_unop_or_binop_subexp_f): New function.
1236 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1237 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1238 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1239 (operator_check_f): Likewise.
1240 * std-operator.def: Add FORTRAN_ASSOCIATED.
1241
170f4b23
AB
12422021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1243
1244 * f-exp.y (fortran_operators): Add ".xor.".
1245
aa659cfa
TV
12462021-02-24 Tom de Vries <tdevries@suse.de>
1247
1248 PR symtab/27336
1249 * dwarf2/attribute.c (attribute::form_is_signed): New function
1250 factored out of ...
1251 * dwarf2/attribute.h (attribute::as_signed): ... here.
1252 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1253 (attribute::form_is_signed): Declare.
1254 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1255 for DW_AT_decl_file.
1256
268c77c1
KB
12572021-02-24 Kevin Buettner <kevinb@redhat.com>
1258
1259 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1260 order for <sys/ptrace.h> and <asm/ptrace.h>.
1261
665af52e
KB
12622021-02-24 Kevin Buettner <kevinb@redhat.com>
1263
1264 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1265 <sys/ptrace.h>.
1266
dd80d750
AB
12672021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1268
1269 * exec.c (set_section_command): Move variable declarations into
1270 the function body, and use std::string instead of a fixed size
1271 buffer.
1272
336aa7b7
AB
12732021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1274
1275 * exec.c (exec_target::get_section_table): Delete member function.
1276 (section_table_read_available_memory): Use current_top_target, not
1277 just the exec_ops target.
1278 * target-delegates.c: Regenerate.
1279 * target.c (default_get_section_table): New function.
1280 * target.h (target_ops::get_section_table): Change default
1281 behaviour to call default_get_section_table.
1282 (default_get_section_table): Declare.
1283
02f7d26b
AB
12842021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1285
1286 * exec.c (exec_target::close): Call new clear_target_sections
1287 function.
1288 (program_space::add_target_sections): Update name of member
1289 variable.
1290 (program_space::add_target_sections): Update name of member
1291 variable.
1292 (program_space::remove_target_sections): Likewise.
1293 (exec_one_fork): Use new target_sections member function.
1294 (exec_target::get_section_table): Likewise.
1295 (exec_target::files_info): Likewise.
1296 (set_section_command): Likewise.
1297 (exec_set_section_address): Likewise.
1298 (exec_target::has_memory): Use new target_sections member
1299 function.
1300 * progspace.h (program_space::clear_target_sections): New member
1301 function.
1302 (program_space::target_sections): Rename member variable to
1303 m_target_sections, replace with a new member function.
1304 (program_space::m_target_sections): New member variable.
1305 * solib-dsbt.c (scan_dyntag): Use new member function.
1306 * solib-svr4.c (scan_dyntag): Likewise.
1307
19cf757a
AB
13082021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1309
1310 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1311 return type const.
1312 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1313 (section_table_read_available_memory): Make local const.
1314 (exec_target::xfer_partial): Make local const.
1315 (print_section_info): Make parameter const.
1316 * gdb/exec.h (print_section_info): Likewise.
1317 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1318 const.
1319 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1320 Likewise.
1321 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1322 Likewise.
1323 * gdb/s390-tdep.c (s390_load): Likewise.
1324 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1325 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1326 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1327 Rename to...
1328 (target_debug_print_const_target_section_table_p): ...this.
1329 * gdb/target-delegates.c: Regenerate.
1330 * gdb/target.c (target_get_section_table): Make return type const.
1331 (target_section_by_addr): Likewise. Also make some locals const.
1332 (memory_xfer_partial_1): Make some locals const.
1333 * gdb/target.h (struct target_ops) <get_section_table>: Make
1334 return type const.
1335 (target_section_by_addr): Likewise.
1336 (target_get_section_table): Likewise.
1337
02a79309
AB
13382021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1339
1340 * NEWS: Mention new 'maint info target-sections' command.
1341 * maint.c (maintenance_info_target_sections): New function.
1342 (_initialize_maint_cmds): Register new command.
1343
895b7b4e
AB
13442021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1345
1346 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1347 (riscv_features_from_bfd): ...this. Change parameter type to
1348 'bfd*', and update as required.
1349 (riscv_find_default_target_description): Update call to
1350 riscv_features_from_bfd. Select a default xlen based on
1351 info.bfd_arch_info.
1352 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1353
bc3c0632
AB
13542021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1355
1356 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1357 dynamic types in UNOP_IND.
1358
08ac5771
SM
13592021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1360
1361 PR gdb/26828
1362 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1363 Instantiate queue.
1364 (~dwarf2_queue_guard): Clear queue.
1365 (queue_comp_unit): Assert that queue is
1366 instantiated.
1367 (process_queue): Adjust.
1368 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1369
616c069a
SM
13702021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1371
1372 PR gdb/26828
1373 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1374 to decide whether or not to enqueue it for expansion.
1375 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1376 after calling maybe_queue_comp_unit.
1377
897608ed
SM
13782021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1379
1380 * linux-nat.c (linux_nat_filter_event): Return void.
1381
15908a11
TT
13822021-02-22 Tom Tromey <tromey@adacore.com>
1383
1384 * solib-svr4.c (enable_break): Update.
1385 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1386 type.
1387 (target_bfd_reopen): Change parameter type.
1388 * bfd-target.h (target_bfd_reopen): Change parameter type.
1389
f53fc427
SM
13902021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1391
1392 * thread.c (add_thread_silent): Add assert.
1393 (find_thread_ptid): Add assert.
1394
de146e19
SM
13952021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1396
1397 PR gdb/27435
1398 * inf-ptrace.c (struct target_unpusher): Move to target.h.
1399 (target_unpush_up): Likewise.
1400 * procfs.c (procfs_target::attach): Push target early. Use
1401 target_unpush_up to unpush target in case of error.
1402 * target.h (struct target_unpusher): Move here.
1403 (target_unpush_up): Likewise.
1404
8488c357
KB
14052021-02-19 Kevin Buettner <kevinb@redhat.com>
1406
1407 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
1408 (which in turn includes <gnulib/config.h>) before include
1409 of <signal.h>.
1410
5a9f5403
NC
14112021-02-19 Nelson Chu <nelson.chu@sifive.com>
1412
1413 PR 27158
1414 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
1415 (decode_j_type_insn): Likewise.
1416 (decode_cj_type_insn): Likewise.
1417 (decode_b_type_insn): Likewise.
1418 (decode): Likewise.
1419
26f53cd3
TT
14202021-02-18 Tom Tromey <tom@tromey.com>
1421
1422 * expression.h (struct expression) <evaluate>: Declare method.
1423 * eval.c (evaluate_subexp): Simplify.
1424 (expression::evaluate): New method.
1425 (evaluate_expression, evaluate_type): Use expression::evaluate.
1426
6a780b67
KB
14272021-02-17 Kevin Buettner <kevinb@redhat.com>
1428
1429 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1430 to accessing it.
1431 (ada_lookup_name_info): Likewise.
1432
adeab0c5
MF
14332021-02-13 Mike Frysinger <vapier@gentoo.org>
1434
1435 * aclocal.m4: Regenerate.
1436
089436f7
TV
14372021-02-12 Tom de Vries <tdevries@suse.de>
1438
1439 PR threads/26228
1440 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1441 (lin_thread_signals): New static var.
1442 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1443 New function.
1444 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1445 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1446 Declare.
1447 * linux-thread-db.c (check_thread_signals): Use
1448 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1449
96df3e28
AB
14502021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1451
1452 * f-exp.y (f77_keywords): Add allocated.
1453 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
1454 (operator_length_f): Likewise.
1455 (print_subexp_f): Likewise.
1456 (dump_subexp_body_f): Likewise.
1457 (operator_check_f): Likewise.
1458 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
1459
05f68f52
TV
14602021-02-11 Tom de Vries <tdevries@suse.de>
1461
1462 PR symtab/27353
1463 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
1464 Return true for DW_FORM_strx.
1465
b260f8d6
TT
14662021-02-11 Tom Tromey <tromey@adacore.com>
1467
1468 PR gdb/27383:
1469 * parse.c (write_exp_symbol_reference): Write sym.block.
1470
bf3386f0
AB
14712021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1472
1473 * NEWS: Mention changes to 'maint info sections'.
1474 * maint.c (match_substring): Return a bool, fix whitespace issue.
1475 (struct single_bfd_flag_info): New struct.
1476 (bfd_flag_info): New static global.
1477 (match_bfd_flags): Return a bool, use bfd_flag_info.
1478 (print_bfd_flags): Use bfd_flag_info.
1479 (maint_print_section_info): Delete trailing whitespace.
1480 (struct maint_info_sections_opts): New struct.
1481 (maint_info_sections_option_defs): New static global.
1482 (maint_info_sections_completer): New function.
1483 (maintenance_info_sections): Use option parsing mechanism.
1484 (_initialize_maint_cmds): Update command help text for 'maint info
1485 sections' and register a command completer.
1486
4790db14
AB
14872021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1488
1489 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
1490 functionality merged into...
1491 (maint_print_all_sections): ...this new function.
1492 (maintenance_info_sections): Make use of maint_print_all_sections,
1493 allow all objects to be printed even where there's no executable.
1494
1db66e34
AB
14952021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1496
1497 * breakpoint.c (resolve_sal_pc): Make use of
1498 bound_minimal_symbol::obj_section.
1499 * maint.c (maintenance_translate_address): Likewise.
1500 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1501 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1502 member function.
1503 * printcmd.c (info_address_command): Make use of
1504 bound_minimal_symbol::obj_section.
1505
18b8df43
AM
15062021-02-11 Alan Modra <amodra@gmail.com>
1507
1508 * arm-symbian-tdep.c: Delete.
1509 * NEWS: Mention arm-symbian removal.
1510 * Makefile.in: Remove arm-symbian-tdep entries.
1511 * configure.tgt: Remove arm*-*-symbianelf*.
1512 * doc/gdb.texinfo: Remove mention of SymbianOS.
1513 * osabi.c (gdb_osabi_names): Remove "Symbian".
1514 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
1515 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
1516 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
1517 handling.
1518 * testsuite/gdb.base/dup-sect.exp: Likewise.
1519 * testsuite/gdb.base/long_long.exp: Likewise.
1520 * testsuite/gdb.base/solib-weak.exp: Likewise.
1521 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
1522 * testsuite/gdb.python/py-section-script.exp: Likewise.
1523 * testsuite/lib/dwarf.exp: Likewise.
1524 * testsuite/lib/gdb.exp: Likewise.
1525
e92c8eb8
AB
15262021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1527
1528 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
1529 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
1530 (one_or_two_args): New pattern.
1531 (f77_keywords): Add lbound and ubound.
1532 * f-lang.c (fortran_bounds_all_dims): New function.
1533 (fortran_bounds_for_dimension): New function.
1534 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
1535 (operator_length_f): Likewise.
1536 (print_subexp_f): Likewise.
1537 (dump_subexp_body_f): Likewise.
1538 (operator_check_f): Likewise.
1539 * std-operator.def (FORTRAN_LBOUND): Define.
1540 (FORTRAN_UBOUND): Define.
1541
a52d653e
AB
15422021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1543
1544 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
1545 and set_section_index member functions where appropriate.
1546 * coffread.c (coff_symtab_read): Likewise.
1547 (process_coff_symbol): Likewise.
1548 * ctfread.c (set_symbol_address): Likewise.
1549 * dwarf2/read.c (add_partial_symbol): Likewise.
1550 (var_decode_location): Likewise.
1551 * language.c: Likewise.
1552 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
1553 (compact_minimal_symbols): Likewise.
1554 (minimal_symbol_upper_bound): Likewise.
1555 * objfiles.c (relocate_one_symbol): Likewise.
1556 * psympriv.h (partial_symbol::obj_section): Likewise.
1557 (partial_symbol::address): Likewise.
1558 * psymtab.c (partial_symtab::add_psymbol): Likewise.
1559 * stabsread.c (scan_file_globals): Likewise.
1560 * symmisc.c (dump_msymbols): Likewise.
1561 * symtab.c (general_symbol_info::obj_section): Likewise.
1562 (fixup_section): Likewise.
1563 (get_msymbol_address): Likewise.
1564 * symtab.h (general_symbol_info::section): Rename to...
1565 (general_symbol_info::m_section): ...this.
1566 (general_symbol_info::set_section_index): New member function.
1567 (general_symbol_info::section_index): Likewise.
1568 (SYMBOL_SECTION): Delete.
1569 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1570 set_section_index member functions where appropriate.
1571 (MSYMBOL_SECTION): Delete.
1572 (symbol::symbol): Update to initialize 'm_section'.
1573 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1574 (process_xcoff_symbol): Likewise.
1575
ebbc3a7d
AB
15762021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1577
1578 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1579 MSYMBOL_OBJ_SECTION.
1580 * findvar.c (language_defn::read_var_value): Likewise.
1581 * infcmd.c (jump_command): Likewise.
1582 * linespec.c (minsym_found): Likewise.
1583 * maint.c (maintenance_translate_address): Likewise.
1584 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1585 (minimal_symbol_upper_bound): Likewise.
1586 * parse.c (find_minsym_type_and_address): Likewise.
1587 (operator_check_standard): Likewise.
1588 * printcmd.c (info_address_command): Likewise.
1589 * symmisc.c (dump_msymbols): Likewise.
1590 (print_symbol): Likewise.
1591 * symtab.c (general_symbol_info::obj_section): Define new
1592 function.
1593 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1594 (find_pc_sect_compunit_symtab): Likewise.
1595 (find_function_start_sal): Likewise.
1596 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1597 MSYMBOL_OBJ_SECTION.
1598 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1599 function.
1600 (SYMBOL_OBJ_SECTION): Delete.
1601 (MSYMBOL_OBJ_SECTION): Delete.
1602
9bb305b3
TT
16032021-02-09 Tom Tromey <tom@tromey.com>
1604
1605 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1606
cf2b2075
TV
16072021-02-09 Tom de Vries <tdevries@suse.de>
1608
1609 PR symtab/27341
1610 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1611 construct an array type. Add assert to ensure that element_type is
1612 not being modified.
1613
03642b71
AB
16142021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1615
1616 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1617 (gcore_collect_regset_section_cb): Delete.
1618 (gcore_collect_thread_registers): Delete.
1619 (gcore_build_thread_register_notes): Delete.
1620 (gcore_find_signalled_thread): Delete.
1621 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1622 'gdbarch' and 'thread_info' declarations.
1623 (gcore_build_thread_register_notes): Delete declaration.
1624 (gcore_find_signalled_thread): Likewise.
1625 * fbsd-tdep.c: Remove 'gcore.h' include.
1626 (struct fbsd_collect_regset_section_cb_data): New struct.
1627 (fbsd_collect_regset_section_cb): New function.
1628 (fbsd_collect_thread_registers): New function.
1629 (struct fbsd_corefile_thread_data): New struct.
1630 (fbsd_corefile_thread): New function.
1631 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1632 * linux-tdep.c: Remove 'gcore.h' include.
1633 (struct linux_collect_regset_section_cb_data): New struct.
1634 (linux_collect_regset_section_cb): New function.
1635 (linux_collect_thread_registers): New function.
1636 (linux_corefile_thread): Call Linux specific code.
1637 (find_signalled_thread): New function.
1638 (linux_make_corefile_notes): Call find_signalled_thread.
1639
f73e424f
TT
16402021-02-09 Tom Tromey <tromey@adacore.com>
1641
1642 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1643 not_lval value.
1644 * value.c (value_contents_copy_raw): Now static.
1645 * value.h (value_contents_copy_raw): Don't declare.
1646
a4f0544b
TT
16472021-02-09 Tom Tromey <tromey@adacore.com>
1648
1649 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1650 fields.
1651
9b3e4b5d
SV
16522021-02-08 Shahab Vahedi <shahab@synopsys.com>
1653
1654 PR tdep/27369
1655 * arc-linux-tdep.c (handle_atomic_sequence): New.
1656 (arc_linux_software_single_step): Call handle_atomic_sequence().
1657
29db1eb3
AB
16582021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1659
1660 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1661 function.
1662 (REQUIRE_WINDOW): Call is_valid member function.
1663 (REQUIRE_WINDOW_FOR_SETTER): New define.
1664 (gdbpy_tui_is_valid): Call is_valid member function.
1665 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1666 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1667 tui_active too.
1668 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1669 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1670 the function.
1671
e0c23e11
AB
16722021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1673
1674 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1675 for the title is not nullptr.
1676
1cf23996
AB
16772021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1678
1679 * tui-layout.c (saved_tui_windows): Delete.
1680 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1681 call new get_windows member function instead.
1682 (tui_get_window_by_name): Check in tui_windows.
1683 (tui_layout_window::apply): Don't add to tui_windows.
1684 * tui-layout.h (tui_layout_base::get_windows): New member function.
1685 (tui_layout_window::get_windows): Likewise.
1686 (tui_layout_split::get_windows): Likewise.
1687
a53a2657
AB
16882021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1689
1690 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1691 of the window objects.
1692
2708dbbd
AB
16932021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1694
1695 * python/python.c (gdbpy_print_stack): Reformat an error message.
1696
cd074e04
AB
16972021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1698
1699 * tui/tui-interp.c (tui_command_line_handler): New function.
1700 (tui_interp::resume): Register tui_command_line_handler as the
1701 input_handler.
1702 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1703 function.
1704 (tui_getc_1): Delete handling of '\n' and '\r'.
1705 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1706
4cf28e91
HD
17072021-02-07 Hannes Domani <ssbssa@yahoo.de>
1708
1709 * tui/tui-regs.c (tui_data_window::display_registers_from):
1710 Mark invisible register sub windows.
1711 (tui_data_window::check_register_values): Ignore invisible
1712 register sub windows.
1713
3537bc23
HD
17142021-02-07 Hannes Domani <ssbssa@yahoo.de>
1715
1716 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1717 n_spaces with a negative value.
1718
5fc2d6aa
HD
17192021-02-07 Hannes Domani <ssbssa@yahoo.de>
1720
1721 * tui/tui-regs.c (tui_data_window::display_registers_from):
1722 Add refresh_window call.
1723
83962f83
HD
17242021-02-07 Hannes Domani <ssbssa@yahoo.de>
1725
1726 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1727
0110ec82
SM
17282021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1729
1730 * symmisc.c (std_in, std_out, std_err): Remove.
1731 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1732
7c6944ab
TV
17332021-02-05 Tom de Vries <tdevries@suse.de>
1734
1735 PR breakpoints/27330
1736 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1737 glibc object file has debug info.
1738
e77b0004
TV
17392021-02-05 Tom de Vries <tdevries@suse.de>
1740
1741 PR symtab/27333
1742 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1743
0e857c82
TV
17442021-02-05 Tom de Vries <tdevries@suse.de>
1745
1746 PR breakpoints/27313
1747 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1748 syscall numbers.
1749
bdfea17e
TT
17502021-02-05 Tom Tromey <tom@tromey.com>
1751
1752 * compile/compile-c-support.c (get_compile_context)
1753 (c_get_compile_context, cplus_get_compile_context): Change return
1754 type.
1755 * language.c (language_defn::get_compile_instance): New method.
1756 * language.h (language_defn::get_compile_instance): Change return
1757 type. No longer inline.
1758 * c-lang.c (c_language::get_compile_instance): Change return type.
1759 (cplus_language::get_compile_instance): Change return type.
1760 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1761 Change return type.
1762 * compile/compile.c (compile_to_object): Update.
1763
1b30f421
TT
17642021-02-05 Tom Tromey <tom@tromey.com>
1765
1766 * parser-defs.h (write_exp_symbol_reference): Declare.
1767 * parse.c (write_exp_symbol_reference): New function.
1768 * p-exp.y (variable): Use write_exp_symbol_reference.
1769 * m2-exp.y (variable): Use write_exp_symbol_reference.
1770 * f-exp.y (variable): Use write_exp_symbol_reference.
1771 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1772 * c-exp.y (variable): Use write_exp_symbol_reference.
1773
ae710496
TV
17742021-02-05 Tom de Vries <tdevries@suse.de>
1775
1776 PR exp/27265
1777 * valarith.c (complex_binop): Throw an error if complex type can't
1778 be created.
1779
d3b54e63
TV
17802021-02-05 Tom de Vries <tdevries@suse.de>
1781
1782 PR symtab/27307
1783 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1784 return.
1785
fc9a13fb
TV
17862021-02-05 Tom de Vries <tdevries@suse.de>
1787
1788 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1789
04b4939b
MF
17902021-02-04 Mike Frysinger <vapier@gentoo.org>
1791
1792 * configure.tgt (riscv*-*-*): Set gdb_sim.
1793
6ff267e1
SM
17942021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1795
1796 * target.c (target_is_non_stop_p): Return bool.
1797 * target.h (target_is_non_stop_p): Return bool.
1798
fdbc5215
SM
17992021-02-04 Simon Marchi <simon.marchi@efficios.com>
1800
1801 * record-full.c (record_full_async_inferior_event_handler):
1802 Don't clear async event handler.
1803 (record_full_base_target::wait): Clear async event handler at
1804 beginning.
1805
85d3ad8e
SM
18062021-02-04 Simon Marchi <simon.marchi@efficios.com>
1807
1808 * record-btrace.c (record_btrace_handle_async_inferior_event):
1809 Don't clear async event handler.
1810 (record_btrace_target::wait): Clear async event handler at
1811 beginning.
1812
baa8575b
SM
18132021-02-04 Simon Marchi <simon.marchi@efficios.com>
1814
1815 * remote.c (remote_target::wait): Clear async event handler at
1816 beginning, mark if needed at the end.
1817 (remote_async_inferior_event_handler): Don't set or clear async
1818 event handler.
1819
6b36ddeb
SM
18202021-02-04 Simon Marchi <simon.marchi@efficios.com>
1821
1822 * async-event.h (async_event_handler_func): Add documentation.
1823 * async-event.c (check_async_event_handlers): Don't clear
1824 async_event_handler ready flag.
1825 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1826 flag.
1827 * record-btrace.c (record_btrace_handle_async_inferior_event):
1828 Likewise.
1829 * record-full.c (record_full_async_inferior_event_handler):
1830 Likewise.
1831 * remote-notif.c (remote_async_get_pending_events_handler):
1832 Likewise.
1833 * remote.c (remote_async_inferior_event_handler): Likewise.
1834
72d383bb
SM
18352021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1836
1837 * infrun.c (handle_inferior_event): Move stop_soon variable to
1838 inner scope.
1839
408f6686
PA
18402021-02-03 Pedro Alves <pedro@palves.net>
1841
1842 * infcmd.c (detach_command): Hold strong reference to target, and
1843 if all-stop on entry, restart threads on exit.
1844 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1845 (restart_stepped_thread): ... this new function. Also handle
1846 trap_expected.
1847 (restart_after_all_stop_detach): New function.
1848 * infrun.h (restart_after_all_stop_detach): Declare.
1849
ac7d717c
PA
18502021-02-03 Pedro Alves <pedro@palves.net>
1851
1852 * infrun.c (struct step_over_info): Initialize fields.
1853 (prepare_for_detach): Handle ongoing in-line step over.
1854
e87f0fe8
PA
18552021-02-03 Pedro Alves <pedro@palves.net>
1856
1857 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1858 here...
1859 * remote.c (remote_target::remote_detach_1): ... and here ...
1860 * target.c (target_detach): ... instead of here.
1861 * target.h (target_ops::detach): Add comment.
1862
8ff53139
PA
18632021-02-03 Pedro Alves <pedro@palves.net>
1864
1865 * infrun.c (struct wait_one_event): Move higher up.
1866 (prepare_for_detach): Abort in-progress displaced steps instead of
1867 letting them complete.
1868 (handle_one): If the inferior is detaching, don't add the thread
1869 back to the global step-over chain.
1870 (restart_threads): Don't restart threads if detaching.
1871 (handle_signal_stop): Remove inferior::detaching reference.
1872
91475068
PA
18732021-02-03 Pedro Alves <pedro@palves.net>
1874
1875 * infrun.c (prepare_for_detach): Don't release scoped_restore
1876 before returning.
1877
d758e62c
PA
18782021-02-03 Pedro Alves <pedro@palves.net>
1879
1880 * infrun.c (handle_one): New function, factored out from ...
1881 (stop_all_threads): ... here.
1882
b0083dd7
PA
18832021-02-03 Pedro Alves <pedro@palves.net>
1884
1885 * remote.c (remote_notif_stop_ack): Don't error out on
1886 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1887 (remote_target::discard_pending_stop_replies): Don't delete
1888 in-flight notification; instead, clear its contents.
1889
621cc310
PA
18902021-02-03 Pedro Alves <pedro@palves.net>
1891
1892 * remote.c (extended_remote_target::attach): Set target async in
1893 the target-non-stop path too.
1894
2ab76a18
PA
18952021-02-03 Pedro Alves <pedro@palves.net>
1896
1897 PR gdb/27055
1898 * infrun.c (handle_signal_stop): Move main context_switch call
1899 earlier, before STOP_QUIETLY_NO_SIGSTOP.
1900
2e3773ff
LS
19012021-02-02 Lancelot SIX <lsix@lancelotsix.com>
1902
1903 * NEWS (Changed commands): Add entry for the behavior change of
1904 the inferior command.
1905 * inferior.c (inferior_command): When no argument is given to the
1906 inferior command, display info about the currently selected
1907 inferior.
1908
e57933dc
SM
19092021-02-02 Simon Marchi <simon.marchi@efficios.com>
1910
1911 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
1912 a sect_offset.
1913 (read_attribute_reprocess): Adjust.
1914
2b0c7f41
SM
19152021-02-02 Simon Marchi <simon.marchi@efficios.com>
1916
1917 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
1918 <gnu_ranges_base>: ... this...
1919 <rnglists_base>: ... and this.
1920 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
1921 <gnu_ranges_base>: ... this...
1922 <rnglists_base>: ... and this.
1923 (read_cutu_die_from_dwo): Adjust
1924 (dwarf2_get_pc_bounds): Adjust
1925 (dwarf2_record_block_ranges): Adjust.
1926 (read_full_die_1): Adjust
1927 (partial_die_info::read): Adjust.
1928 (read_rnglist_index): Adjust.
1929
a1c40103
SM
19302021-02-02 Simon Marchi <simon.marchi@efficios.com>
1931
1932 PR gdb/26813
1933 * dwarf2/read.c (read_loclists_rnglists_header): Add
1934 header_offset parameter and use it.
1935 (read_loclist_index): Read header of the current contribution,
1936 not the one at the beginning of the section.
1937 (read_rnglist_index): Likewise.
1938
b1829e1b
SM
19392021-02-02 Simon Marchi <simon.marchi@efficios.com>
1940
1941 PR gdb/26813
1942 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
1943 requires_reprocessing flag.
1944 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
1945 DW_FORM_loclistx.
1946 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
1947 and DW_FORM_loclistx.
1948 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
1949 instead of set_address for DW_FORM_loclistx and
1950 DW_FORM_rnglistx.
1951
0c800c6e
SM
19522021-02-02 Simon Marchi <simon.marchi@efficios.com>
1953
1954 * dwarf2/read.c (read_loclist_index): Remove bound check for
1955 start of offset.
1956 (read_rnglist_index): Likewise.
1957
05787bad
SM
19582021-02-02 Simon Marchi <simon.marchi@efficios.com>
1959
1960 * dwarf2/read.c (read_loclist_index): Add bound check for the end
1961 of the offset.
1962
5e4d9bbc
SM
19632021-02-02 Simon Marchi <simon.marchi@efficios.com>
1964
1965 * dwarf2/read.c (read_rnglist_index): Fix bound check.
1966
a0c1eeba
SM
19672021-02-02 Simon Marchi <simon.marchi@efficios.com>
1968
1969 * dwarf2/read.c (read_loclist_index): Change complaints into
1970 errors.
1971
2bd3e4b8
TV
19722021-02-02 Tom de Vries <tdevries@suse.de>
1973
1974 PR symtab/24620
1975 * dwarf2/index-write.c (write_one_signatured_type): Skip if
1976 psymtab == nullptr.
1977
82a1fd3a
AB
19782021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1979
1980 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
1981 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
1982 here from linux-tdep.c and given a new name. Minor cleanups.
1983 (gcore_collect_regset_section_cb): Likewise.
1984 (gcore_collect_thread_registers): Likewise.
1985 (gcore_build_thread_register_notes): Likewise.
1986 (gcore_find_signalled_thread): Likewise.
1987 * gcore.h (gcore_build_thread_register_notes): Declare.
1988 (gcore_find_signalled_thread): Declare.
1989 * fbsd-tdep.c: Add 'gcore.h' include.
1990 (struct fbsd_collect_regset_section_cb_data): Delete.
1991 (fbsd_collect_regset_section_cb): Delete.
1992 (fbsd_collect_thread_registers): Delete.
1993 (struct fbsd_corefile_thread_data): Delete.
1994 (fbsd_corefile_thread): Delete.
1995 (fbsd_make_corefile_notes): Call
1996 gcore_build_thread_register_notes instead of the now deleted
1997 FreeBSD code.
1998 * linux-tdep.c: Add 'gcore.h' include.
1999 (struct linux_collect_regset_section_cb_data): Delete.
2000 (linux_collect_regset_section_cb): Delete.
2001 (linux_collect_thread_registers): Delete.
2002 (linux_corefile_thread): Call
2003 gcore_build_thread_register_notes.
2004 (find_signalled_thread): Delete.
2005 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2006
ebde6f2d
TV
20072021-01-29 Tom de Vries <tdevries@suse.de>
2008
2009 PR breakpoints/26063
2010 * infrun.c (process_event_stop_test): Reset
2011 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2012 changed.
2013
0f93c3a2
AB
20142021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2015
2016 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2017 assert. Extend the header comment.
2018
f237f998
AB
20192021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2020
2021 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2022 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2023 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2024 (tui_locator_win_info_ptr): Delete declaration.
2025 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2026 (tui_disasm_window::set_contents): Fetch state from tui_location
2027 global.
2028 (tui_get_begin_asm_address): Likewise.
2029 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2030 for locator window.
2031 (get_locator_window): Delete.
2032 (initialize_known_windows): Treat locator window just like all the
2033 rest.
2034 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2035 (tui_source_window::set_contents): Fetch state from tui_location
2036 global.
2037 (tui_source_window::showing_source_p): Likewise.
2038 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2039 (_locator): Delete.
2040 (tui_locator_win_info_ptr): Delete.
2041 (tui_locator_window::make_status_line): Fetch state from
2042 tui_location global.
2043 (tui_locator_window::rerender): Remove check of 'handle',
2044 reindent function body.
2045 (tui_locator_window::set_locator_fullname): Delete.
2046 (tui_locator_window::set_locator_info): Delete.
2047 (tui_update_locator_fullname): Delete.
2048 (tui_show_frame_info): Likewise.
2049 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2050 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2051 tui/tui-location.h and renamed to
2052 tui_location_tracker::set_location.
2053 (tui_locator_window::set_locator_fullname): Moved to
2054 tui/tui-location.h and renamed to
2055 tui_location_tracker::set_fullname.
2056 (tui_locator_window::full_name): Delete.
2057 (tui_locator_window::proc_name): Delete.
2058 (tui_locator_window::line_no): Delete.
2059 (tui_locator_window::addr): Delete.
2060 (tui_locator_window::gdbarch): Delete.
2061 (tui_update_locator_fullname): Delete declaration.
2062 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2063 for locator window.
2064 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2065 (tui_display_main): Call function on tui_location directly.
2066 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2067 * tui/tui-location.c: New file.
2068 * tui/tui-location.h: New file.
2069
8ee511af
SM
20702021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2071
2072 * gdbtypes.h (get_type_arch): Rename to...
2073 (struct type) <arch>: ... this, update all users.
2074
6ac37371
SM
20752021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2076
2077 * gdbtypes.h (struct type) <arch>: Rename to...
2078 <arch_owner>: ... this, update all users.
2079 <objfile>: Rename to...
2080 <objfile_owner>: ... this, update all users.
2081
24cf6389
AB
20822021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2083
2084 * gdbcmd.h (execute_command_to_string): Update comment.
2085 * top.c (execute_command_to_string): Update header comment.
2086
2a7f6487
TV
20872021-01-28 Tom de Vries <tdevries@suse.de>
2088
2089 PR breakpoints/27205
2090 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2091 (create_longjmp_master_breakpoint_names): New function, factored out
2092 of ...
2093 (create_longjmp_master_breakpoint): ... here. Only try to install
2094 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2095 breakpoint in libc.so failed.
2096
59b59f08
LS
20972021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2098
2099 PR gdb/27133
2100 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2101 unique_ptr is released when the wrapped pointer is kept for later
2102 use.
2103
807f647c
MM
21042021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2105
2106 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2107 BLR and BR instructions.
2108 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2109 (enum aarch64_masks): New.
2110
4ef367bf
TT
21112021-01-26 Tom Tromey <tromey@adacore.com>
2112
2113 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2114 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2115 (windows_init_thread_list, windows_nat::handle_load_dll)
2116 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2117 (windows_nat_target::resume)
2118 (windows_nat_target::get_windows_debug_event)
2119 (windows_nat_target::interrupt, windows_xfer_memory)
2120 (windows_nat_target::close): Update.
2121 * nat/windows-nat.c (DEBUG_EVENTS): Use
2122 debug_prefixed_printf_cond.
2123 (matching_pending_stop, fetch_pending_stop)
2124 (continue_last_debug_event): Update.
2125
4cb1265b
MS
21262020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2127
2128 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2129 elfcore_write_file_note.
2130
d0cc52bd
SV
21312021-01-26 Shahab Vahedi <shahab@synopsys.com>
2132
2133 * arc-tdep.c (arc_add_reggroups): New function.
2134 (arc_gdbarch_init): Call arc_add_reggroups.
2135
ac3571d9 21362021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
2137
2138 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2139
9f6c202e
TV
21402021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2141 Simon Marchi <simon.marchi@polymtl.ca>
2142 Tom de Vries <tdevries@suse.de>
2143
2144 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2145 DW_AT_ranges.
2146
a625a8c9
TT
21472021-01-25 Tom Tromey <tromey@adacore.com>
2148
2149 * dwarf2/read.c (get_mpz): New function.
2150 (get_dwarf2_rational_constant): Use it.
2151
19184910
TT
21522021-01-25 Tom Tromey <tromey@adacore.com>
2153
2154 * ada-lang.c (resolve_subexp): Handle array context.
2155
b10bae18
TT
21562021-01-23 Tom Tromey <tom@tromey.com>
2157
2158 PR compile/25575
2159 * compile/compile-loc2c.c (note_register): New function.
2160 (pushf_register_address, pushf_register): Use it.
2161
3637a558
TT
21622021-01-23 Tom Tromey <tom@tromey.com>
2163
2164 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2165 Change type of "registers_used".
2166 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2167 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2168 (locexpr_generate_c_location, loclist_generate_c_location): Change
2169 type of "registers_used".
2170 * compile/compile.h (compile_dwarf_expr_to_c)
2171 (compile_dwarf_bounds_to_c): Update.
2172 * compile/compile-loc2c.c (pushf_register_address)
2173 (pushf_register, do_compile_dwarf_expr_to_c)
2174 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2175 of "registers_used".
2176 * compile/compile-c.h (generate_c_for_variable_locations):
2177 Update.
2178 * compile/compile-c-symbols.c (generate_vla_size)
2179 (generate_c_for_for_one_variable): Change type of
2180 "registers_used".
2181 (generate_c_for_variable_locations): Return std::vector.
2182 * compile/compile-c-support.c (generate_register_struct): Change
2183 type of "registers_used".
2184 (compute): Update.
2185
9f7f6cb8
TT
21862021-01-23 Tom Tromey <tom@tromey.com>
2187
2188 * compile/compile-internal.h (class compile_instance)
2189 <set_arguments>: Change return type.
2190 * compile/compile.c (compile_to_object): Remove call to reset.
2191 (compile_instance::set_arguments): Change return type.
2192
dd5ca05f
SM
21932021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2194
2195 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2196 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2197
d3ee35db
LS
21982021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2199
2200 * Makefile.in (SELFTESTS_SRCS): Add
2201 unittests/gdb_tilde_expand-selftests.c.
2202 * unittests/gdb_tilde_expand-selftests.c: New file.
2203
9d2d8a16
AB
22042021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2205
2206 PR cli/25956
2207 * NEWS: Mention new command.
2208 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2209 (version_style): Define.
2210 (cli_style_option::cli_style_option): Add intensity parameter, and
2211 use as appropriate.
2212 (_initialize_cli_style): Register version style set/show commands.
2213 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2214 (version_style): Declare.
2215 * top.c (print_gdb_version): Use version_stype, and styled_string
2216 to print the GDB version string.
2217
e7b43072
AB
22182021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2219
2220 * utils.c (emit_style_escape): Only emit an escape sequence if the
2221 requested style is different than the current applied style.
2222 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2223 current applied_style.
2224 (fputs_styled): Remove is_default check.
2225 (fputs_styled_unfiltered): Likewise.
2226 (vfprintf_styled_no_gdbfmt): Likewise.
2227
2189c312
SM
22282021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2229
2230 * remote.h (remote_debug_printf): New.
2231 (remote_debug_printf_nofunc): New.
2232 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2233 * remote.c: Use above macros throughout file.
2234
02349803
SM
22352021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2236
2237 * remote.h (remote_debug): Change to bool.
2238 * remote.c (remote_debug): Change to bool.
2239 (_initialize_remote): Adjust.
2240
cda09ec9
SM
22412021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2242
2243 * target.h (remote_debug): Move to...
2244 * remote.h (remote_debug): ... here.
2245 * top.c (remote_debug): Move to...
2246 * remote.c (remote_debug): ... here.
2247 * remote-sim.c: Include remote.h.
2248
baf2b57f
SM
22492021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2250
2251 * cli/cli-cmds.c (show_remote_debug): Remove.
2252 (show_remote_timeout): Remove.
2253 (_initialize_cli_cmds): Don't register commands.
2254 * remote.c (show_remote_debug): Move here.
2255 (show_remote_timeout): Move here.
2256 (_initialize_remote): Register commands.
2257
344e9841
SM
22582021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2259
2260 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2261 type::objfile method instead.
2262
30625020
SM
22632021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2264
2265 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2266 use the type::is_objfile_owned method.
2267
5b7d941b
SM
22682021-01-22 Simon Marchi <simon.marchi@efficios.com>
2269
2270 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2271 (TYPE_OWNER): Remove.
2272 (TYPE_OBJFILE): Adjust.
2273 (struct main_type) <flag_objfile_owned>: Rename to...
2274 <m_flag_objfile_owned>: ... this.
2275 <owner>: Rename to...
2276 <m_owner>: ... this.
2277 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2278 methods.
2279 (TYPE_ALLOC): Adjust.
2280 * gdbtypes.c (alloc_type): Adjust.
2281 (alloc_type_arch): Adjust.
2282 (alloc_type_copy): Adjust.
2283 (get_type_arch): Adjust.
2284 (smash_type): Adjust.
2285 (lookup_array_range_type): Adjust.
2286 (recursive_dump_type): Adjust.
2287 (copy_type_recursive): Adjust.
2288 * compile/compile-c-types.c (convert_func): Adjust.
2289 (convert_type_basic): Adjust.
2290 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2291 Adjust.
2292 * language.c
2293 (language_arch_info::type_and_symbol::alloc_type_symbol):
2294 Adjust.
2295
d5d24e12
LM
22962021-01-21 Luis Machado <luis.machado@linaro.org>
2297
2298 * coffread.c (enter_linenos): Passing string to complaint.
2299 * valops.c (value_assign): Make array view.
2300
a59902a7
SM
23012021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2302
2303 * auto-load.h (debug_auto_load): Move here.
2304 (auto_load_debug_printf): New.
2305 * auto-load.c: Use auto_load_debug_printf.
2306 (debug_auto_load): Move to header.
2307 * linux-thread-db.c (try_thread_db_load): Use
2308 auto_load_debug_printf.
2309 * main.c (captured_main_1): Likewise.
2310
d3abc0ce
SM
23112021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2312
2313 * f-valprint.c (f77_array_offset_tbl): Remove.
2314
1e15fcac
SM
23152021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2316
2317 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2318
439706e6
SM
23192021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2320
2321 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2322 of gdb_select.
2323
325d39e4
HD
23242021-01-21 Hannes Domani <ssbssa@yahoo.de>
2325
2326 PR python/19151
2327 * python/py-breakpoint.c (bppy_get_location): Handle
2328 bp_hardware_breakpoint.
2329 (bppy_init): Likewise.
2330 (gdbpy_breakpoint_created): Likewise.
2331
7cb6d92a
SM
23322021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2333
2334 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2335
d4dd4fca
SM
23362021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2337
2338 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2339 (_initialize_gdb_bfd): Adjust.
2340
de53369b
SM
23412021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2342
2343 PR gdb/26828
2344 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2345
17e593e9
SM
23462021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2347
2348 * dwarf2/read.c (follow_die_offset): Add logging.
2349 (dwarf2_per_objfile::age_comp_units): Add logging.
2350
6bd434d6
SM
23512021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2352
2353 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2354 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2355 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2356 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2357 * arm-tdep.c (struct frame_unwind): Make static.
2358 * auto-load.c (auto_load_safe_path_vec): Make static.
2359 * csky-tdep.c (csky_stub_unwind): Make static.
2360 * gdbarch.c (gdbarch_data_registry): Make static.
2361 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2362 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2363 * i386-tdep.c (i386_frame_setup_skip_insns,
2364 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2365 Make static.
2366 * infrun.c (observer_mode): Make static.
2367 * linux-nat.c (sigchld_action): Make static.
2368 * linux-thread-db.c (thread_db_list): Make static.
2369 * maint-test-options.c (maintenance_test_options_list):
2370 * mep-tdep.c (mep_csr_registers): Make static.
2371 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2372 (stats): Make static.
2373 * nat/linux-osdata.c (struct osdata_type): Make static.
2374 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2375 * progspace.c (last_program_space_num): Make static.
2376 * python/py-param.c (struct parm_constant): Remove struct type
2377 name.
2378 (parm_constants): Make static.
2379 * python/py-record-btrace.c (btpy_list_methods): Make static.
2380 * python/py-record.c (recpy_gap_type): Make static.
2381 * record.c (record_goto_cmdlist): Make static.
2382 * regcache.c (regcache_descr_handle): Make static.
2383 * registry.h (DEFINE_REGISTRY): Make definition static.
2384 * symmisc.c (std_in, std_out, std_err): Make static.
2385 * top.c (previous_saved_command_line): Make static.
2386 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2387 static.
2388 * unittests/command-def-selftests.c (nr_duplicates,
2389 nr_invalid_prefixcmd, lists): Make static.
2390 * unittests/observable-selftests.c (test_notification): Make
2391 static.
2392 * unittests/optional/assignment/1.cc (counter): Make static.
2393 * unittests/optional/assignment/2.cc (counter): Make static.
2394 * unittests/optional/assignment/3.cc (counter): Make static.
2395 * unittests/optional/assignment/4.cc (counter): Make static.
2396 * unittests/optional/assignment/5.cc (counter): Make static.
2397 * unittests/optional/assignment/6.cc (counter): Make static.
2398
a6c11cbb
JS
23992021-01-20 Joel Sherrill <joel@rtems.org>
2400
2401 PR gdb/27219
2402 * remote.c (struct remote_thread_info) <resume_state>: Rename
2403 to...
2404 <get_resume_state>: ... this.
2405 (remote_target::resume): Adjust.
2406 (remote_target::commit_resume): Adjust.
2407 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
2408
6f52fdf4
SDJ
24092021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
2410 Tom Tromey <tom@tromey.com>
2411
2412 * stap-probe.c (stap_parse_single_operand): Handle '!'
2413 operator.
2414 (stap_parse_argument_conditionally): Likewise.
2415 Skip spaces after processing open-parenthesis sub-expression.
2416 (stap_parse_argument_1): Skip spaces after call to
2417 stap_parse_argument_conditionally.
2418 Handle case when right-side expression is a parenthesized
2419 sub-expression.
2420 Skip spaces after call to stap_parse_argument_1.
2421
1c3b85ad
LS
24222021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2423
2424 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2425
a9a87d35
LM
24262021-01-19 Luis Machado <luis.machado@linaro.org>
2427
2428 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2429 memory and save data.
2430 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2431 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2432 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2433 (trad_frame_value_bytes_p): Remove.
2434 (trad_frame_reset_saved_regs): Adjust documentation.
2435 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2436 constructor and reset the state of the registers.
2437 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2438 (trad_frame_value_bytes_p, trad_frame_set_value)
2439 (trad_frame_set_realreg, trad_frame_set_addr)
2440 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2441 (trad_frame_set_reg_realreg): Update to call member function.
2442 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2443 (trad_frame_get_prev_register): Likewise.
2444
2445 * aarch64-tdep.c (aarch64_analyze_prologue)
2446 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2447 (aarch64_prologue_prev_register): Update to use member functions.
2448 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2449 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
2450 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
2451 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
2452 (arm_make_epilogue_frame_cache): Likewise.
2453 * avr-tdep.c (avr_frame_unwind_cache)
2454 (avr_frame_prev_register): Likewise.
2455 * cris-tdep.c (cris_scan_prologue): Likewise.
2456 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
2457 * frv-tdep.c (frv_analyze_prologue): Likewise.
2458 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
2459 * lm32-tdep.c (lm32_frame_cache): Likewise.
2460 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2461 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2462 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
2463 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
2464 (reset_saved_regs): Adjust to set realreg.
2465 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
2466 call member functions.
2467 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
2468 * s390-tdep.c (s390_prologue_frame_unwind_cache)
2469 (s390_backchain_frame_unwind_cache): Likewise.
2470 * score-tdep.c (score7_analyze_prologue)
2471 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
2472 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
2473 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2474 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
2475 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2476 * tilegx-tdep.c (tilegx_analyze_prologue)
2477 (tilegx_frame_cache): Likewise.
2478 * v850-tdep.c (v850_frame_cache): Likewise.
2479 * vax-tdep.c (vax_frame_cache): Likewise.
2480
bdec2917
LM
24812021-01-19 Luis Machado <luis.machado@linaro.org>
2482
2483 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
2484 of buffer + length.
2485 (put_frame_register_bytes): Likewise.
2486 Adjust documentation.
2487 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
2488 (safe_frame_unwind_memory): Likewise.
2489 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
2490 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
2491 gdb::array_view.
2492 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
2493 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
2494 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2495 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
2496 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
2497 * dwarf2/loc.c (rw_pieced_value): Likewise.
2498 * hppa-tdep.c (hppa_frame_cache): Likewise.
2499 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2500 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2501 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2502 (i386_linux_rt_sigtramp_start): Likewise.
2503 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2504 * i386-tdep.c (i386_register_to_value): Likewise.
2505 * i387-tdep.c (i387_register_to_value): Likewise.
2506 * ia64-tdep.c (ia64_register_to_value): Likewise.
2507 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2508 (m32r_linux_rt_sigtramp_start): Likewise.
2509 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2510 * m68k-tdep.c (m68k_register_to_value): Likewise.
2511 * mips-tdep.c (mips_register_to_value)
2512 (mips_value_to_register): Likewise.
2513 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
2514 (ppcfbsd_sigtramp_frame_cache): Likewise.
2515 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
2516 (ppcobsd_sigtramp_frame_cache): Likewise.
2517 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
2518 (rs6000_register_to_value): Likewise.
2519 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2520 * tramp-frame.c (tramp_frame_start): Likewise.
2521 * valops.c (value_assign): Likewise.
2522
ccbe4c82
LM
25232021-01-19 Luis Machado <luis.machado@linaro.org>
2524
2525 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
2526 array_view.
2527 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
2528 instead of buffer and size.
2529 (trad_frame_set_reg_value_bytes): Likewise.
2530 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
2531 (trad_frame_set_value_bytes): Likewise.
2532
0e7620dc
MF
25332021-01-18 Mike Frysinger <vapier@gentoo.org>
2534
2535 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
2536
6a9ad81c
AB
25372021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
2538
2539 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
2540 (riscv_fbsd_gregset): Use riscv_supply_regset.
2541 (riscv_fbsd_fpregset): Likewise.
2542 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
2543 (riscv_linux_fregset): Likewise.
2544 * riscv-tdep.c (riscv_supply_regset): Define new function.
2545 * riscv-tdep.h (riscv_supply_regset): Declare new function.
2546
d3d7d1ba
TV
25472021-01-18 Tom de Vries <tdevries@suse.de>
2548
2549 PR tdep/27172
2550 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
2551 New macro.
2552 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
2553 for SEGV_BNDERR.
2554
aa2838cc
SM
25552021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2556
2557 * remote.c (class remote_target) <remote_hostio_send_command,
2558 remote_hostio_parse_result>: Constify parameter.
2559 (remote_hostio_parse_result): Likewise.
2560 (remote_target::remote_hostio_send_command): Adjust.
2561 (remote_target::remote_hostio_pread_vFile): Adjust.
2562 (remote_target::fileio_readlink): Adjust.
2563 (remote_target::fileio_fstat): Adjust.
2564
b5c8f22d
SM
25652021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2566
2567 * remote.c (remote_target::start_remote): Move wait_status to
2568 narrower scope.
2569
e3b2741b
SM
25702021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2571
2572 * remote.c (class remote_target):
2573 <add_current_inferior_and_thread>: Constify parameter.
2574 (stop_reply_extract_thread): Likewise.
2575 (remote_target::get_current_thread): Likewise.
2576 (remote_target::add_current_inferior_and_thread): Likewise.
2577
cecb1912
SM
25782021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2579
2580 * remote.c (class remote_target)
2581 <remote_unpack_thread_info_response,
2582 parse_threadlist_response>: Constify parameter and/or return
2583 value and or local variable.
2584 (stub_unpack_int): Likewise.
2585 (unpack_nibble): Likewise.
2586 (unpack_byte): Likewise.
2587 (unpack_int): Likewise.
2588 (unpack_string): Likewise.
2589 (unpack_threadid): Likewise.
2590 (remote_target::remote_unpack_thread_info_response): Likewise.
2591 (remote_target::parse_threadlist_response): Likewise.
2592
5a11fff0
AB
25932021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2594
2595 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2596
17e89137
LS
25972021-01-14 Lancelot Six <lsix@lancelotsix.com>
2598
2599 * MAINTAINERS (Write After Approval): Add myself.
2600
58eadc4b
BE
26012021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2602
2603 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2604 because is_trivially_default_constructible was first implemented with
2605 gcc-5.
2606
5fae2a2c
TV
26072021-01-14 Tom de Vries <tdevries@suse.de>
2608
2609 PR breakpoints/27151
2610 * objfiles.h (in_plt_section): Handle .plt.sec.
2611
8f66807b
AB
26122021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2613
2614 PR gdb/26819
2615 * remote.c
2616 (remote_target::select_thread_for_ambiguous_stop_reply): New
2617 member function.
2618 (remote_target::process_stop_reply): Call
2619 select_thread_for_ambiguous_stop_reply.
2620
bd497355
SM
26212021-01-13 Simon Marchi <simon.marchi@efficios.com>
2622
2623 * record-btrace.c (class record_btrace_target): Remove.
2624 (record_btrace_target::commit_resume): Remove.
2625 * record-full.c (class record_full_target): Remove.
2626 (record_full_target::commit_resume): Remove.
2627
c9d22089
SM
26282021-01-13 Simon Marchi <simon.marchi@efficios.com>
2629
2630 * remote.c (enum class resume_state): New.
2631 (struct resumed_pending_vcont_info): New.
2632 (struct remote_thread_info) <resume_state, set_not_resumed,
2633 set_resumed_pending_vcont, resumed_pending_vcont_info,
2634 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2635 New.
2636 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2637 (remote_target::remote_add_thread): Adjust.
2638 (remote_target::process_initial_stop_replies): Adjust.
2639 (remote_target::resume): Adjust.
2640 (remote_target::commit_resume): Rely on state in
2641 remote_thread_info and not on tp->executing.
2642 (remote_target::process_stop_reply): Adjust.
2643
d8d1feb4
SM
26442021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2645
2646 * arc-tdep.h (arc_debug_printf): New.
2647 * arc-tdep.c: Use arc_debug_printf.
2648 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2649 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2650 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2651
fb0f5031
SM
26522021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2653
2654 * arc-tdep.h (arc_debug): Change type to bool.
2655 * arc-tdep.c (arc_debug): Change type to bool.
2656 (arc_analyze_prologue): Adjust.
2657 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2658 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2659
5bf7e91b
SM
26602021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2661
2662 * auto-load.c (auto_load_objfile_script_1): Use bool.
2663 (execute_script_contents): Use bool.
2664
db972fce
SM
26652021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2666
2667 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2668 comment here.
2669 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2670 comment to header.
2671 * extension-priv.h (struct extension_language_script_ops)
2672 <auto_load_enabled>: Return bool.
2673 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2674 comment here.
2675 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2676 comment to header.
2677 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2678 move comment here.
2679 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2680 move comment to header.
2681 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2682 move comment here.
2683 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2684 move comment to header.
2685
5e12f48f
SM
26862021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2687
2688 * auto-load.h (file_is_auto_load_safe): Change return type to
2689 bool, move comment here.
2690 * auto-load.c (file_is_auto_load_safe): Change return type and
2691 advice_printed to bool. Move comment to header.
2692
54ca9002
SM
26932021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2694
2695 * jit.c (jit_debug_printf): New, use throughout file.
2696
24a7f1b5
SM
26972021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2698
2699 * infrun.c (normal_stop): Fix indentation.
2700
fe7a351a
SM
27012021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2702
2703 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2704 declarations to ...
2705 * symfile.h: ... here.
2706 * symfile.c: Update doc.
2707
16e9019e
SM
27082021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2709
2710 * target.h (baud_rate, serial_parity): Move declarations...
2711 * serial.h: ... here.
2712 * main.c: Include serial.h.
2713 * serial.c (baud_rate, serial_parity): Update doc.
2714
b2f2ae0d
SM
27152021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2716
2717 * top.c (pre_init_ui_hook): Remove.
2718
5291fe3c
SP
27192021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2720
2721 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2722 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2723 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2724 * features/aarch64-fpu.xml: Add bfloat16 type.
2725
ce38f5ed
AB
27262021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2727
2728 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2729
7c654b71
AB
27302021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2731
2732 * f-exp.y (dot_ops): Rename to...
2733 (fortran_operators): ...this. Add a header comment. Add symbol
2734 based operators.
2735 (yylex): Update to use fortran_operators not dot_ops. Remove
2736 special handling for '**', this is now included in
2737 fortran_operators.
2738
c6185dce
SM
27392021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2740
2741 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2742 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2743 * aarch64-tdep.c: Use aarch64_debug_printf.
2744
eef401dc
SM
27452021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2746
2747 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2748 file.
2749
062eaacb
SM
27502021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2751
2752 * jit.c (jit_debug): Change type to bool.
2753 (_initialize_jit): Adjust.
2754
54585eee
TT
27552021-01-09 Tom Tromey <tom@tromey.com>
2756
2757 PR compile/23672
2758 * compile/compile.c (compile_to_object): Avoid crash when
2759 osabi_triplet_regexp returns NULL.
2760
bc167b6b
TT
27612021-01-09 Tom Tromey <tom@tromey.com>
2762
2763 * tracepoint.h (class collection_list) <append_exp>: Take a
2764 std::string.
2765 * tracepoint.c (collection_list::append_exp): Take a std::string.
2766 (encode_actions_1): Update.
2767
8fc48b79
TT
27682021-01-08 Tom Tromey <tromey@adacore.com>
2769
2770 * parse.c (parse_expression): Add void_context_p parameter. Use
2771 parse_exp_in_context.
2772 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2773 parse_expression.
2774 (print_command, call_command): Update.
2775 * expression.h (parse_expression): Add void_context_p parameter.
2776
3c8c6de2
AB
27772021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2778
2779 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2780 for internalvar components that have a dynamic location.
2781
1940319c
TV
27822021-01-08 Tom de Vries <tdevries@suse.de>
2783
2784 PR gdb/26881
2785 * breakpoint.c (create_exception_master_breakpoint_probe)
2786 (create_exception_master_breakpoint_hook): Factor out
2787 of ...
2788 (create_exception_master_breakpoint): ... here. Only try to install
2789 the master exception breakpoint in objfile.debug using the
2790 _Unwind_DebugHook method, if the install using probes in objfile
2791 failed.
2792
e3436813
AB
27932021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2794
2795 * f-lang.c (fortran_value_subarray): Call value_from_component.
2796
e904f56d
MF
27972021-01-07 Mike Frysinger <vapier@gentoo.org>
2798
2799 * remote-sim.c: Include memory-map.h.
2800 (gdbsim_target): Define memory_map override.
2801 (gdbsim_target::memory_map): Define.
2802
959d6a67
TT
28032021-01-07 Tom Tromey <tromey@adacore.com>
2804
2805 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2806
d4813f10
TT
28072021-01-07 Tom Tromey <tromey@adacore.com>
2808
2809 * ada-lang.c (add_component_interval): Start loop using vector's
2810 updated size.
2811
b49180ac
TT
28122021-01-06 Tom Tromey <tromey@adacore.com>
2813
2814 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2815 Do not cast result.
2816 * valarith.c (fixed_point_binop): Handle multiplication
2817 and division specially.
2818 * valops.c (value_to_gdb_mpq): New function.
2819 (value_cast_to_fixed_point): Use it.
2820
55195361
HD
28212021-01-05 Hannes Domani <ssbssa@yahoo.de>
2822
2823 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2824 Call wnoutrefresh instead of tui_win_info::refresh_window.
2825
1b6d4bb2
HD
28262021-01-05 Hannes Domani <ssbssa@yahoo.de>
2827
2828 * tui/tui-source.c (tui_source_window::show_line_number):
2829 Redraw second space after line number.
2830
b5ff370e
HD
28312021-01-05 Hannes Domani <ssbssa@yahoo.de>
2832
2833 PR tui/26927
2834 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2835 Fix source pad size in prefresh.
2836 (tui_source_window_base::show_source_content): Grow source pad
2837 if necessary.
2838
c68ea49f
MF
28392021-01-04 Mike Frysinger <vapier@gentoo.org>
2840
2841 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2842 (bfin_frame_align): Use align_down.
2843
e4ad960a
TV
28442021-01-04 Tom de Vries <tdevries@suse.de>
2845
2846 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2847 terminators that do not terminate anything.
2848
3ec3145c
SM
28492021-01-04 Simon Marchi <simon.marchi@efficios.com>
2850
2851 * debug.c (debug_print_depth): New.
2852 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2853 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2854 * infrun.c (start_step_over): Use
2855 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2856 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2857 INFRUN_SCOPED_DEBUG_START_END.
2858 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2859
e71daf80
SM
28602021-01-04 Simon Marchi <simon.marchi@efficios.com>
2861
2862 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2863
335709bc
SM
28642021-01-04 Simon Marchi <simon.marchi@efficios.com>
2865
2866 * utils.c (vfprintf_unfiltered): Print timestamp only when
2867 previous debug output ended with a newline.
2868
098caef4
LM
28692021-01-04 Luis Machado <luis.machado@linaro.org>
2870
2871 Update all users of trad_frame_saved_reg to use the new member
2872 functions.
2873
2874 Remote all struct keywords from declarations of trad_frame_saved_reg
2875 types, except on forward declarations.
2876
2877 * aarch64-tdep.c: Update.
2878 * alpha-mdebug-tdep.c: Update.
2879 * alpha-tdep.c: Update.
2880 * arc-tdep.c: Update.
2881 * arm-tdep.c: Update.
2882 * avr-tdep.c: Update.
2883 * cris-tdep.c: Update.
2884 * csky-tdep.c: Update.
2885 * frv-tdep.c: Update.
2886 * hppa-linux-tdep.c: Update.
2887 * hppa-tdep.c: Update.
2888 * hppa-tdep.h: Update.
2889 * lm32-tdep.c: Update.
2890 * m32r-linux-tdep.c: Update.
2891 * m32r-tdep.c: Update.
2892 * m68hc11-tdep.c: Update.
2893 * mips-tdep.c: Update.
2894 * moxie-tdep.c: Update.
2895 * riscv-tdep.c: Update.
2896 * rs6000-tdep.c: Update.
2897 * s390-linux-tdep.c: Update.
2898 * s390-tdep.c: Update.
2899 * score-tdep.c: Update.
2900 * sparc-netbsd-tdep.c: Update.
2901 * sparc-sol2-tdep.c: Update.
2902 * sparc64-fbsd-tdep.c: Update.
2903 * sparc64-netbsd-tdep.c: Update.
2904 * sparc64-obsd-tdep.c: Update.
2905 * sparc64-sol2-tdep.c: Update.
2906 * tilegx-tdep.c: Update.
2907 * v850-tdep.c: Update.
2908 * vax-tdep.c: Update.
2909
2910 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
2911 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
2912
2913 * trad-frame.c: Update.
2914 Remove TF_REG_* enum.
2915 (trad_frame_alloc_saved_regs): Add a static assertion to check for
2916 a trivially-constructible struct.
2917 (trad_frame_reset_saved_regs): Adjust to use member function.
2918 (trad_frame_value_p): Likewise.
2919 (trad_frame_addr_p): Likewise.
2920 (trad_frame_realreg_p): Likewise.
2921 (trad_frame_value_bytes_p): Likewise.
2922 (trad_frame_set_value): Likewise.
2923 (trad_frame_set_realreg): Likewise.
2924 (trad_frame_set_addr): Likewise.
2925 (trad_frame_set_unknown): Likewise.
2926 (trad_frame_set_value_bytes): Likewise.
2927 (trad_frame_get_prev_register): Likewise.
2928 * trad-frame.h: Update.
2929 (trad_frame_saved_reg_kind): New enum.
2930 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
2931 <m_kind, m_reg>: New member fields.
2932 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
2933 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
2934 <is_addr, is_unknown, is_value_bytes>: New member functions.
2935
9898e882
SM
29362021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
2937
2938 * target-float.c: Fix typos.
2939
b66b4e65
HD
29402021-01-02 Hannes Domani <ssbssa@yahoo.de>
2941
2942 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
2943
b5b5650a
JB
29442021-01-01 Joel Brobecker <brobecker@adacore.com>
2945
2946 * gdbarch.sh: Update copyright year range.
2947
3666a048
JB
29482021-01-01 Joel Brobecker <brobecker@adacore.com>
2949
2950 Update copyright year range in copyright header of all GDB files.
2951
ff7e39b6
JB
29522021-01-01 Joel Brobecker <brobecker@adacore.com>
2953
2954 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
2955 to the list of directories to update.
2956
2b47c078
JB
29572021-01-01 Joel Brobecker <brobecker@adacore.com>
2958
2959 * top.c (print_gdb_version): Update copyright year.
2960
476923f1 29612021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 2962
476923f1 2963 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 2964
476923f1 2965For older changes see ChangeLog-2020.
c906108c
SS
2966\f
2967Local Variables:
2968mode: change-log
2969left-margin: 8
2970fill-column: 74
2971version-control: never
57da7796 2972coding: utf-8
c906108c 2973End:
This page took 2.954774 seconds and 4 git commands to generate.