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