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