Implement Ada assignment
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2021-03-08 Tom Tromey <tom@tromey.com>
2
3 * expprint.c (dump_for_expression): New overload.
4 * expop.h (check_objfile, dump_for_expression): Declare new
5 overloads.
6 * ada-lang.c (check_objfile): New overload.
7 (assign_component, ada_aggregate_component::uses_objfile)
8 (ada_aggregate_component::dump, ada_aggregate_component::assign)
9 (ada_aggregate_component::assign_aggregate)
10 (ada_positional_component::uses_objfile)
11 (ada_positional_component::dump, ada_positional_component::assign)
12 (ada_discrete_range_association::uses_objfile)
13 (ada_discrete_range_association::dump)
14 (ada_discrete_range_association::assign)
15 (ada_name_association::uses_objfile, ada_name_association::dump)
16 (ada_name_association::assign)
17 (ada_choices_component::uses_objfile, ada_choices_component::dump)
18 (ada_choices_component::assign)
19 (ada_others_component::uses_objfile, ada_others_component::dump)
20 (ada_others_component::assign, ada_assign_operation::evaluate):
21 New methods.
22 * ada-exp.h (ada_string_operation) <get_name>: New method.
23 (class ada_assign_operation): New.
24 (class ada_component): New.
25 (ada_component_up): New typedef.
26 (class ada_aggregate_operation, class ada_aggregate_component)
27 (class ada_positional_component, class ada_others_component)
28 (class ada_association): New.
29 (ada_association_up): New typedef.
30 (class ada_choices_component)
31 (class ada_discrete_range_association)
32 (class ada_name_association): New.
33
34 2021-03-08 Tom Tromey <tom@tromey.com>
35
36 * ada-lang.c (ada_var_value_operation::resolve)
37 (ada_funcall_operation::resolve)
38 (ada_ternop_slice_operation::resolve): New methods.
39 * ada-exp.h (struct ada_resolvable): New.
40 (class ada_var_value_operation): Derive from ada_resolvable.
41 <get_block, resolve>: New methods.
42 (class ada_funcall_operation): Derive from ada_resolvable.
43 <resolve>: New method.
44 (class ada_ternop_slice_operation): Derive from ada_resolvable.
45 <resolve>: New method.
46
47 2021-03-08 Tom Tromey <tom@tromey.com>
48
49 * ada-lang.c (ada_funcall_operation::evaluate): New method.
50 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
51 method.
52 (class ada_funcall_operation): New.
53
54 2021-03-08 Tom Tromey <tom@tromey.com>
55
56 * ada-lang.c (ada_structop_operation::evaluate): New method.
57 * ada-exp.h (class ada_structop_operation): New.
58
59 2021-03-08 Tom Tromey <tom@tromey.com>
60
61 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
62 * ada-exp.h (class ada_unop_ind_operation): New.
63
64 2021-03-08 Tom Tromey <tom@tromey.com>
65
66 * ada-lang.c (ada_binop_exp): No longer static.
67 * ada-exp.h (ada_binop_exp_operation): New typedef.
68
69 2021-03-08 Tom Tromey <tom@tromey.com>
70
71 * ada-lang.c (ada_val_atr): No longer static.
72 (ada_atr_val_operation::evaluate): New method.
73 * ada-exp.h (class ada_atr_val_operation): New.
74
75 2021-03-08 Tom Tromey <tom@tromey.com>
76
77 * ada-lang.c (ada_pos_atr): No longer static.
78 * ada-exp.h (ada_pos_operation): New typedef.
79
80 2021-03-08 Tom Tromey <tom@tromey.com>
81
82 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
83 parameters.
84 (ada_evaluate_subexp): Use it.
85
86 2021-03-08 Tom Tromey <tom@tromey.com>
87
88 * ada-lang.c (ada_binop_minmax): No longer static.
89 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
90 New typedefs.
91
92 2021-03-08 Tom Tromey <tom@tromey.com>
93
94 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
95 New method.
96 * ada-exp.h (class ada_var_msym_value_operation): New.
97
98 2021-03-08 Tom Tromey <tom@tromey.com>
99
100 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
101 (ada_var_value_operation::evaluate): New methods.
102 * ada-exp.h (class ada_var_value_operation): New.
103
104 2021-03-08 Tom Tromey <tom@tromey.com>
105
106 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
107 * ada-exp.h (class ada_unop_atr_operation): New.
108
109 2021-03-08 Tom Tromey <tom@tromey.com>
110
111 * ada-lang.c (ada_binop_in_bounds): No longer static.
112 * ada-exp.h (class ada_binop_in_bounds_operation): New.
113
114 2021-03-08 Tom Tromey <tom@tromey.com>
115
116 * ada-lang.c (ada_ternop_slice): No longer static.
117 * ada-exp.h (class ada_ternop_slice_operation): New.
118
119 2021-03-08 Tom Tromey <tom@tromey.com>
120
121 * ada-exp.h (ada_bitwise_operation): New template class.
122 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
123 (ada_bitwise_xor_operation): New typedefs.
124
125 2021-03-08 Tom Tromey <tom@tromey.com>
126
127 * ada-lang.c (ada_equal_binop): No longer static.
128 * ada-exp.h (class ada_binop_equal_operation): New.
129
130 2021-03-08 Tom Tromey <tom@tromey.com>
131
132 * ada-lang.c (ada_mult_binop): No longer static.
133 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
134 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
135
136 2021-03-08 Tom Tromey <tom@tromey.com>
137
138 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
139 * ada-exp.h (class ada_binop_addsub_operation): New.
140
141 2021-03-08 Tom Tromey <tom@tromey.com>
142
143 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
144 (ada_resolve_variable): Declare.
145 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
146 (ada_resolve_variable): New functions.
147 (resolve_subexp): Update.
148
149 2021-03-08 Tom Tromey <tom@tromey.com>
150
151 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
152 method.
153 * c-exp.h (class opencl_ternop_cond_operation): New.
154
155 2021-03-08 Tom Tromey <tom@tromey.com>
156
157 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
158 method.
159 * c-exp.h (class opencl_logical_binop_operation): New.
160
161 2021-03-08 Tom Tromey <tom@tromey.com>
162
163 * opencl-lang.c (opencl_structop_operation::evaluate): New
164 method.
165 * c-exp.h (class opencl_structop_operation): New.
166
167 2021-03-08 Tom Tromey <tom@tromey.com>
168
169 * opencl-lang.c (opencl_logical_not): No longer static. Change
170 parameters.
171 (evaluate_subexp_opencl): Update.
172 * c-exp.h (opencl_notequal_operation): New typedef.
173
174 2021-03-08 Tom Tromey <tom@tromey.com>
175
176 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
177 static. Change parameters.
178 (eval_opencl_assign): No longer static. Add "op" parameter.
179 (evaluate_subexp_opencl): Update.
180 * c-exp.h (opencl_binop_operation): New template class.
181 (opencl_assign_operation, opencl_equal_operation)
182 (opencl_notequal_operation, opencl_less_operation)
183 (opencl_gtr_operation, opencl_geq_operation)
184 (opencl_leq_operation): New typedefs.
185
186 2021-03-08 Tom Tromey <tom@tromey.com>
187
188 * opencl-lang.c (opencl_value_cast): No longer static.
189 * c-exp.h (opencl_cast_type_operation): New typedef.
190
191 2021-03-08 Tom Tromey <tom@tromey.com>
192
193 * f-exp.h (eval_op_f_allocated): Declare.
194 (fortran_allocated_operation): New typedef.
195 * f-lang.c (eval_op_f_allocated): No longer static.
196
197 2021-03-08 Tom Tromey <tom@tromey.com>
198
199 * f-lang.c (eval_op_f_associated): New functions.
200 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
201 typedefs.
202
203 2021-03-08 Tom Tromey <tom@tromey.com>
204
205 * f-lang.c (fortran_bound_1arg::evaluate)
206 (fortran_bound_2arg::evaluate): New methods.
207 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
208 New.
209
210 2021-03-08 Tom Tromey <tom@tromey.com>
211
212 * expop.h (class unop_addr_operation) <get_expression>: New
213 method.
214 * f-lang.c (fortran_undetermined::value_subarray)
215 (fortran_undetermined::evaluate): New methods.
216 (fortran_prepare_argument): New overload.
217 * f-exp.h (class fortran_range_operation)
218 (class fortran_undetermined): New classes.
219
220 2021-03-08 Tom Tromey <tom@tromey.com>
221
222 * rust-lang.c (rust_structop::evaluate_funcall): New method.
223 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
224 method.
225
226 2021-03-08 Tom Tromey <tom@tromey.com>
227
228 * expression.h (class operation) <evaluate_funcall>: New methods.
229 * expop.h (class scope_operation) <evaluate_funcall>: New method.
230 (class var_value_operation) <evaluate_funcall>: New method.
231 (class structop_base_operation) <evaluate_funcall>: New method.
232 (class var_msym_value_operation) <evaluate_funcall>: New method.
233 (class structop_member_base): New class.
234 (class structop_member_operation): Derive from
235 structop_member_base.
236 (class structop_mptr_operation): Derive from
237 structop_member_base.
238 (class funcall_operation): New class.
239 * eval.c (operation::evaluate_funcall)
240 (var_value_operation::evaluate_funcall)
241 (scope_operation::evaluate_funcall)
242 (structop_member_base::evaluate_funcall)
243 (structop_base_operation::evaluate_funcall): New methods.
244
245 2021-03-08 Tom Tromey <tom@tromey.com>
246
247 * expop.h (class array_operation): New.
248 * eval.c (array_operation::evaluate_struct_tuple)
249 (array_operation::evaluate): New methods.
250
251 2021-03-08 Tom Tromey <tom@tromey.com>
252
253 * expop.h (class adl_func_operation): New.
254 * eval.c (adl_func_operation::evaluate): New method.
255
256 2021-03-08 Tom Tromey <tom@tromey.com>
257
258 * ada-lang.c (ada_unop_in_range): No longer static.
259 * ada-exp.h (class ada_unop_range_operation): New.
260
261 2021-03-08 Tom Tromey <tom@tromey.com>
262
263 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
264 No longer static.
265 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
266 (ada_atr_size_operation, ada_abs_operation): New typedefs.
267
268 2021-03-08 Tom Tromey <tom@tromey.com>
269
270 * expop.h (class logical_and_operation)
271 (class logical_or_operation): New.
272 * eval.c (logical_and_operation::evaluate)
273 (logical_or_operation::evaluate): New methods.
274 * ax-gdb.c (logical_and_operation::do_generate_ax)
275 (logical_or_operation::do_generate_ax): New methods.
276
277 2021-03-08 Tom Tromey <tom@tromey.com>
278
279 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
280 static.
281 * m2-exp.h: New file.
282
283 2021-03-08 Tom Tromey <tom@tromey.com>
284
285 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
286 * rust-exp.h (class rust_aggregate_operation): New.
287
288 2021-03-08 Tom Tromey <tom@tromey.com>
289
290 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
291 No longer static.
292 * rust-exp.h (class rust_struct_anon): New.
293 (class rust_structop): New.
294
295 2021-03-08 Tom Tromey <tom@tromey.com>
296
297 * rust-lang.c (rust_range): No longer static.
298 * rust-exp.h (class rust_range_operation): New.
299
300 2021-03-08 Tom Tromey <tom@tromey.com>
301
302 * rust-lang.c (rust_subscript): No longer static.
303 * rust-exp.h (class rust_subscript_operation): New.
304
305 2021-03-08 Tom Tromey <tom@tromey.com>
306
307 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
308 parameter.
309 (rust_evaluate_subexp): Update.
310 * rust-exp.h (class rust_unop_ind_operation): New.
311
312 2021-03-08 Tom Tromey <tom@tromey.com>
313
314 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
315 longer static. Add "opcode" parameter.
316 (rust_evaluate_subexp): Update.
317 * rust-exp.h: New file.
318
319 2021-03-08 Tom Tromey <tom@tromey.com>
320
321 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
322 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
323 (eval_op_f_kind): No longer static. Add "opcode" parameter.
324 (evaluate_subexp_f): Update.
325 * f-exp.h: New file.
326
327 2021-03-08 Tom Tromey <tom@tromey.com>
328
329 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
330 * ada-exp.h (class ada_ternop_range_operation): New.
331
332 2021-03-08 Tom Tromey <tom@tromey.com>
333
334 * ada-lang.c (ada_qual_operation::evaluate): New method.
335 * ada-exp.h (class ada_qual_operation): New.
336
337 2021-03-08 Tom Tromey <tom@tromey.com>
338
339 * ada-lang.c (ada_string_operation::evaluate): New method.
340 * ada-exp.h (class ada_string_operation): New.
341
342 2021-03-08 Tom Tromey <tom@tromey.com>
343
344 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
345 * ada-exp.h: New file.
346
347 2021-03-08 Tom Tromey <tom@tromey.com>
348
349 * expop.h (class multi_subscript_operation): New.
350 * eval.c (multi_subscript_operation::evaluate): New method.
351
352 2021-03-08 Tom Tromey <tom@tromey.com>
353
354 * eval.c (objc_msgcall_operation::evaluate): New method.
355 * c-exp.h (class objc_msgcall_operation): New.
356
357 2021-03-08 Tom Tromey <tom@tromey.com>
358
359 * expop.h (class var_value_operation): New.
360 * eval.c (var_value_operation::evaluate)
361 (var_value_operation::evaluate_for_address)
362 (var_value_operation::evaluate_with_coercion)
363 (var_value_operation::evaluate_for_sizeof)
364 (var_value_operation::evaluate_for_cast): New methods.
365 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
366
367 2021-03-08 Tom Tromey <tom@tromey.com>
368
369 * expop.h (cxx_cast_ftype): New typedef.
370 (cxx_cast_operation): New template.
371 (dynamic_cast_operation, reinterpret_cast_operation): New
372 typedefs.
373
374 2021-03-08 Tom Tromey <tom@tromey.com>
375
376 * expop.h (class unop_cast_type_operation): New.
377 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
378 method.
379
380 2021-03-08 Tom Tromey <tom@tromey.com>
381
382 * expop.h (class unop_cast_operation): New.
383 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
384
385 2021-03-08 Tom Tromey <tom@tromey.com>
386
387 * expop.h (class assign_modify_operation): New.
388 * eval.c (eval_binop_assign_modify): No longer static.
389 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
390
391 2021-03-08 Tom Tromey <tom@tromey.com>
392
393 * expop.h (class assign_operation): New.
394 * ax-gdb.c (assign_operation::do_generate_ax): New method.
395
396 2021-03-08 Tom Tromey <tom@tromey.com>
397
398 * expop.h (class type_instance_operation): New.
399 * eval.c (type_instance_operation::evaluate): New method.
400
401 2021-03-08 Tom Tromey <tom@tromey.com>
402
403 * expop.h (class op_this_operation): New.
404 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
405
406 2021-03-08 Tom Tromey <tom@tromey.com>
407
408 * expop.h (class unop_memval_operation)
409 (class unop_memval_type_operation): New.
410 * eval.c (eval_op_memval): No longer static.
411 (unop_memval_operation::evaluate_for_address)
412 (unop_memval_type_operation::evaluate_for_address)
413 (unop_memval_operation::evaluate_for_sizeof)
414 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
415 * ax-gdb.c (unop_memval_operation::do_generate_ax)
416 (unop_memval_type_operation::do_generate_ax): New methods.
417
418 2021-03-08 Tom Tromey <tom@tromey.com>
419
420 * expop.h (class unop_alignof_operation): New.
421 * eval.c (eval_op_alignof): No longer static.
422
423 2021-03-08 Tom Tromey <tom@tromey.com>
424
425 * expop.h (class unop_sizeof_operation): New.
426 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
427
428 2021-03-08 Tom Tromey <tom@tromey.com>
429
430 * expop.h (class unop_addr_operation): New.
431 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
432
433 2021-03-08 Tom Tromey <tom@tromey.com>
434
435 * expop.h (class typeid_operation): New.
436
437 2021-03-08 Tom Tromey <tom@tromey.com>
438
439 * expop.h (class decltype_operation): New.
440
441 2021-03-08 Tom Tromey <tom@tromey.com>
442
443 * expop.h (class typeof_operation): New.
444
445 2021-03-08 Tom Tromey <tom@tromey.com>
446
447 * expop.h (class type_operation): New.
448 * eval.c (eval_op_type): No longer static.
449
450 2021-03-08 Tom Tromey <tom@tromey.com>
451
452 * expop.h (class unop_ind_base_operation)
453 (class unop_ind_operation): New.
454 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
455 (unop_ind_base_operation::evaluate_for_address)
456 (unop_ind_base_operation::evaluate_for_sizeof): New method.
457 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
458
459 2021-03-08 Tom Tromey <tom@tromey.com>
460
461 * expop.h (unop_incr_operation): New template.
462 (preinc_operation, predec_operation, postinc_operation)
463 (postdec_operation): New typedefs.
464 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
465 (eval_op_postdec): No longer static.
466
467 2021-03-08 Tom Tromey <tom@tromey.com>
468
469 * expop.h (unary_ftype): New typedef.
470 (unop_operation, usual_ax_binop_operation): New templates.
471 (unary_plus_operation, unary_neg_operation)
472 (unary_complement_operation, unary_logical_not_operation): New
473 typedefs.
474 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
475 (eval_op_lognot): No longer static.
476 * ax-gdb.c (gen_expr_unop): New function.
477
478 2021-03-08 Tom Tromey <tom@tromey.com>
479
480 * ax-gdb.c (comma_operation::do_generate_ax): New method.
481
482 2021-03-08 Tom Tromey <tom@tromey.com>
483
484 * expop.h (class repeat_operation): New.
485 * eval.c (eval_op_repeat): No longer static. Remove "op"
486 parameter.
487 (evaluate_subexp_standard): Update.
488 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
489
490 2021-03-08 Tom Tromey <tom@tromey.com>
491
492 * expop.h (class comparison_operation): New.
493 (equal_operation, notequal_operation, less_operation)
494 (gtr_operation, geq_operation, leq_operation): New typedefs.
495 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
496 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
497
498 2021-03-08 Tom Tromey <tom@tromey.com>
499
500 * expop.h (class subscript_operation): New.
501 * eval.c (eval_op_subscript): No longer static.
502
503 2021-03-08 Tom Tromey <tom@tromey.com>
504
505 * expop.h (class binop_operation, class usual_ax_binop_operation):
506 New.
507 (exp_operation, intdiv_operation, mod_operation, mul_operation)
508 (div_operation, rem_operation, lsh_operation, rsh_operation)
509 (bitwise_and_operation, bitwise_ior_operation)
510 (bitwise_xor_operation): New typedefs.
511 * eval.c (eval_op_binary): No longer static.
512
513 2021-03-08 Tom Tromey <tom@tromey.com>
514
515 * expop.h (class sub_operation): New.
516 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
517 (evaluate_subexp_standard): Update.
518
519 2021-03-08 Tom Tromey <tom@tromey.com>
520
521 * expop.h (class add_operation): New.
522 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
523 (evaluate_subexp_standard): Update.
524
525 2021-03-08 Tom Tromey <tom@tromey.com>
526
527 * expop.h (class concat_operation): New.
528 * eval.c (eval_op_concat): No longer static. Remove "op"
529 parameter.
530 (evaluate_subexp_standard): Update.
531
532 2021-03-08 Tom Tromey <tom@tromey.com>
533
534 * expop.h (class structop_member_operation)
535 (class structop_mptr_operation): New.
536 * eval.c (eval_op_member): No longer static.
537
538 2021-03-08 Tom Tromey <tom@tromey.com>
539
540 * expop.h (class structop_ptr_operation): New.
541 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
542 parameter.
543
544 2021-03-08 Tom Tromey <tom@tromey.com>
545
546 * expop.h (class structop_base_operation)
547 (class structop_operation): New.
548 * eval.c (eval_op_structop_struct): No longer static.
549
550 2021-03-08 Tom Tromey <tom@tromey.com>
551
552 * expop.h (class complex_operation): New.
553
554 2021-03-08 Tom Tromey <tom@tromey.com>
555
556 * eval.c (eval_op_objc_selector): No longer static.
557 * c-exp.h (class objc_selector_operation): New.
558
559 2021-03-08 Tom Tromey <tom@tromey.com>
560
561 * eval.c: Include c-exp.h.
562 * c-exp.h (class objc_nsstring_operation): New.
563
564 2021-03-08 Tom Tromey <tom@tromey.com>
565
566 * c-lang.c (c_string_operation::evaluate): New method.
567 * c-exp.h: New file.
568
569 2021-03-08 Tom Tromey <tom@tromey.com>
570
571 * expop.h (class ternop_cond_operation): New.
572 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
573
574 2021-03-08 Tom Tromey <tom@tromey.com>
575
576 * expop.h (class ternop_slice_operation): New.
577 * eval.c (eval_op_ternop): No longer static.
578
579 2021-03-08 Tom Tromey <tom@tromey.com>
580
581 * expop.h (class string_operation): New.
582 * eval.c (eval_op_string): No longer static.
583
584 2021-03-08 Tom Tromey <tom@tromey.com>
585
586 * expop.h (class internalvar_operation): New.
587 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
588
589 2021-03-08 Tom Tromey <tom@tromey.com>
590
591 * expop.h (class bool_operation): New.
592
593 2021-03-08 Tom Tromey <tom@tromey.com>
594
595 * expop.h (class register_operation): New.
596 * eval.c (eval_op_register): No longer static.
597 * ax-gdb.c (register_operation::do_generate_ax): New method.
598
599 2021-03-08 Tom Tromey <tom@tromey.com>
600
601 * expop.h (class last_operation): New.
602
603 2021-03-08 Tom Tromey <tom@tromey.com>
604
605 * expop.h (class func_static_var_operation): New.
606 * eval.c (eval_op_func_static_var): No longer static.
607
608 2021-03-08 Tom Tromey <tom@tromey.com>
609
610 * expop.h (class var_entry_value_operation): New.
611 * eval.c (eval_op_var_entry_value): No longer static.
612
613 2021-03-08 Tom Tromey <tom@tromey.com>
614
615 * expression.h (class operation) <set_outermost>: New method.
616 * expop.h (class var_msym_value_operation): New.
617 * eval.c (eval_op_var_msym_value): No longer static.
618 (var_msym_value_operation::evaluate_for_address)
619 (var_msym_value_operation::evaluate_for_sizeof)
620 (var_msym_value_operation::evaluate_for_cast): New methods.
621 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
622 method.
623
624 2021-03-08 Tom Tromey <tom@tromey.com>
625
626 * expop.h (class long_const_operation): New.
627 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
628
629 2021-03-08 Tom Tromey <tom@tromey.com>
630
631 * expop.h (class scope_operation): New.
632 * eval.c (eval_op_scope): No longer static.
633 (scope_operation::evaluate_for_address): New method.
634 * ax-gdb.c (scope_operation::do_generate_ax): New method.
635
636 2021-03-08 Tom Tromey <tom@tromey.com>
637
638 * expprint.c (float_const_operation::dump): New method.
639 * expop.h (float_data): New typedef.
640 (class float_const_operation): New.
641
642 2021-03-08 Tom Tromey <tom@tromey.com>
643
644 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
645 * ax-gdb.c (gen_expr_binop): New function.
646 (gen_expr_structop): Likewise.
647
648 2021-03-08 Tom Tromey <tom@tromey.com>
649
650 * expprint.c (expr::dump_for_expression): New functions.
651 * expop.h (dump_for_expression): New overloads.
652 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
653 Update.
654
655 2021-03-08 Tom Tromey <tom@tromey.com>
656
657 * expression.h (expr::operation): New class.
658 (expr::make_operation): New function.
659 (expr::operation_up): New typedef.
660 * expop.h: New file.
661 * eval.c (operation::evaluate_for_cast)
662 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
663 New methods.
664 * ax-gdb.c (operation::generate_ax): New method.
665
666 2021-03-08 Tom Tromey <tom@tromey.com>
667
668 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
669 (gen_expr_binop_rest): New overload.
670
671 2021-03-08 Tom Tromey <tom@tromey.com>
672
673 * eval.c (eval_multi_subscript): New function.
674 (evaluate_subexp_standard): Use it.
675
676 2021-03-08 Tom Tromey <tom@tromey.com>
677
678 * ada-lang.c (ada_binop_exp): New function.
679 (ada_evaluate_subexp): Use it.
680
681 2021-03-08 Tom Tromey <tom@tromey.com>
682
683 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
684 parameters.
685 (ada_evaluate_subexp): Use it.
686
687 2021-03-08 Tom Tromey <tom@tromey.com>
688
689 * ada-lang.c (ada_binop_minmax): New function.
690 (ada_evaluate_subexp): Use it.
691
692 2021-03-08 Tom Tromey <tom@tromey.com>
693
694 * ada-lang.c (ada_unop_atr): New function.
695 (ada_evaluate_subexp): Use it.
696
697 2021-03-08 Tom Tromey <tom@tromey.com>
698
699 * ada-lang.c (ada_binop_in_bounds): New function.
700 (ada_evaluate_subexp): Use it.
701
702 2021-03-08 Tom Tromey <tom@tromey.com>
703
704 * ada-lang.c (ada_ternop_slice): New function.
705 (ada_evaluate_subexp): Use it.
706
707 2021-03-08 Tom Tromey <tom@tromey.com>
708
709 * ada-lang.c (ada_equal_binop): New function.
710 (ada_evaluate_subexp): Use it.
711
712 2021-03-08 Tom Tromey <tom@tromey.com>
713
714 * ada-lang.c (ada_mult_binop): New function.
715 (ada_evaluate_subexp): Use it.
716
717 2021-03-08 Tom Tromey <tom@tromey.com>
718
719 * ada-lang.c (ada_abs): New function.
720 (ada_evaluate_subexp): Use it.
721
722 2021-03-08 Tom Tromey <tom@tromey.com>
723
724 * ada-lang.c (ada_atr_size): New function.
725 (ada_evaluate_subexp): Use it.
726
727 2021-03-08 Tom Tromey <tom@tromey.com>
728
729 * ada-lang.c (ada_atr_tag): New function.
730 (ada_evaluate_subexp): Use it.
731
732 2021-03-08 Tom Tromey <tom@tromey.com>
733
734 * ada-lang.c (ada_unop_in_range): New function.
735 (ada_evaluate_subexp): Use it.
736
737 2021-03-08 Tom Tromey <tom@tromey.com>
738
739 * ada-lang.c (ada_unop_neg): New function.
740 (ada_evaluate_subexp): Use it.
741
742 2021-03-08 Tom Tromey <tom@tromey.com>
743
744 * ada-lang.c (eval_ternop_in_range): New function.
745 (ada_evaluate_subexp): Use it.
746
747 2021-03-08 Tom Tromey <tom@tromey.com>
748
749 * opencl-lang.c (eval_opencl_assign): New function.
750 (evaluate_subexp_opencl): Use it.
751
752 2021-03-08 Tom Tromey <tom@tromey.com>
753
754 * eval.c (eval_op_objc_msgcall): New function.
755 (evaluate_subexp_standard): Use it.
756
757 2021-03-08 Tom Tromey <tom@tromey.com>
758
759 * eval.c (eval_binop_assign_modify): New function.
760 (evaluate_subexp_standard): Use it.
761
762 2021-03-08 Tom Tromey <tom@tromey.com>
763
764 * m2-lang.c (eval_op_m2_subscript): New function.
765 (evaluate_subexp_modula2): Use it.
766
767 2021-03-08 Tom Tromey <tom@tromey.com>
768
769 * m2-lang.c (eval_op_m2_high): New function.
770 (evaluate_subexp_modula2): Use it.
771
772 2021-03-08 Tom Tromey <tom@tromey.com>
773
774 * eval.c (evaluate_subexp_for_address_base): New function.
775 (evaluate_subexp_for_address): Use it.
776 (evaluate_subexp_for_sizeof_base): New function.
777 (evaluate_subexp_for_sizeof): Use it.
778
779 2021-03-08 Tom Tromey <tom@tromey.com>
780
781 * rust-lang.c (eval_op_rust_structop): New function.
782 (rust_evaluate_subexp): Use it.
783
784 2021-03-08 Tom Tromey <tom@tromey.com>
785
786 * rust-lang.c (eval_op_rust_struct_anon): New function.
787 (rust_evaluate_subexp): Use it.
788
789 2021-03-08 Tom Tromey <tom@tromey.com>
790
791 * rust-lang.c (eval_op_rust_array): New function.
792 (rust_evaluate_subexp): Use it.
793
794 2021-03-08 Tom Tromey <tom@tromey.com>
795
796 * rust-lang.c (eval_op_rust_complement): New function.
797 (rust_evaluate_subexp): Use it.
798
799 2021-03-08 Tom Tromey <tom@tromey.com>
800
801 * rust-lang.c (eval_op_rust_ind): New function.
802 (rust_evaluate_subexp): Use it.
803
804 2021-03-08 Tom Tromey <tom@tromey.com>
805
806 * rust-lang.c (rust_subscript): Change parameters.
807 (rust_evaluate_subexp): Update.
808
809 2021-03-08 Tom Tromey <tom@tromey.com>
810
811 * rust-lang.c (rust_range): Change parameters.
812 (rust_evaluate_subexp): Update.
813
814 2021-03-08 Tom Tromey <tom@tromey.com>
815
816 * f-lang.c (eval_op_f_allocated): New function.
817 (evaluate_subexp_f): Use it.
818
819 2021-03-08 Tom Tromey <tom@tromey.com>
820
821 * f-lang.c (fortran_require_array): New function.
822 (evaluate_subexp_f): Use it.
823
824 2021-03-08 Tom Tromey <tom@tromey.com>
825
826 * f-lang.c (eval_op_f_kind): New function.
827 (evaluate_subexp_f): Use it.
828
829 2021-03-08 Tom Tromey <tom@tromey.com>
830
831 * f-lang.c (eval_op_f_cmplx): New function.
832 (evaluate_subexp_f): Use it.
833
834 2021-03-08 Tom Tromey <tom@tromey.com>
835
836 * f-lang.c (eval_op_f_modulo): New function.
837 (evaluate_subexp_f): Use it.
838
839 2021-03-08 Tom Tromey <tom@tromey.com>
840
841 * f-lang.c (eval_op_f_floor): New function.
842 (evaluate_subexp_f): Use it.
843
844 2021-03-08 Tom Tromey <tom@tromey.com>
845
846 * f-lang.c (eval_op_f_ceil): New function.
847 (evaluate_subexp_f): Use it.
848
849 2021-03-08 Tom Tromey <tom@tromey.com>
850
851 * f-lang.c (eval_op_f_mod): New function.
852 (evaluate_subexp_f): Use it.
853
854 2021-03-08 Tom Tromey <tom@tromey.com>
855
856 * f-lang.c (eval_op_f_abs): New function.
857 (evaluate_subexp_f): Use it.
858
859 2021-03-08 Tom Tromey <tom@tromey.com>
860
861 * eval.c (eval_op_type): New function.
862 (evaluate_subexp_standard): Use it.
863
864 2021-03-08 Tom Tromey <tom@tromey.com>
865
866 * eval.c (eval_op_postdec): New function.
867 (evaluate_subexp_standard): Use it.
868
869 2021-03-08 Tom Tromey <tom@tromey.com>
870
871 * eval.c (eval_op_postinc): New function.
872 (evaluate_subexp_standard): Use it.
873
874 2021-03-08 Tom Tromey <tom@tromey.com>
875
876 * eval.c (eval_op_predec): New file.
877 (evaluate_subexp_standard): Use it.
878
879 2021-03-08 Tom Tromey <tom@tromey.com>
880
881 * eval.c (eval_op_preinc): New function.
882 (evaluate_subexp_standard): Use it.
883
884 2021-03-08 Tom Tromey <tom@tromey.com>
885
886 * eval.c (eval_op_memval): New function.
887 (evaluate_subexp_standard): Use it.
888
889 2021-03-08 Tom Tromey <tom@tromey.com>
890
891 * eval.c (eval_op_alignof): New function.
892 (evaluate_subexp_standard): Use it.
893
894 2021-03-08 Tom Tromey <tom@tromey.com>
895
896 * eval.c (eval_op_ind): New function.
897 (evaluate_subexp_standard): Use it.
898
899 2021-03-08 Tom Tromey <tom@tromey.com>
900
901 * eval.c (eval_op_lognot): New function.
902 (evaluate_subexp_standard): Use it.
903
904 2021-03-08 Tom Tromey <tom@tromey.com>
905
906 * eval.c (eval_op_complement): New function.
907 (evaluate_subexp_standard): Use it.
908
909 2021-03-08 Tom Tromey <tom@tromey.com>
910
911 * eval.c (eval_op_neg): New function.
912 (evaluate_subexp_standard): Use it.
913
914 2021-03-08 Tom Tromey <tom@tromey.com>
915
916 * eval.c (eval_op_plus): New function.
917 (evaluate_subexp_standard): Use it.
918
919 2021-03-08 Tom Tromey <tom@tromey.com>
920
921 * eval.c (eval_op_repeat): New function.
922 (evaluate_subexp_standard): Use it.
923
924 2021-03-08 Tom Tromey <tom@tromey.com>
925
926 * eval.c (eval_op_leq): New function.
927 (evaluate_subexp_standard): Use it.
928
929 2021-03-08 Tom Tromey <tom@tromey.com>
930
931 * eval.c (eval_op_geq): New function.
932 (evaluate_subexp_standard): Use it.
933
934 2021-03-08 Tom Tromey <tom@tromey.com>
935
936 * eval.c (eval_op_gtr): New function.
937 (evaluate_subexp_standard): Use it.
938
939 2021-03-08 Tom Tromey <tom@tromey.com>
940
941 * eval.c (eval_op_less): New function.
942 (evaluate_subexp_standard): Use it.
943
944 2021-03-08 Tom Tromey <tom@tromey.com>
945
946 * eval.c (eval_op_notequal): New function.
947 (evaluate_subexp_standard): Use it.
948
949 2021-03-08 Tom Tromey <tom@tromey.com>
950
951 * eval.c (eval_op_equal): New function.
952 (evaluate_subexp_standard): Use it.
953
954 2021-03-08 Tom Tromey <tom@tromey.com>
955
956 * eval.c (eval_op_subscript): New function.
957 (evaluate_subexp_standard): Use it.
958
959 2021-03-08 Tom Tromey <tom@tromey.com>
960
961 * eval.c (eval_op_binary): New function.
962 (evaluate_subexp_standard): Use it.
963
964 2021-03-08 Tom Tromey <tom@tromey.com>
965
966 * eval.c (eval_op_sub): New function.
967 (evaluate_subexp_standard): Use it.
968
969 2021-03-08 Tom Tromey <tom@tromey.com>
970
971 * eval.c (eval_op_add): New function.
972 (evaluate_subexp_standard): Use it.
973
974 2021-03-08 Tom Tromey <tom@tromey.com>
975
976 * eval.c (eval_op_member): New function.
977 (evaluate_subexp_standard): Use it.
978
979 2021-03-08 Tom Tromey <tom@tromey.com>
980
981 * eval.c (eval_op_structop_ptr): New function.
982 (evaluate_subexp_standard): Use it.
983
984 2021-03-08 Tom Tromey <tom@tromey.com>
985
986 * eval.c (eval_op_structop_struct): New function.
987 (evaluate_subexp_standard): Use it.
988
989 2021-03-08 Tom Tromey <tom@tromey.com>
990
991 * eval.c (eval_op_ternop): New function.
992 (evaluate_subexp_standard): Use it.
993
994 2021-03-08 Tom Tromey <tom@tromey.com>
995
996 * eval.c (eval_op_concat): New function.
997 (evaluate_subexp_standard): Use it.
998
999 2021-03-08 Tom Tromey <tom@tromey.com>
1000
1001 * eval.c (eval_op_objc_selector): New function.
1002 (evaluate_subexp_standard): Use it.
1003
1004 2021-03-08 Tom Tromey <tom@tromey.com>
1005
1006 * eval.c (eval_op_string): New function.
1007 (evaluate_subexp_standard): Use it.
1008
1009 2021-03-08 Tom Tromey <tom@tromey.com>
1010
1011 * eval.c (eval_op_register): New function.
1012 (evaluate_subexp_standard): Use it.
1013
1014 2021-03-08 Tom Tromey <tom@tromey.com>
1015
1016 * eval.c (eval_op_func_static_var): New function.
1017 (evaluate_subexp_standard): Use it.
1018
1019 2021-03-08 Tom Tromey <tom@tromey.com>
1020
1021 * eval.c (eval_op_var_msym_value): New function.
1022 (evaluate_subexp_standard): Use it.
1023
1024 2021-03-08 Tom Tromey <tom@tromey.com>
1025
1026 * eval.c (eval_op_var_entry_value): New function.
1027 (evaluate_subexp_standard): Use it.
1028
1029 2021-03-08 Tom Tromey <tom@tromey.com>
1030
1031 * eval.c (eval_op_scope): New function.
1032 (evaluate_subexp_standard): Use it.
1033
1034 2021-03-06 Chernov Sergey <klen_s@mail.ru>
1035
1036 PR gdb/27528:
1037 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1038
1039 2021-03-06 Tom Tromey <tom@tromey.com>
1040
1041 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1042 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1043 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1044 (locate_dwz_sections, dwz_search_other_debugdirs)
1045 (dwarf2_get_dwz_file): Move to dwz.c.
1046 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1047 read.h.
1048 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1049 (dwarf2_get_dwz_file): Move from read.c.
1050
1051 2021-03-06 Tom Tromey <tom@tromey.com>
1052
1053 * debuginfod-support.h: Include scoped_fd.h.
1054
1055 2021-03-06 Tom Tromey <tom@tromey.com>
1056
1057 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1058 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1059 (get_abbrev_section_for_cu, read_attribute_value)
1060 (get_debug_line_section): Update.
1061 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1062
1063 2021-03-06 Tom Tromey <tom@tromey.com>
1064
1065 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1066 method.
1067 * dwarf2/read.c (section_is_p): Remove.
1068 (dwarf2_per_bfd::locate_sections)
1069 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1070 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1071 (dwarf2_locate_common_dwp_sections)
1072 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1073 Update.
1074
1075 2021-03-06 Tom Tromey <tom@tromey.com>
1076
1077 * xcoffread.c: Include sect-names.h.
1078 * symfile.h (struct dwarf2_section_names, struct
1079 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1080 * dwarf2/sect-names.h: New file, from symfile.h.
1081 * dwarf2/read.c: Include sect-names.h.
1082
1083 2021-03-06 Tom Tromey <tom@tromey.com>
1084
1085 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1086 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1087 (abbrev_table::read): Update.
1088 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1089 (struct abbrev_info): Reformat.
1090 <attrs>: Now an array.
1091 (struct abbrev_table) <alloc_abbrev>: Remove.
1092
1093 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1094
1095 * ctfread.c (ctf_psymtab_add_enums): New function.
1096 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1097
1098 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1099
1100 * ctfread.c (read_func_kind_type): Set up function arguments.
1101
1102 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1103 Andrew Burgess <andrew.burgess@embecosm.com>
1104
1105 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1106 includes.
1107 (riscv_csrset): New static global.
1108 (riscv_update_csrmap): New function.
1109 (riscv_iterate_over_regset_sections): Process CSRs.
1110
1111 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1112
1113 * riscv-tdep.c (riscv_feature_name_csr): Define.
1114 (riscv_feature_name_cpu): Define.
1115 (riscv_feature_name_fpu): Define.
1116 (riscv_feature_name_virtual): Define.
1117 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1118 (riscv_freg_feature): Use riscv_feature_name_fpu.
1119 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1120 (riscv_csr_feature): Use riscv_feature_name_csr.
1121 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1122
1123 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1124 Craig Blackmore <craig.blackmore@embecosm.com>
1125
1126 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1127 (ALLDEPFILES): Add riscv-none-tdep.c.
1128 * configure: Regenerate.
1129 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1130 support.
1131 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1132 * elf-none-tdep.c: New file.
1133 * elf-none-tdep.h: New file.
1134 * riscv-none-tdep.c: New file.
1135
1136 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1137 Andrew Burgess <andrew.burgess@embecosm.com>
1138
1139 * corelow.c: Add 'xml-tdesc.h' include.
1140 (core_target::read_description): Load the target description from
1141 the core file when possible.
1142 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1143 note.
1144 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1145 (gcore_elf_make_tdesc_note): New function.
1146 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1147 * linux-tdep.c (linux_make_corefile_notes): Add target description
1148 note.
1149
1150 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1151
1152 * Makefile.in (SFILES): Add gcore-elf.c.
1153 (HFILES_NO_SRCDIR): Add gcore-elf.h
1154 * configure: Regenerate.
1155 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1156 support.
1157 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1158 (struct fbsd_collect_regset_section_cb_data): Delete.
1159 (fbsd_collect_regset_section_cb): Delete.
1160 (fbsd_collect_thread_registers): Delete.
1161 (struct fbsd_corefile_thread_data): Delete.
1162 (fbsd_corefile_thread): Delete.
1163 (fbsd_make_corefile_notes): Call
1164 gcore_elf_build_thread_register_notes instead of the now deleted
1165 FreeBSD code.
1166 * gcore-elf.c: New file, the content was moved here from
1167 linux-tdep.c, functions were renamed and given minor cleanup.
1168 * gcore-elf.h: New file.
1169 * gcore.c (gcore_find_signalled_thread): Moved here from
1170 linux-tdep.c and given a new name. Minor cleanups.
1171 * gcore.h (gcore_find_signalled_thread): Declare.
1172 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1173 (struct linux_collect_regset_section_cb_data): Delete.
1174 (linux_collect_regset_section_cb): Delete.
1175 (linux_collect_thread_registers): Delete.
1176 (linux_corefile_thread): Call
1177 gcore_elf_build_thread_register_notes.
1178 (find_signalled_thread): Delete.
1179 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1180
1181 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1182
1183 PR gdb/27147
1184 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1185 process_stratum_target parameter,
1186 sparc_store_inferior_registers): update callers.
1187 * sparc-nat.c (sparc_fetch_inferior_registers,
1188 sparc_store_inferior_registers): Add process_stratum_target
1189 parameter. Switch current thread before calling
1190 sparc_supply_gregset / sparc_collect_rwindow.
1191 (sparc_store_inferior_registers): Likewise.
1192 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1193 (sparc32obsd_collect_uthread): Likewise.
1194 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1195 Add assertion.
1196 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1197 sparc64obsd_supply_uthread): Add assertion.
1198
1199 2021-03-04 Tom Tromey <tromey@adacore.com>
1200
1201 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1202 (aux_add_nonlocal_symbols): Update.
1203 (ada_add_block_symbols): Change "found_sym" to bool.
1204
1205 2021-03-03 Tom Tromey <tromey@adacore.com>
1206
1207 * ada-lang.c (ada_resolve_function): Update comment.
1208 (is_nonfunction, add_symbols_from_enclosing_procs)
1209 (remove_extra_symbols): Likewise.
1210 (struct match_data): Add constructor, initializers.
1211 (add_nonlocal_symbols): Remove memset.
1212 (aux_add_nonlocal_symbols): Update comment.
1213 (ada_add_block_renamings, add_nonlocal_symbols)
1214 (ada_add_all_symbols): Likewise.
1215 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1216
1217 2021-03-02 Tom Tromey <tromey@adacore.com>
1218
1219 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1220 (cast_to_gnat_encoded_fixed_point_type): Remove.
1221 (ada_value_cast, ada_evaluate_subexp): Update.
1222 (gnat_encoded_fixed_point_type_info)
1223 (ada_is_gnat_encoded_fixed_point_type)
1224 (gnat_encoded_fixed_point_delta)
1225 (gnat_encoded_fixed_point_scaling_factor): Remove.
1226 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1227 (gnat_encoded_fixed_point_delta)
1228 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1229 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1230 (ada_print_type): Update.
1231 * ada-valprint.c (ada_value_print_num): Update.
1232 * dwarf2/read.c (ada_get_gnat_encoded_number)
1233 (ada_get_gnat_encoded_ratio): New functions.
1234 (finish_fixed_point_type): Use them. Add parameters.
1235 (GNAT_FIXED_POINT_SUFFIX): New define.
1236 (gnat_encoded_fixed_point_type_info): New function.
1237 (read_base_type): Handle gnat encodings.
1238
1239 2021-03-02 Tom Tromey <tromey@adacore.com>
1240
1241 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1242 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1243 std::string.
1244 (GROW_VECT): Remove.
1245 (grow_vect): Remove.
1246
1247 2021-03-02 Tom Tromey <tromey@adacore.com>
1248
1249 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1250 * ada-lang.c (resolve_subexp): Update.
1251 (ada_resolve_function): Accept a vector.
1252 (is_nonfunction, add_defn_to_vec)
1253 (add_symbols_from_enclosing_procs): Likewise.
1254 (num_defns_collected, defns_collected): Remove.
1255 (remove_extra_symbols): Return a vector.
1256 (remove_irrelevant_renamings): Return void.
1257 (ada_add_local_symbols): Accept a vector.
1258 (struct match_data) <obstackp>: Remove.
1259 <resultp>: New member.
1260 (aux_add_nonlocal_symbols): Update.
1261 (ada_add_block_renamings, add_nonlocal_symbols)
1262 (ada_add_all_symbols): Accept a vector.
1263 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1264 vector.
1265 (ada_lookup_symbol): Update.
1266 (ada_add_block_symbols): Accept a vector.
1267 (get_var_value, iterate_over_symbols): Update.
1268 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1269 Update.
1270
1271 2021-03-02 Tom Tromey <tromey@adacore.com>
1272
1273 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1274
1275 2021-03-02 Tom Tromey <tromey@adacore.com>
1276
1277 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1278 auto_obstack.
1279 <root>: Initialize.
1280 (ada_pspace_data): Remove destructor.
1281 <sym_cache>: Now a unique_ptr.
1282 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1283 (ada_get_symbol_cache): Use 'new'.
1284 (ada_clear_symbol_cache): Rewrite.
1285
1286 2021-03-02 Tom Tromey <tromey@adacore.com>
1287
1288 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1289 is null.
1290
1291 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
1292
1293 PR gdb/27393
1294 * source.c (add_path): Skip empty dirnames.
1295
1296 2021-02-25 Kevin Buettner <kevinb@redhat.com>
1297
1298 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1299 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1300
1301 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1302
1303 PR gdb/26861
1304 * target.c (target_mourn_inferior): Only compare pids in
1305 target_mourn_inferior.
1306
1307 2021-02-25 Jan Matyas <jmatyas@codasip.com>
1308
1309 PR gdb/26819
1310 * remote.c (remote_target::start_remote): Ensure the single
1311 thread, automatically added for remote targets without the
1312 concept of threading, is initially in set to the "resumed"
1313 state.
1314 * remote.c (remote_target::add_current_inferior_and_thread):
1315 Add return value - return the main thread.
1316
1317 2021-02-25 Jan Vrany <jan.vrany@labware.com>
1318
1319 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1320 (mi_tsv_created): Likewise.
1321 (mi_tsv_deleted): Likewise.
1322
1323 2021-02-25 Tom de Vries <tdevries@suse.de>
1324
1325 PR symtab/27354
1326 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1327 section_kind for &dwo_file->sections.info.
1328
1329 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1330
1331 PR fortran/26155
1332 * f-lang.c (fortran_argument_convert): Delete declaration.
1333 (fortran_prepare_argument): New function.
1334 (evaluate_subexp_f): Move logic to new function
1335 fortran_prepare_argument.
1336
1337 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1338
1339 * f-exp.y (f77_keywords): Add 'associated'.
1340 * f-lang.c (fortran_associated): New function.
1341 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1342 (operator_length_f): Likewise.
1343 (print_unop_or_binop_subexp_f): New function.
1344 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1345 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1346 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1347 (operator_check_f): Likewise.
1348 * std-operator.def: Add FORTRAN_ASSOCIATED.
1349
1350 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1351
1352 * f-exp.y (fortran_operators): Add ".xor.".
1353
1354 2021-02-24 Tom de Vries <tdevries@suse.de>
1355
1356 PR symtab/27336
1357 * dwarf2/attribute.c (attribute::form_is_signed): New function
1358 factored out of ...
1359 * dwarf2/attribute.h (attribute::as_signed): ... here.
1360 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1361 (attribute::form_is_signed): Declare.
1362 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1363 for DW_AT_decl_file.
1364
1365 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1366
1367 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1368 order for <sys/ptrace.h> and <asm/ptrace.h>.
1369
1370 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1371
1372 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1373 <sys/ptrace.h>.
1374
1375 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1376
1377 * exec.c (set_section_command): Move variable declarations into
1378 the function body, and use std::string instead of a fixed size
1379 buffer.
1380
1381 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1382
1383 * exec.c (exec_target::get_section_table): Delete member function.
1384 (section_table_read_available_memory): Use current_top_target, not
1385 just the exec_ops target.
1386 * target-delegates.c: Regenerate.
1387 * target.c (default_get_section_table): New function.
1388 * target.h (target_ops::get_section_table): Change default
1389 behaviour to call default_get_section_table.
1390 (default_get_section_table): Declare.
1391
1392 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1393
1394 * exec.c (exec_target::close): Call new clear_target_sections
1395 function.
1396 (program_space::add_target_sections): Update name of member
1397 variable.
1398 (program_space::add_target_sections): Update name of member
1399 variable.
1400 (program_space::remove_target_sections): Likewise.
1401 (exec_one_fork): Use new target_sections member function.
1402 (exec_target::get_section_table): Likewise.
1403 (exec_target::files_info): Likewise.
1404 (set_section_command): Likewise.
1405 (exec_set_section_address): Likewise.
1406 (exec_target::has_memory): Use new target_sections member
1407 function.
1408 * progspace.h (program_space::clear_target_sections): New member
1409 function.
1410 (program_space::target_sections): Rename member variable to
1411 m_target_sections, replace with a new member function.
1412 (program_space::m_target_sections): New member variable.
1413 * solib-dsbt.c (scan_dyntag): Use new member function.
1414 * solib-svr4.c (scan_dyntag): Likewise.
1415
1416 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1417
1418 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1419 return type const.
1420 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1421 (section_table_read_available_memory): Make local const.
1422 (exec_target::xfer_partial): Make local const.
1423 (print_section_info): Make parameter const.
1424 * gdb/exec.h (print_section_info): Likewise.
1425 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1426 const.
1427 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1428 Likewise.
1429 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1430 Likewise.
1431 * gdb/s390-tdep.c (s390_load): Likewise.
1432 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1433 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1434 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1435 Rename to...
1436 (target_debug_print_const_target_section_table_p): ...this.
1437 * gdb/target-delegates.c: Regenerate.
1438 * gdb/target.c (target_get_section_table): Make return type const.
1439 (target_section_by_addr): Likewise. Also make some locals const.
1440 (memory_xfer_partial_1): Make some locals const.
1441 * gdb/target.h (struct target_ops) <get_section_table>: Make
1442 return type const.
1443 (target_section_by_addr): Likewise.
1444 (target_get_section_table): Likewise.
1445
1446 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1447
1448 * NEWS: Mention new 'maint info target-sections' command.
1449 * maint.c (maintenance_info_target_sections): New function.
1450 (_initialize_maint_cmds): Register new command.
1451
1452 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1453
1454 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1455 (riscv_features_from_bfd): ...this. Change parameter type to
1456 'bfd*', and update as required.
1457 (riscv_find_default_target_description): Update call to
1458 riscv_features_from_bfd. Select a default xlen based on
1459 info.bfd_arch_info.
1460 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1461
1462 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1463
1464 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1465 dynamic types in UNOP_IND.
1466
1467 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1468
1469 PR gdb/26828
1470 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1471 Instantiate queue.
1472 (~dwarf2_queue_guard): Clear queue.
1473 (queue_comp_unit): Assert that queue is
1474 instantiated.
1475 (process_queue): Adjust.
1476 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1477
1478 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1479
1480 PR gdb/26828
1481 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1482 to decide whether or not to enqueue it for expansion.
1483 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1484 after calling maybe_queue_comp_unit.
1485
1486 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1487
1488 * linux-nat.c (linux_nat_filter_event): Return void.
1489
1490 2021-02-22 Tom Tromey <tromey@adacore.com>
1491
1492 * solib-svr4.c (enable_break): Update.
1493 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1494 type.
1495 (target_bfd_reopen): Change parameter type.
1496 * bfd-target.h (target_bfd_reopen): Change parameter type.
1497
1498 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1499
1500 * thread.c (add_thread_silent): Add assert.
1501 (find_thread_ptid): Add assert.
1502
1503 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1504
1505 PR gdb/27435
1506 * inf-ptrace.c (struct target_unpusher): Move to target.h.
1507 (target_unpush_up): Likewise.
1508 * procfs.c (procfs_target::attach): Push target early. Use
1509 target_unpush_up to unpush target in case of error.
1510 * target.h (struct target_unpusher): Move here.
1511 (target_unpush_up): Likewise.
1512
1513 2021-02-19 Kevin Buettner <kevinb@redhat.com>
1514
1515 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
1516 (which in turn includes <gnulib/config.h>) before include
1517 of <signal.h>.
1518
1519 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
1520
1521 PR 27158
1522 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
1523 (decode_j_type_insn): Likewise.
1524 (decode_cj_type_insn): Likewise.
1525 (decode_b_type_insn): Likewise.
1526 (decode): Likewise.
1527
1528 2021-02-18 Tom Tromey <tom@tromey.com>
1529
1530 * expression.h (struct expression) <evaluate>: Declare method.
1531 * eval.c (evaluate_subexp): Simplify.
1532 (expression::evaluate): New method.
1533 (evaluate_expression, evaluate_type): Use expression::evaluate.
1534
1535 2021-02-17 Kevin Buettner <kevinb@redhat.com>
1536
1537 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1538 to accessing it.
1539 (ada_lookup_name_info): Likewise.
1540
1541 2021-02-13 Mike Frysinger <vapier@gentoo.org>
1542
1543 * aclocal.m4: Regenerate.
1544
1545 2021-02-12 Tom de Vries <tdevries@suse.de>
1546
1547 PR threads/26228
1548 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1549 (lin_thread_signals): New static var.
1550 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1551 New function.
1552 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1553 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1554 Declare.
1555 * linux-thread-db.c (check_thread_signals): Use
1556 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1557
1558 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1559
1560 * f-exp.y (f77_keywords): Add allocated.
1561 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
1562 (operator_length_f): Likewise.
1563 (print_subexp_f): Likewise.
1564 (dump_subexp_body_f): Likewise.
1565 (operator_check_f): Likewise.
1566 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
1567
1568 2021-02-11 Tom de Vries <tdevries@suse.de>
1569
1570 PR symtab/27353
1571 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
1572 Return true for DW_FORM_strx.
1573
1574 2021-02-11 Tom Tromey <tromey@adacore.com>
1575
1576 PR gdb/27383:
1577 * parse.c (write_exp_symbol_reference): Write sym.block.
1578
1579 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1580
1581 * NEWS: Mention changes to 'maint info sections'.
1582 * maint.c (match_substring): Return a bool, fix whitespace issue.
1583 (struct single_bfd_flag_info): New struct.
1584 (bfd_flag_info): New static global.
1585 (match_bfd_flags): Return a bool, use bfd_flag_info.
1586 (print_bfd_flags): Use bfd_flag_info.
1587 (maint_print_section_info): Delete trailing whitespace.
1588 (struct maint_info_sections_opts): New struct.
1589 (maint_info_sections_option_defs): New static global.
1590 (maint_info_sections_completer): New function.
1591 (maintenance_info_sections): Use option parsing mechanism.
1592 (_initialize_maint_cmds): Update command help text for 'maint info
1593 sections' and register a command completer.
1594
1595 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1596
1597 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
1598 functionality merged into...
1599 (maint_print_all_sections): ...this new function.
1600 (maintenance_info_sections): Make use of maint_print_all_sections,
1601 allow all objects to be printed even where there's no executable.
1602
1603 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1604
1605 * breakpoint.c (resolve_sal_pc): Make use of
1606 bound_minimal_symbol::obj_section.
1607 * maint.c (maintenance_translate_address): Likewise.
1608 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1609 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1610 member function.
1611 * printcmd.c (info_address_command): Make use of
1612 bound_minimal_symbol::obj_section.
1613
1614 2021-02-11 Alan Modra <amodra@gmail.com>
1615
1616 * arm-symbian-tdep.c: Delete.
1617 * NEWS: Mention arm-symbian removal.
1618 * Makefile.in: Remove arm-symbian-tdep entries.
1619 * configure.tgt: Remove arm*-*-symbianelf*.
1620 * doc/gdb.texinfo: Remove mention of SymbianOS.
1621 * osabi.c (gdb_osabi_names): Remove "Symbian".
1622 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
1623 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
1624 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
1625 handling.
1626 * testsuite/gdb.base/dup-sect.exp: Likewise.
1627 * testsuite/gdb.base/long_long.exp: Likewise.
1628 * testsuite/gdb.base/solib-weak.exp: Likewise.
1629 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
1630 * testsuite/gdb.python/py-section-script.exp: Likewise.
1631 * testsuite/lib/dwarf.exp: Likewise.
1632 * testsuite/lib/gdb.exp: Likewise.
1633
1634 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1635
1636 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
1637 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
1638 (one_or_two_args): New pattern.
1639 (f77_keywords): Add lbound and ubound.
1640 * f-lang.c (fortran_bounds_all_dims): New function.
1641 (fortran_bounds_for_dimension): New function.
1642 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
1643 (operator_length_f): Likewise.
1644 (print_subexp_f): Likewise.
1645 (dump_subexp_body_f): Likewise.
1646 (operator_check_f): Likewise.
1647 * std-operator.def (FORTRAN_LBOUND): Define.
1648 (FORTRAN_UBOUND): Define.
1649
1650 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1651
1652 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
1653 and set_section_index member functions where appropriate.
1654 * coffread.c (coff_symtab_read): Likewise.
1655 (process_coff_symbol): Likewise.
1656 * ctfread.c (set_symbol_address): Likewise.
1657 * dwarf2/read.c (add_partial_symbol): Likewise.
1658 (var_decode_location): Likewise.
1659 * language.c: Likewise.
1660 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
1661 (compact_minimal_symbols): Likewise.
1662 (minimal_symbol_upper_bound): Likewise.
1663 * objfiles.c (relocate_one_symbol): Likewise.
1664 * psympriv.h (partial_symbol::obj_section): Likewise.
1665 (partial_symbol::address): Likewise.
1666 * psymtab.c (partial_symtab::add_psymbol): Likewise.
1667 * stabsread.c (scan_file_globals): Likewise.
1668 * symmisc.c (dump_msymbols): Likewise.
1669 * symtab.c (general_symbol_info::obj_section): Likewise.
1670 (fixup_section): Likewise.
1671 (get_msymbol_address): Likewise.
1672 * symtab.h (general_symbol_info::section): Rename to...
1673 (general_symbol_info::m_section): ...this.
1674 (general_symbol_info::set_section_index): New member function.
1675 (general_symbol_info::section_index): Likewise.
1676 (SYMBOL_SECTION): Delete.
1677 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1678 set_section_index member functions where appropriate.
1679 (MSYMBOL_SECTION): Delete.
1680 (symbol::symbol): Update to initialize 'm_section'.
1681 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1682 (process_xcoff_symbol): Likewise.
1683
1684 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1685
1686 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1687 MSYMBOL_OBJ_SECTION.
1688 * findvar.c (language_defn::read_var_value): Likewise.
1689 * infcmd.c (jump_command): Likewise.
1690 * linespec.c (minsym_found): Likewise.
1691 * maint.c (maintenance_translate_address): Likewise.
1692 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1693 (minimal_symbol_upper_bound): Likewise.
1694 * parse.c (find_minsym_type_and_address): Likewise.
1695 (operator_check_standard): Likewise.
1696 * printcmd.c (info_address_command): Likewise.
1697 * symmisc.c (dump_msymbols): Likewise.
1698 (print_symbol): Likewise.
1699 * symtab.c (general_symbol_info::obj_section): Define new
1700 function.
1701 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1702 (find_pc_sect_compunit_symtab): Likewise.
1703 (find_function_start_sal): Likewise.
1704 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1705 MSYMBOL_OBJ_SECTION.
1706 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1707 function.
1708 (SYMBOL_OBJ_SECTION): Delete.
1709 (MSYMBOL_OBJ_SECTION): Delete.
1710
1711 2021-02-09 Tom Tromey <tom@tromey.com>
1712
1713 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1714
1715 2021-02-09 Tom de Vries <tdevries@suse.de>
1716
1717 PR symtab/27341
1718 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1719 construct an array type. Add assert to ensure that element_type is
1720 not being modified.
1721
1722 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1723
1724 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1725 (gcore_collect_regset_section_cb): Delete.
1726 (gcore_collect_thread_registers): Delete.
1727 (gcore_build_thread_register_notes): Delete.
1728 (gcore_find_signalled_thread): Delete.
1729 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1730 'gdbarch' and 'thread_info' declarations.
1731 (gcore_build_thread_register_notes): Delete declaration.
1732 (gcore_find_signalled_thread): Likewise.
1733 * fbsd-tdep.c: Remove 'gcore.h' include.
1734 (struct fbsd_collect_regset_section_cb_data): New struct.
1735 (fbsd_collect_regset_section_cb): New function.
1736 (fbsd_collect_thread_registers): New function.
1737 (struct fbsd_corefile_thread_data): New struct.
1738 (fbsd_corefile_thread): New function.
1739 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1740 * linux-tdep.c: Remove 'gcore.h' include.
1741 (struct linux_collect_regset_section_cb_data): New struct.
1742 (linux_collect_regset_section_cb): New function.
1743 (linux_collect_thread_registers): New function.
1744 (linux_corefile_thread): Call Linux specific code.
1745 (find_signalled_thread): New function.
1746 (linux_make_corefile_notes): Call find_signalled_thread.
1747
1748 2021-02-09 Tom Tromey <tromey@adacore.com>
1749
1750 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1751 not_lval value.
1752 * value.c (value_contents_copy_raw): Now static.
1753 * value.h (value_contents_copy_raw): Don't declare.
1754
1755 2021-02-09 Tom Tromey <tromey@adacore.com>
1756
1757 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1758 fields.
1759
1760 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
1761
1762 PR tdep/27369
1763 * arc-linux-tdep.c (handle_atomic_sequence): New.
1764 (arc_linux_software_single_step): Call handle_atomic_sequence().
1765
1766 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1767
1768 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1769 function.
1770 (REQUIRE_WINDOW): Call is_valid member function.
1771 (REQUIRE_WINDOW_FOR_SETTER): New define.
1772 (gdbpy_tui_is_valid): Call is_valid member function.
1773 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1774 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1775 tui_active too.
1776 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1777 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1778 the function.
1779
1780 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1781
1782 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1783 for the title is not nullptr.
1784
1785 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1786
1787 * tui-layout.c (saved_tui_windows): Delete.
1788 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1789 call new get_windows member function instead.
1790 (tui_get_window_by_name): Check in tui_windows.
1791 (tui_layout_window::apply): Don't add to tui_windows.
1792 * tui-layout.h (tui_layout_base::get_windows): New member function.
1793 (tui_layout_window::get_windows): Likewise.
1794 (tui_layout_split::get_windows): Likewise.
1795
1796 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1797
1798 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1799 of the window objects.
1800
1801 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1802
1803 * python/python.c (gdbpy_print_stack): Reformat an error message.
1804
1805 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1806
1807 * tui/tui-interp.c (tui_command_line_handler): New function.
1808 (tui_interp::resume): Register tui_command_line_handler as the
1809 input_handler.
1810 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1811 function.
1812 (tui_getc_1): Delete handling of '\n' and '\r'.
1813 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1814
1815 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1816
1817 * tui/tui-regs.c (tui_data_window::display_registers_from):
1818 Mark invisible register sub windows.
1819 (tui_data_window::check_register_values): Ignore invisible
1820 register sub windows.
1821
1822 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1823
1824 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1825 n_spaces with a negative value.
1826
1827 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1828
1829 * tui/tui-regs.c (tui_data_window::display_registers_from):
1830 Add refresh_window call.
1831
1832 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1833
1834 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1835
1836 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1837
1838 * symmisc.c (std_in, std_out, std_err): Remove.
1839 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1840
1841 2021-02-05 Tom de Vries <tdevries@suse.de>
1842
1843 PR breakpoints/27330
1844 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1845 glibc object file has debug info.
1846
1847 2021-02-05 Tom de Vries <tdevries@suse.de>
1848
1849 PR symtab/27333
1850 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1851
1852 2021-02-05 Tom de Vries <tdevries@suse.de>
1853
1854 PR breakpoints/27313
1855 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1856 syscall numbers.
1857
1858 2021-02-05 Tom Tromey <tom@tromey.com>
1859
1860 * compile/compile-c-support.c (get_compile_context)
1861 (c_get_compile_context, cplus_get_compile_context): Change return
1862 type.
1863 * language.c (language_defn::get_compile_instance): New method.
1864 * language.h (language_defn::get_compile_instance): Change return
1865 type. No longer inline.
1866 * c-lang.c (c_language::get_compile_instance): Change return type.
1867 (cplus_language::get_compile_instance): Change return type.
1868 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1869 Change return type.
1870 * compile/compile.c (compile_to_object): Update.
1871
1872 2021-02-05 Tom Tromey <tom@tromey.com>
1873
1874 * parser-defs.h (write_exp_symbol_reference): Declare.
1875 * parse.c (write_exp_symbol_reference): New function.
1876 * p-exp.y (variable): Use write_exp_symbol_reference.
1877 * m2-exp.y (variable): Use write_exp_symbol_reference.
1878 * f-exp.y (variable): Use write_exp_symbol_reference.
1879 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1880 * c-exp.y (variable): Use write_exp_symbol_reference.
1881
1882 2021-02-05 Tom de Vries <tdevries@suse.de>
1883
1884 PR exp/27265
1885 * valarith.c (complex_binop): Throw an error if complex type can't
1886 be created.
1887
1888 2021-02-05 Tom de Vries <tdevries@suse.de>
1889
1890 PR symtab/27307
1891 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1892 return.
1893
1894 2021-02-05 Tom de Vries <tdevries@suse.de>
1895
1896 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1897
1898 2021-02-04 Mike Frysinger <vapier@gentoo.org>
1899
1900 * configure.tgt (riscv*-*-*): Set gdb_sim.
1901
1902 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * target.c (target_is_non_stop_p): Return bool.
1905 * target.h (target_is_non_stop_p): Return bool.
1906
1907 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1908
1909 * record-full.c (record_full_async_inferior_event_handler):
1910 Don't clear async event handler.
1911 (record_full_base_target::wait): Clear async event handler at
1912 beginning.
1913
1914 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1915
1916 * record-btrace.c (record_btrace_handle_async_inferior_event):
1917 Don't clear async event handler.
1918 (record_btrace_target::wait): Clear async event handler at
1919 beginning.
1920
1921 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1922
1923 * remote.c (remote_target::wait): Clear async event handler at
1924 beginning, mark if needed at the end.
1925 (remote_async_inferior_event_handler): Don't set or clear async
1926 event handler.
1927
1928 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1929
1930 * async-event.h (async_event_handler_func): Add documentation.
1931 * async-event.c (check_async_event_handlers): Don't clear
1932 async_event_handler ready flag.
1933 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1934 flag.
1935 * record-btrace.c (record_btrace_handle_async_inferior_event):
1936 Likewise.
1937 * record-full.c (record_full_async_inferior_event_handler):
1938 Likewise.
1939 * remote-notif.c (remote_async_get_pending_events_handler):
1940 Likewise.
1941 * remote.c (remote_async_inferior_event_handler): Likewise.
1942
1943 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1944
1945 * infrun.c (handle_inferior_event): Move stop_soon variable to
1946 inner scope.
1947
1948 2021-02-03 Pedro Alves <pedro@palves.net>
1949
1950 * infcmd.c (detach_command): Hold strong reference to target, and
1951 if all-stop on entry, restart threads on exit.
1952 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1953 (restart_stepped_thread): ... this new function. Also handle
1954 trap_expected.
1955 (restart_after_all_stop_detach): New function.
1956 * infrun.h (restart_after_all_stop_detach): Declare.
1957
1958 2021-02-03 Pedro Alves <pedro@palves.net>
1959
1960 * infrun.c (struct step_over_info): Initialize fields.
1961 (prepare_for_detach): Handle ongoing in-line step over.
1962
1963 2021-02-03 Pedro Alves <pedro@palves.net>
1964
1965 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1966 here...
1967 * remote.c (remote_target::remote_detach_1): ... and here ...
1968 * target.c (target_detach): ... instead of here.
1969 * target.h (target_ops::detach): Add comment.
1970
1971 2021-02-03 Pedro Alves <pedro@palves.net>
1972
1973 * infrun.c (struct wait_one_event): Move higher up.
1974 (prepare_for_detach): Abort in-progress displaced steps instead of
1975 letting them complete.
1976 (handle_one): If the inferior is detaching, don't add the thread
1977 back to the global step-over chain.
1978 (restart_threads): Don't restart threads if detaching.
1979 (handle_signal_stop): Remove inferior::detaching reference.
1980
1981 2021-02-03 Pedro Alves <pedro@palves.net>
1982
1983 * infrun.c (prepare_for_detach): Don't release scoped_restore
1984 before returning.
1985
1986 2021-02-03 Pedro Alves <pedro@palves.net>
1987
1988 * infrun.c (handle_one): New function, factored out from ...
1989 (stop_all_threads): ... here.
1990
1991 2021-02-03 Pedro Alves <pedro@palves.net>
1992
1993 * remote.c (remote_notif_stop_ack): Don't error out on
1994 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1995 (remote_target::discard_pending_stop_replies): Don't delete
1996 in-flight notification; instead, clear its contents.
1997
1998 2021-02-03 Pedro Alves <pedro@palves.net>
1999
2000 * remote.c (extended_remote_target::attach): Set target async in
2001 the target-non-stop path too.
2002
2003 2021-02-03 Pedro Alves <pedro@palves.net>
2004
2005 PR gdb/27055
2006 * infrun.c (handle_signal_stop): Move main context_switch call
2007 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2008
2009 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2010
2011 * NEWS (Changed commands): Add entry for the behavior change of
2012 the inferior command.
2013 * inferior.c (inferior_command): When no argument is given to the
2014 inferior command, display info about the currently selected
2015 inferior.
2016
2017 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2018
2019 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2020 a sect_offset.
2021 (read_attribute_reprocess): Adjust.
2022
2023 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2024
2025 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2026 <gnu_ranges_base>: ... this...
2027 <rnglists_base>: ... and this.
2028 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2029 <gnu_ranges_base>: ... this...
2030 <rnglists_base>: ... and this.
2031 (read_cutu_die_from_dwo): Adjust
2032 (dwarf2_get_pc_bounds): Adjust
2033 (dwarf2_record_block_ranges): Adjust.
2034 (read_full_die_1): Adjust
2035 (partial_die_info::read): Adjust.
2036 (read_rnglist_index): Adjust.
2037
2038 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2039
2040 PR gdb/26813
2041 * dwarf2/read.c (read_loclists_rnglists_header): Add
2042 header_offset parameter and use it.
2043 (read_loclist_index): Read header of the current contribution,
2044 not the one at the beginning of the section.
2045 (read_rnglist_index): Likewise.
2046
2047 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2048
2049 PR gdb/26813
2050 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2051 requires_reprocessing flag.
2052 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2053 DW_FORM_loclistx.
2054 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2055 and DW_FORM_loclistx.
2056 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2057 instead of set_address for DW_FORM_loclistx and
2058 DW_FORM_rnglistx.
2059
2060 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2061
2062 * dwarf2/read.c (read_loclist_index): Remove bound check for
2063 start of offset.
2064 (read_rnglist_index): Likewise.
2065
2066 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2067
2068 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2069 of the offset.
2070
2071 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2072
2073 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2074
2075 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2076
2077 * dwarf2/read.c (read_loclist_index): Change complaints into
2078 errors.
2079
2080 2021-02-02 Tom de Vries <tdevries@suse.de>
2081
2082 PR symtab/24620
2083 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2084 psymtab == nullptr.
2085
2086 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2087
2088 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2089 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2090 here from linux-tdep.c and given a new name. Minor cleanups.
2091 (gcore_collect_regset_section_cb): Likewise.
2092 (gcore_collect_thread_registers): Likewise.
2093 (gcore_build_thread_register_notes): Likewise.
2094 (gcore_find_signalled_thread): Likewise.
2095 * gcore.h (gcore_build_thread_register_notes): Declare.
2096 (gcore_find_signalled_thread): Declare.
2097 * fbsd-tdep.c: Add 'gcore.h' include.
2098 (struct fbsd_collect_regset_section_cb_data): Delete.
2099 (fbsd_collect_regset_section_cb): Delete.
2100 (fbsd_collect_thread_registers): Delete.
2101 (struct fbsd_corefile_thread_data): Delete.
2102 (fbsd_corefile_thread): Delete.
2103 (fbsd_make_corefile_notes): Call
2104 gcore_build_thread_register_notes instead of the now deleted
2105 FreeBSD code.
2106 * linux-tdep.c: Add 'gcore.h' include.
2107 (struct linux_collect_regset_section_cb_data): Delete.
2108 (linux_collect_regset_section_cb): Delete.
2109 (linux_collect_thread_registers): Delete.
2110 (linux_corefile_thread): Call
2111 gcore_build_thread_register_notes.
2112 (find_signalled_thread): Delete.
2113 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2114
2115 2021-01-29 Tom de Vries <tdevries@suse.de>
2116
2117 PR breakpoints/26063
2118 * infrun.c (process_event_stop_test): Reset
2119 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2120 changed.
2121
2122 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2123
2124 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2125 assert. Extend the header comment.
2126
2127 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2128
2129 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2130 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2131 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2132 (tui_locator_win_info_ptr): Delete declaration.
2133 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2134 (tui_disasm_window::set_contents): Fetch state from tui_location
2135 global.
2136 (tui_get_begin_asm_address): Likewise.
2137 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2138 for locator window.
2139 (get_locator_window): Delete.
2140 (initialize_known_windows): Treat locator window just like all the
2141 rest.
2142 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2143 (tui_source_window::set_contents): Fetch state from tui_location
2144 global.
2145 (tui_source_window::showing_source_p): Likewise.
2146 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2147 (_locator): Delete.
2148 (tui_locator_win_info_ptr): Delete.
2149 (tui_locator_window::make_status_line): Fetch state from
2150 tui_location global.
2151 (tui_locator_window::rerender): Remove check of 'handle',
2152 reindent function body.
2153 (tui_locator_window::set_locator_fullname): Delete.
2154 (tui_locator_window::set_locator_info): Delete.
2155 (tui_update_locator_fullname): Delete.
2156 (tui_show_frame_info): Likewise.
2157 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2158 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2159 tui/tui-location.h and renamed to
2160 tui_location_tracker::set_location.
2161 (tui_locator_window::set_locator_fullname): Moved to
2162 tui/tui-location.h and renamed to
2163 tui_location_tracker::set_fullname.
2164 (tui_locator_window::full_name): Delete.
2165 (tui_locator_window::proc_name): Delete.
2166 (tui_locator_window::line_no): Delete.
2167 (tui_locator_window::addr): Delete.
2168 (tui_locator_window::gdbarch): Delete.
2169 (tui_update_locator_fullname): Delete declaration.
2170 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2171 for locator window.
2172 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2173 (tui_display_main): Call function on tui_location directly.
2174 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2175 * tui/tui-location.c: New file.
2176 * tui/tui-location.h: New file.
2177
2178 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2179
2180 * gdbtypes.h (get_type_arch): Rename to...
2181 (struct type) <arch>: ... this, update all users.
2182
2183 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2184
2185 * gdbtypes.h (struct type) <arch>: Rename to...
2186 <arch_owner>: ... this, update all users.
2187 <objfile>: Rename to...
2188 <objfile_owner>: ... this, update all users.
2189
2190 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2191
2192 * gdbcmd.h (execute_command_to_string): Update comment.
2193 * top.c (execute_command_to_string): Update header comment.
2194
2195 2021-01-28 Tom de Vries <tdevries@suse.de>
2196
2197 PR breakpoints/27205
2198 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2199 (create_longjmp_master_breakpoint_names): New function, factored out
2200 of ...
2201 (create_longjmp_master_breakpoint): ... here. Only try to install
2202 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2203 breakpoint in libc.so failed.
2204
2205 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2206
2207 PR gdb/27133
2208 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2209 unique_ptr is released when the wrapped pointer is kept for later
2210 use.
2211
2212 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2213
2214 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2215 BLR and BR instructions.
2216 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2217 (enum aarch64_masks): New.
2218
2219 2021-01-26 Tom Tromey <tromey@adacore.com>
2220
2221 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2222 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2223 (windows_init_thread_list, windows_nat::handle_load_dll)
2224 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2225 (windows_nat_target::resume)
2226 (windows_nat_target::get_windows_debug_event)
2227 (windows_nat_target::interrupt, windows_xfer_memory)
2228 (windows_nat_target::close): Update.
2229 * nat/windows-nat.c (DEBUG_EVENTS): Use
2230 debug_prefixed_printf_cond.
2231 (matching_pending_stop, fetch_pending_stop)
2232 (continue_last_debug_event): Update.
2233
2234 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2235
2236 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2237 elfcore_write_file_note.
2238
2239 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
2240
2241 * arc-tdep.c (arc_add_reggroups): New function.
2242 (arc_gdbarch_init): Call arc_add_reggroups.
2243
2244 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
2245
2246 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2247
2248 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2249 Simon Marchi <simon.marchi@polymtl.ca>
2250 Tom de Vries <tdevries@suse.de>
2251
2252 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2253 DW_AT_ranges.
2254
2255 2021-01-25 Tom Tromey <tromey@adacore.com>
2256
2257 * dwarf2/read.c (get_mpz): New function.
2258 (get_dwarf2_rational_constant): Use it.
2259
2260 2021-01-25 Tom Tromey <tromey@adacore.com>
2261
2262 * ada-lang.c (resolve_subexp): Handle array context.
2263
2264 2021-01-23 Tom Tromey <tom@tromey.com>
2265
2266 PR compile/25575
2267 * compile/compile-loc2c.c (note_register): New function.
2268 (pushf_register_address, pushf_register): Use it.
2269
2270 2021-01-23 Tom Tromey <tom@tromey.com>
2271
2272 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2273 Change type of "registers_used".
2274 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2275 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2276 (locexpr_generate_c_location, loclist_generate_c_location): Change
2277 type of "registers_used".
2278 * compile/compile.h (compile_dwarf_expr_to_c)
2279 (compile_dwarf_bounds_to_c): Update.
2280 * compile/compile-loc2c.c (pushf_register_address)
2281 (pushf_register, do_compile_dwarf_expr_to_c)
2282 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2283 of "registers_used".
2284 * compile/compile-c.h (generate_c_for_variable_locations):
2285 Update.
2286 * compile/compile-c-symbols.c (generate_vla_size)
2287 (generate_c_for_for_one_variable): Change type of
2288 "registers_used".
2289 (generate_c_for_variable_locations): Return std::vector.
2290 * compile/compile-c-support.c (generate_register_struct): Change
2291 type of "registers_used".
2292 (compute): Update.
2293
2294 2021-01-23 Tom Tromey <tom@tromey.com>
2295
2296 * compile/compile-internal.h (class compile_instance)
2297 <set_arguments>: Change return type.
2298 * compile/compile.c (compile_to_object): Remove call to reset.
2299 (compile_instance::set_arguments): Change return type.
2300
2301 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2302
2303 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2304 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2305
2306 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2307
2308 * Makefile.in (SELFTESTS_SRCS): Add
2309 unittests/gdb_tilde_expand-selftests.c.
2310 * unittests/gdb_tilde_expand-selftests.c: New file.
2311
2312 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2313
2314 PR cli/25956
2315 * NEWS: Mention new command.
2316 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2317 (version_style): Define.
2318 (cli_style_option::cli_style_option): Add intensity parameter, and
2319 use as appropriate.
2320 (_initialize_cli_style): Register version style set/show commands.
2321 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2322 (version_style): Declare.
2323 * top.c (print_gdb_version): Use version_stype, and styled_string
2324 to print the GDB version string.
2325
2326 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2327
2328 * utils.c (emit_style_escape): Only emit an escape sequence if the
2329 requested style is different than the current applied style.
2330 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2331 current applied_style.
2332 (fputs_styled): Remove is_default check.
2333 (fputs_styled_unfiltered): Likewise.
2334 (vfprintf_styled_no_gdbfmt): Likewise.
2335
2336 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2337
2338 * remote.h (remote_debug_printf): New.
2339 (remote_debug_printf_nofunc): New.
2340 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2341 * remote.c: Use above macros throughout file.
2342
2343 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2344
2345 * remote.h (remote_debug): Change to bool.
2346 * remote.c (remote_debug): Change to bool.
2347 (_initialize_remote): Adjust.
2348
2349 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2350
2351 * target.h (remote_debug): Move to...
2352 * remote.h (remote_debug): ... here.
2353 * top.c (remote_debug): Move to...
2354 * remote.c (remote_debug): ... here.
2355 * remote-sim.c: Include remote.h.
2356
2357 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2358
2359 * cli/cli-cmds.c (show_remote_debug): Remove.
2360 (show_remote_timeout): Remove.
2361 (_initialize_cli_cmds): Don't register commands.
2362 * remote.c (show_remote_debug): Move here.
2363 (show_remote_timeout): Move here.
2364 (_initialize_remote): Register commands.
2365
2366 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2367
2368 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2369 type::objfile method instead.
2370
2371 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2372
2373 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2374 use the type::is_objfile_owned method.
2375
2376 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
2377
2378 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2379 (TYPE_OWNER): Remove.
2380 (TYPE_OBJFILE): Adjust.
2381 (struct main_type) <flag_objfile_owned>: Rename to...
2382 <m_flag_objfile_owned>: ... this.
2383 <owner>: Rename to...
2384 <m_owner>: ... this.
2385 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2386 methods.
2387 (TYPE_ALLOC): Adjust.
2388 * gdbtypes.c (alloc_type): Adjust.
2389 (alloc_type_arch): Adjust.
2390 (alloc_type_copy): Adjust.
2391 (get_type_arch): Adjust.
2392 (smash_type): Adjust.
2393 (lookup_array_range_type): Adjust.
2394 (recursive_dump_type): Adjust.
2395 (copy_type_recursive): Adjust.
2396 * compile/compile-c-types.c (convert_func): Adjust.
2397 (convert_type_basic): Adjust.
2398 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2399 Adjust.
2400 * language.c
2401 (language_arch_info::type_and_symbol::alloc_type_symbol):
2402 Adjust.
2403
2404 2021-01-21 Luis Machado <luis.machado@linaro.org>
2405
2406 * coffread.c (enter_linenos): Passing string to complaint.
2407 * valops.c (value_assign): Make array view.
2408
2409 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2410
2411 * auto-load.h (debug_auto_load): Move here.
2412 (auto_load_debug_printf): New.
2413 * auto-load.c: Use auto_load_debug_printf.
2414 (debug_auto_load): Move to header.
2415 * linux-thread-db.c (try_thread_db_load): Use
2416 auto_load_debug_printf.
2417 * main.c (captured_main_1): Likewise.
2418
2419 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2420
2421 * f-valprint.c (f77_array_offset_tbl): Remove.
2422
2423 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2424
2425 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2426
2427 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2428
2429 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2430 of gdb_select.
2431
2432 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
2433
2434 PR python/19151
2435 * python/py-breakpoint.c (bppy_get_location): Handle
2436 bp_hardware_breakpoint.
2437 (bppy_init): Likewise.
2438 (gdbpy_breakpoint_created): Likewise.
2439
2440 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2441
2442 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2443
2444 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2445
2446 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2447 (_initialize_gdb_bfd): Adjust.
2448
2449 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2450
2451 PR gdb/26828
2452 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2453
2454 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2455
2456 * dwarf2/read.c (follow_die_offset): Add logging.
2457 (dwarf2_per_objfile::age_comp_units): Add logging.
2458
2459 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2460
2461 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2462 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2463 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2464 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2465 * arm-tdep.c (struct frame_unwind): Make static.
2466 * auto-load.c (auto_load_safe_path_vec): Make static.
2467 * csky-tdep.c (csky_stub_unwind): Make static.
2468 * gdbarch.c (gdbarch_data_registry): Make static.
2469 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2470 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2471 * i386-tdep.c (i386_frame_setup_skip_insns,
2472 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2473 Make static.
2474 * infrun.c (observer_mode): Make static.
2475 * linux-nat.c (sigchld_action): Make static.
2476 * linux-thread-db.c (thread_db_list): Make static.
2477 * maint-test-options.c (maintenance_test_options_list):
2478 * mep-tdep.c (mep_csr_registers): Make static.
2479 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2480 (stats): Make static.
2481 * nat/linux-osdata.c (struct osdata_type): Make static.
2482 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2483 * progspace.c (last_program_space_num): Make static.
2484 * python/py-param.c (struct parm_constant): Remove struct type
2485 name.
2486 (parm_constants): Make static.
2487 * python/py-record-btrace.c (btpy_list_methods): Make static.
2488 * python/py-record.c (recpy_gap_type): Make static.
2489 * record.c (record_goto_cmdlist): Make static.
2490 * regcache.c (regcache_descr_handle): Make static.
2491 * registry.h (DEFINE_REGISTRY): Make definition static.
2492 * symmisc.c (std_in, std_out, std_err): Make static.
2493 * top.c (previous_saved_command_line): Make static.
2494 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2495 static.
2496 * unittests/command-def-selftests.c (nr_duplicates,
2497 nr_invalid_prefixcmd, lists): Make static.
2498 * unittests/observable-selftests.c (test_notification): Make
2499 static.
2500 * unittests/optional/assignment/1.cc (counter): Make static.
2501 * unittests/optional/assignment/2.cc (counter): Make static.
2502 * unittests/optional/assignment/3.cc (counter): Make static.
2503 * unittests/optional/assignment/4.cc (counter): Make static.
2504 * unittests/optional/assignment/5.cc (counter): Make static.
2505 * unittests/optional/assignment/6.cc (counter): Make static.
2506
2507 2021-01-20 Joel Sherrill <joel@rtems.org>
2508
2509 PR gdb/27219
2510 * remote.c (struct remote_thread_info) <resume_state>: Rename
2511 to...
2512 <get_resume_state>: ... this.
2513 (remote_target::resume): Adjust.
2514 (remote_target::commit_resume): Adjust.
2515 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
2516
2517 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
2518 Tom Tromey <tom@tromey.com>
2519
2520 * stap-probe.c (stap_parse_single_operand): Handle '!'
2521 operator.
2522 (stap_parse_argument_conditionally): Likewise.
2523 Skip spaces after processing open-parenthesis sub-expression.
2524 (stap_parse_argument_1): Skip spaces after call to
2525 stap_parse_argument_conditionally.
2526 Handle case when right-side expression is a parenthesized
2527 sub-expression.
2528 Skip spaces after call to stap_parse_argument_1.
2529
2530 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2531
2532 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2533
2534 2021-01-19 Luis Machado <luis.machado@linaro.org>
2535
2536 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2537 memory and save data.
2538 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2539 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2540 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2541 (trad_frame_value_bytes_p): Remove.
2542 (trad_frame_reset_saved_regs): Adjust documentation.
2543 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2544 constructor and reset the state of the registers.
2545 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2546 (trad_frame_value_bytes_p, trad_frame_set_value)
2547 (trad_frame_set_realreg, trad_frame_set_addr)
2548 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2549 (trad_frame_set_reg_realreg): Update to call member function.
2550 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2551 (trad_frame_get_prev_register): Likewise.
2552
2553 * aarch64-tdep.c (aarch64_analyze_prologue)
2554 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2555 (aarch64_prologue_prev_register): Update to use member functions.
2556 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2557 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
2558 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
2559 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
2560 (arm_make_epilogue_frame_cache): Likewise.
2561 * avr-tdep.c (avr_frame_unwind_cache)
2562 (avr_frame_prev_register): Likewise.
2563 * cris-tdep.c (cris_scan_prologue): Likewise.
2564 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
2565 * frv-tdep.c (frv_analyze_prologue): Likewise.
2566 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
2567 * lm32-tdep.c (lm32_frame_cache): Likewise.
2568 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2569 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2570 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
2571 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
2572 (reset_saved_regs): Adjust to set realreg.
2573 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
2574 call member functions.
2575 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
2576 * s390-tdep.c (s390_prologue_frame_unwind_cache)
2577 (s390_backchain_frame_unwind_cache): Likewise.
2578 * score-tdep.c (score7_analyze_prologue)
2579 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
2580 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
2581 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2582 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
2583 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2584 * tilegx-tdep.c (tilegx_analyze_prologue)
2585 (tilegx_frame_cache): Likewise.
2586 * v850-tdep.c (v850_frame_cache): Likewise.
2587 * vax-tdep.c (vax_frame_cache): Likewise.
2588
2589 2021-01-19 Luis Machado <luis.machado@linaro.org>
2590
2591 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
2592 of buffer + length.
2593 (put_frame_register_bytes): Likewise.
2594 Adjust documentation.
2595 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
2596 (safe_frame_unwind_memory): Likewise.
2597 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
2598 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
2599 gdb::array_view.
2600 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
2601 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
2602 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2603 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
2604 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
2605 * dwarf2/loc.c (rw_pieced_value): Likewise.
2606 * hppa-tdep.c (hppa_frame_cache): Likewise.
2607 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2608 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2609 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2610 (i386_linux_rt_sigtramp_start): Likewise.
2611 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2612 * i386-tdep.c (i386_register_to_value): Likewise.
2613 * i387-tdep.c (i387_register_to_value): Likewise.
2614 * ia64-tdep.c (ia64_register_to_value): Likewise.
2615 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2616 (m32r_linux_rt_sigtramp_start): Likewise.
2617 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2618 * m68k-tdep.c (m68k_register_to_value): Likewise.
2619 * mips-tdep.c (mips_register_to_value)
2620 (mips_value_to_register): Likewise.
2621 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
2622 (ppcfbsd_sigtramp_frame_cache): Likewise.
2623 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
2624 (ppcobsd_sigtramp_frame_cache): Likewise.
2625 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
2626 (rs6000_register_to_value): Likewise.
2627 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2628 * tramp-frame.c (tramp_frame_start): Likewise.
2629 * valops.c (value_assign): Likewise.
2630
2631 2021-01-19 Luis Machado <luis.machado@linaro.org>
2632
2633 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
2634 array_view.
2635 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
2636 instead of buffer and size.
2637 (trad_frame_set_reg_value_bytes): Likewise.
2638 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
2639 (trad_frame_set_value_bytes): Likewise.
2640
2641 2021-01-18 Mike Frysinger <vapier@gentoo.org>
2642
2643 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
2644
2645 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
2646
2647 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
2648 (riscv_fbsd_gregset): Use riscv_supply_regset.
2649 (riscv_fbsd_fpregset): Likewise.
2650 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
2651 (riscv_linux_fregset): Likewise.
2652 * riscv-tdep.c (riscv_supply_regset): Define new function.
2653 * riscv-tdep.h (riscv_supply_regset): Declare new function.
2654
2655 2021-01-18 Tom de Vries <tdevries@suse.de>
2656
2657 PR tdep/27172
2658 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
2659 New macro.
2660 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
2661 for SEGV_BNDERR.
2662
2663 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2664
2665 * remote.c (class remote_target) <remote_hostio_send_command,
2666 remote_hostio_parse_result>: Constify parameter.
2667 (remote_hostio_parse_result): Likewise.
2668 (remote_target::remote_hostio_send_command): Adjust.
2669 (remote_target::remote_hostio_pread_vFile): Adjust.
2670 (remote_target::fileio_readlink): Adjust.
2671 (remote_target::fileio_fstat): Adjust.
2672
2673 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2674
2675 * remote.c (remote_target::start_remote): Move wait_status to
2676 narrower scope.
2677
2678 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2679
2680 * remote.c (class remote_target):
2681 <add_current_inferior_and_thread>: Constify parameter.
2682 (stop_reply_extract_thread): Likewise.
2683 (remote_target::get_current_thread): Likewise.
2684 (remote_target::add_current_inferior_and_thread): Likewise.
2685
2686 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2687
2688 * remote.c (class remote_target)
2689 <remote_unpack_thread_info_response,
2690 parse_threadlist_response>: Constify parameter and/or return
2691 value and or local variable.
2692 (stub_unpack_int): Likewise.
2693 (unpack_nibble): Likewise.
2694 (unpack_byte): Likewise.
2695 (unpack_int): Likewise.
2696 (unpack_string): Likewise.
2697 (unpack_threadid): Likewise.
2698 (remote_target::remote_unpack_thread_info_response): Likewise.
2699 (remote_target::parse_threadlist_response): Likewise.
2700
2701 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2702
2703 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2704
2705 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
2706
2707 * MAINTAINERS (Write After Approval): Add myself.
2708
2709 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2710
2711 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2712 because is_trivially_default_constructible was first implemented with
2713 gcc-5.
2714
2715 2021-01-14 Tom de Vries <tdevries@suse.de>
2716
2717 PR breakpoints/27151
2718 * objfiles.h (in_plt_section): Handle .plt.sec.
2719
2720 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2721
2722 PR gdb/26819
2723 * remote.c
2724 (remote_target::select_thread_for_ambiguous_stop_reply): New
2725 member function.
2726 (remote_target::process_stop_reply): Call
2727 select_thread_for_ambiguous_stop_reply.
2728
2729 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
2730
2731 * record-btrace.c (class record_btrace_target): Remove.
2732 (record_btrace_target::commit_resume): Remove.
2733 * record-full.c (class record_full_target): Remove.
2734 (record_full_target::commit_resume): Remove.
2735
2736 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
2737
2738 * remote.c (enum class resume_state): New.
2739 (struct resumed_pending_vcont_info): New.
2740 (struct remote_thread_info) <resume_state, set_not_resumed,
2741 set_resumed_pending_vcont, resumed_pending_vcont_info,
2742 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2743 New.
2744 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2745 (remote_target::remote_add_thread): Adjust.
2746 (remote_target::process_initial_stop_replies): Adjust.
2747 (remote_target::resume): Adjust.
2748 (remote_target::commit_resume): Rely on state in
2749 remote_thread_info and not on tp->executing.
2750 (remote_target::process_stop_reply): Adjust.
2751
2752 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2753
2754 * arc-tdep.h (arc_debug_printf): New.
2755 * arc-tdep.c: Use arc_debug_printf.
2756 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2757 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2758 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2759
2760 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2761
2762 * arc-tdep.h (arc_debug): Change type to bool.
2763 * arc-tdep.c (arc_debug): Change type to bool.
2764 (arc_analyze_prologue): Adjust.
2765 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2766 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2767
2768 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2769
2770 * auto-load.c (auto_load_objfile_script_1): Use bool.
2771 (execute_script_contents): Use bool.
2772
2773 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2774
2775 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2776 comment here.
2777 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2778 comment to header.
2779 * extension-priv.h (struct extension_language_script_ops)
2780 <auto_load_enabled>: Return bool.
2781 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2782 comment here.
2783 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2784 comment to header.
2785 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2786 move comment here.
2787 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2788 move comment to header.
2789 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2790 move comment here.
2791 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2792 move comment to header.
2793
2794 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2795
2796 * auto-load.h (file_is_auto_load_safe): Change return type to
2797 bool, move comment here.
2798 * auto-load.c (file_is_auto_load_safe): Change return type and
2799 advice_printed to bool. Move comment to header.
2800
2801 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2802
2803 * jit.c (jit_debug_printf): New, use throughout file.
2804
2805 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2806
2807 * infrun.c (normal_stop): Fix indentation.
2808
2809 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2810
2811 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2812 declarations to ...
2813 * symfile.h: ... here.
2814 * symfile.c: Update doc.
2815
2816 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2817
2818 * target.h (baud_rate, serial_parity): Move declarations...
2819 * serial.h: ... here.
2820 * main.c: Include serial.h.
2821 * serial.c (baud_rate, serial_parity): Update doc.
2822
2823 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2824
2825 * top.c (pre_init_ui_hook): Remove.
2826
2827 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2828
2829 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2830 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2831 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2832 * features/aarch64-fpu.xml: Add bfloat16 type.
2833
2834 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2835
2836 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2837
2838 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2839
2840 * f-exp.y (dot_ops): Rename to...
2841 (fortran_operators): ...this. Add a header comment. Add symbol
2842 based operators.
2843 (yylex): Update to use fortran_operators not dot_ops. Remove
2844 special handling for '**', this is now included in
2845 fortran_operators.
2846
2847 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2848
2849 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2850 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2851 * aarch64-tdep.c: Use aarch64_debug_printf.
2852
2853 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2854
2855 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2856 file.
2857
2858 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2859
2860 * jit.c (jit_debug): Change type to bool.
2861 (_initialize_jit): Adjust.
2862
2863 2021-01-09 Tom Tromey <tom@tromey.com>
2864
2865 PR compile/23672
2866 * compile/compile.c (compile_to_object): Avoid crash when
2867 osabi_triplet_regexp returns NULL.
2868
2869 2021-01-09 Tom Tromey <tom@tromey.com>
2870
2871 * tracepoint.h (class collection_list) <append_exp>: Take a
2872 std::string.
2873 * tracepoint.c (collection_list::append_exp): Take a std::string.
2874 (encode_actions_1): Update.
2875
2876 2021-01-08 Tom Tromey <tromey@adacore.com>
2877
2878 * parse.c (parse_expression): Add void_context_p parameter. Use
2879 parse_exp_in_context.
2880 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2881 parse_expression.
2882 (print_command, call_command): Update.
2883 * expression.h (parse_expression): Add void_context_p parameter.
2884
2885 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2886
2887 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2888 for internalvar components that have a dynamic location.
2889
2890 2021-01-08 Tom de Vries <tdevries@suse.de>
2891
2892 PR gdb/26881
2893 * breakpoint.c (create_exception_master_breakpoint_probe)
2894 (create_exception_master_breakpoint_hook): Factor out
2895 of ...
2896 (create_exception_master_breakpoint): ... here. Only try to install
2897 the master exception breakpoint in objfile.debug using the
2898 _Unwind_DebugHook method, if the install using probes in objfile
2899 failed.
2900
2901 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2902
2903 * f-lang.c (fortran_value_subarray): Call value_from_component.
2904
2905 2021-01-07 Mike Frysinger <vapier@gentoo.org>
2906
2907 * remote-sim.c: Include memory-map.h.
2908 (gdbsim_target): Define memory_map override.
2909 (gdbsim_target::memory_map): Define.
2910
2911 2021-01-07 Tom Tromey <tromey@adacore.com>
2912
2913 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2914
2915 2021-01-07 Tom Tromey <tromey@adacore.com>
2916
2917 * ada-lang.c (add_component_interval): Start loop using vector's
2918 updated size.
2919
2920 2021-01-06 Tom Tromey <tromey@adacore.com>
2921
2922 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2923 Do not cast result.
2924 * valarith.c (fixed_point_binop): Handle multiplication
2925 and division specially.
2926 * valops.c (value_to_gdb_mpq): New function.
2927 (value_cast_to_fixed_point): Use it.
2928
2929 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2930
2931 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2932 Call wnoutrefresh instead of tui_win_info::refresh_window.
2933
2934 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2935
2936 * tui/tui-source.c (tui_source_window::show_line_number):
2937 Redraw second space after line number.
2938
2939 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2940
2941 PR tui/26927
2942 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2943 Fix source pad size in prefresh.
2944 (tui_source_window_base::show_source_content): Grow source pad
2945 if necessary.
2946
2947 2021-01-04 Mike Frysinger <vapier@gentoo.org>
2948
2949 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2950 (bfin_frame_align): Use align_down.
2951
2952 2021-01-04 Tom de Vries <tdevries@suse.de>
2953
2954 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2955 terminators that do not terminate anything.
2956
2957 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
2958
2959 * debug.c (debug_print_depth): New.
2960 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2961 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2962 * infrun.c (start_step_over): Use
2963 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2964 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2965 INFRUN_SCOPED_DEBUG_START_END.
2966 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2967
2968 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
2969
2970 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2971
2972 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
2973
2974 * utils.c (vfprintf_unfiltered): Print timestamp only when
2975 previous debug output ended with a newline.
2976
2977 2021-01-04 Luis Machado <luis.machado@linaro.org>
2978
2979 Update all users of trad_frame_saved_reg to use the new member
2980 functions.
2981
2982 Remote all struct keywords from declarations of trad_frame_saved_reg
2983 types, except on forward declarations.
2984
2985 * aarch64-tdep.c: Update.
2986 * alpha-mdebug-tdep.c: Update.
2987 * alpha-tdep.c: Update.
2988 * arc-tdep.c: Update.
2989 * arm-tdep.c: Update.
2990 * avr-tdep.c: Update.
2991 * cris-tdep.c: Update.
2992 * csky-tdep.c: Update.
2993 * frv-tdep.c: Update.
2994 * hppa-linux-tdep.c: Update.
2995 * hppa-tdep.c: Update.
2996 * hppa-tdep.h: Update.
2997 * lm32-tdep.c: Update.
2998 * m32r-linux-tdep.c: Update.
2999 * m32r-tdep.c: Update.
3000 * m68hc11-tdep.c: Update.
3001 * mips-tdep.c: Update.
3002 * moxie-tdep.c: Update.
3003 * riscv-tdep.c: Update.
3004 * rs6000-tdep.c: Update.
3005 * s390-linux-tdep.c: Update.
3006 * s390-tdep.c: Update.
3007 * score-tdep.c: Update.
3008 * sparc-netbsd-tdep.c: Update.
3009 * sparc-sol2-tdep.c: Update.
3010 * sparc64-fbsd-tdep.c: Update.
3011 * sparc64-netbsd-tdep.c: Update.
3012 * sparc64-obsd-tdep.c: Update.
3013 * sparc64-sol2-tdep.c: Update.
3014 * tilegx-tdep.c: Update.
3015 * v850-tdep.c: Update.
3016 * vax-tdep.c: Update.
3017
3018 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3019 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3020
3021 * trad-frame.c: Update.
3022 Remove TF_REG_* enum.
3023 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3024 a trivially-constructible struct.
3025 (trad_frame_reset_saved_regs): Adjust to use member function.
3026 (trad_frame_value_p): Likewise.
3027 (trad_frame_addr_p): Likewise.
3028 (trad_frame_realreg_p): Likewise.
3029 (trad_frame_value_bytes_p): Likewise.
3030 (trad_frame_set_value): Likewise.
3031 (trad_frame_set_realreg): Likewise.
3032 (trad_frame_set_addr): Likewise.
3033 (trad_frame_set_unknown): Likewise.
3034 (trad_frame_set_value_bytes): Likewise.
3035 (trad_frame_get_prev_register): Likewise.
3036 * trad-frame.h: Update.
3037 (trad_frame_saved_reg_kind): New enum.
3038 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3039 <m_kind, m_reg>: New member fields.
3040 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3041 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3042 <is_addr, is_unknown, is_value_bytes>: New member functions.
3043
3044 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3045
3046 * target-float.c: Fix typos.
3047
3048 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
3049
3050 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3051
3052 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3053
3054 * gdbarch.sh: Update copyright year range.
3055
3056 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3057
3058 Update copyright year range in copyright header of all GDB files.
3059
3060 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3061
3062 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3063 to the list of directories to update.
3064
3065 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3066
3067 * top.c (print_gdb_version): Update copyright year.
3068
3069 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3070
3071 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
3072
3073 For older changes see ChangeLog-2020.
3074 \f
3075 Local Variables:
3076 mode: change-log
3077 left-margin: 8
3078 fill-column: 74
3079 version-control: never
3080 coding: utf-8
3081 End:
This page took 0.153078 seconds and 5 git commands to generate.