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