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