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