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