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