Introduce var_value_operation
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e82a5afc
TT
12021-03-08 Tom Tromey <tom@tromey.com>
2
3 * expop.h (class var_value_operation): New.
4 * eval.c (var_value_operation::evaluate)
5 (var_value_operation::evaluate_for_address)
6 (var_value_operation::evaluate_with_coercion)
7 (var_value_operation::evaluate_for_sizeof)
8 (var_value_operation::evaluate_for_cast): New methods.
9 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
10
d9ad79d8
TT
112021-03-08 Tom Tromey <tom@tromey.com>
12
13 * expop.h (cxx_cast_ftype): New typedef.
14 (cxx_cast_operation): New template.
15 (dynamic_cast_operation, reinterpret_cast_operation): New
16 typedefs.
17
292382f4
TT
182021-03-08 Tom Tromey <tom@tromey.com>
19
20 * expop.h (class unop_cast_type_operation): New.
21 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
22 method.
23
165a813a
TT
242021-03-08 Tom Tromey <tom@tromey.com>
25
26 * expop.h (class unop_cast_operation): New.
27 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
28
e5946e16
TT
292021-03-08 Tom Tromey <tom@tromey.com>
30
31 * expop.h (class assign_modify_operation): New.
32 * eval.c (eval_binop_assign_modify): No longer static.
33 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
34
40786782
TT
352021-03-08 Tom Tromey <tom@tromey.com>
36
37 * expop.h (class assign_operation): New.
38 * ax-gdb.c (assign_operation::do_generate_ax): New method.
39
44b675c8
TT
402021-03-08 Tom Tromey <tom@tromey.com>
41
42 * expop.h (class type_instance_operation): New.
43 * eval.c (type_instance_operation::evaluate): New method.
44
f6b42326
TT
452021-03-08 Tom Tromey <tom@tromey.com>
46
47 * expop.h (class op_this_operation): New.
48 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
49
cbc18219
TT
502021-03-08 Tom Tromey <tom@tromey.com>
51
52 * expop.h (class unop_memval_operation)
53 (class unop_memval_type_operation): New.
54 * eval.c (eval_op_memval): No longer static.
55 (unop_memval_operation::evaluate_for_address)
56 (unop_memval_type_operation::evaluate_for_address)
57 (unop_memval_operation::evaluate_for_sizeof)
58 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
59 * ax-gdb.c (unop_memval_operation::do_generate_ax)
60 (unop_memval_type_operation::do_generate_ax): New methods.
61
ae4bb61e
TT
622021-03-08 Tom Tromey <tom@tromey.com>
63
64 * expop.h (class unop_alignof_operation): New.
65 * eval.c (eval_op_alignof): No longer static.
66
85d23bda
TT
672021-03-08 Tom Tromey <tom@tromey.com>
68
69 * expop.h (class unop_sizeof_operation): New.
70 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
71
14aff815
TT
722021-03-08 Tom Tromey <tom@tromey.com>
73
74 * expop.h (class unop_addr_operation): New.
75 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
76
929f3aa7
TT
772021-03-08 Tom Tromey <tom@tromey.com>
78
79 * expop.h (class typeid_operation): New.
80
0af8829e
TT
812021-03-08 Tom Tromey <tom@tromey.com>
82
83 * expop.h (class decltype_operation): New.
84
4efc574c
TT
852021-03-08 Tom Tromey <tom@tromey.com>
86
87 * expop.h (class typeof_operation): New.
88
5b5f5140
TT
892021-03-08 Tom Tromey <tom@tromey.com>
90
91 * expop.h (class type_operation): New.
92 * eval.c (eval_op_type): No longer static.
93
876469ff
TT
942021-03-08 Tom Tromey <tom@tromey.com>
95
96 * expop.h (class unop_ind_base_operation)
97 (class unop_ind_operation): New.
98 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
99 (unop_ind_base_operation::evaluate_for_address)
100 (unop_ind_base_operation::evaluate_for_sizeof): New method.
101 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
102
6d89e296
TT
1032021-03-08 Tom Tromey <tom@tromey.com>
104
105 * expop.h (unop_incr_operation): New template.
106 (preinc_operation, predec_operation, postinc_operation)
107 (postdec_operation): New typedefs.
108 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
109 (eval_op_postdec): No longer static.
110
9307d17b
TT
1112021-03-08 Tom Tromey <tom@tromey.com>
112
113 * expop.h (unary_ftype): New typedef.
114 (unop_operation, usual_ax_binop_operation): New templates.
115 (unary_plus_operation, unary_neg_operation)
116 (unary_complement_operation, unary_logical_not_operation): New
117 typedefs.
118 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
119 (eval_op_lognot): No longer static.
120 * ax-gdb.c (gen_expr_unop): New function.
121
ae64ba58
TT
1222021-03-08 Tom Tromey <tom@tromey.com>
123
124 * ax-gdb.c (comma_operation::do_generate_ax): New method.
125
d4eff4c1
TT
1262021-03-08 Tom Tromey <tom@tromey.com>
127
128 * expop.h (class repeat_operation): New.
129 * eval.c (eval_op_repeat): No longer static. Remove "op"
130 parameter.
131 (evaluate_subexp_standard): Update.
132 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
133
46916f2b
TT
1342021-03-08 Tom Tromey <tom@tromey.com>
135
136 * expop.h (class comparison_operation): New.
137 (equal_operation, notequal_operation, less_operation)
138 (gtr_operation, geq_operation, leq_operation): New typedefs.
139 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
140 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
141
224d6424
TT
1422021-03-08 Tom Tromey <tom@tromey.com>
143
144 * expop.h (class subscript_operation): New.
145 * eval.c (eval_op_subscript): No longer static.
146
373907ff
TT
1472021-03-08 Tom Tromey <tom@tromey.com>
148
149 * expop.h (class binop_operation, class usual_ax_binop_operation):
150 New.
151 (exp_operation, intdiv_operation, mod_operation, mul_operation)
152 (div_operation, rem_operation, lsh_operation, rsh_operation)
153 (bitwise_and_operation, bitwise_ior_operation)
154 (bitwise_xor_operation): New typedefs.
155 * eval.c (eval_op_binary): No longer static.
156
5133d78b
TT
1572021-03-08 Tom Tromey <tom@tromey.com>
158
159 * expop.h (class sub_operation): New.
160 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
161 (evaluate_subexp_standard): Update.
162
a94323b6
TT
1632021-03-08 Tom Tromey <tom@tromey.com>
164
165 * expop.h (class add_operation): New.
166 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
167 (evaluate_subexp_standard): Update.
168
e51e26a0
TT
1692021-03-08 Tom Tromey <tom@tromey.com>
170
171 * expop.h (class concat_operation): New.
172 * eval.c (eval_op_concat): No longer static. Remove "op"
173 parameter.
174 (evaluate_subexp_standard): Update.
175
07f724a8
TT
1762021-03-08 Tom Tromey <tom@tromey.com>
177
178 * expop.h (class structop_member_operation)
179 (class structop_mptr_operation): New.
180 * eval.c (eval_op_member): No longer static.
181
ab0609be
TT
1822021-03-08 Tom Tromey <tom@tromey.com>
183
184 * expop.h (class structop_ptr_operation): New.
185 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
186 parameter.
187
808b22cf
TT
1882021-03-08 Tom Tromey <tom@tromey.com>
189
190 * expop.h (class structop_base_operation)
191 (class structop_operation): New.
192 * eval.c (eval_op_structop_struct): No longer static.
193
8cfd3e95
TT
1942021-03-08 Tom Tromey <tom@tromey.com>
195
196 * expop.h (class complex_operation): New.
197
09db3700
TT
1982021-03-08 Tom Tromey <tom@tromey.com>
199
200 * eval.c (eval_op_objc_selector): No longer static.
201 * c-exp.h (class objc_selector_operation): New.
202
06dc61b9
TT
2032021-03-08 Tom Tromey <tom@tromey.com>
204
205 * eval.c: Include c-exp.h.
206 * c-exp.h (class objc_nsstring_operation): New.
207
72d0a711
TT
2082021-03-08 Tom Tromey <tom@tromey.com>
209
210 * c-lang.c (c_string_operation::evaluate): New method.
211 * c-exp.h: New file.
212
9186293f
TT
2132021-03-08 Tom Tromey <tom@tromey.com>
214
215 * expop.h (class ternop_cond_operation): New.
216 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
217
1594e0bb
TT
2182021-03-08 Tom Tromey <tom@tromey.com>
219
220 * expop.h (class ternop_slice_operation): New.
221 * eval.c (eval_op_ternop): No longer static.
222
b50db09f
TT
2232021-03-08 Tom Tromey <tom@tromey.com>
224
225 * expop.h (class string_operation): New.
226 * eval.c (eval_op_string): No longer static.
227
e6e01e16
TT
2282021-03-08 Tom Tromey <tom@tromey.com>
229
230 * expop.h (class internalvar_operation): New.
231 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
232
e6985c5e
TT
2332021-03-08 Tom Tromey <tom@tromey.com>
234
235 * expop.h (class bool_operation): New.
236
55bdbff8
TT
2372021-03-08 Tom Tromey <tom@tromey.com>
238
239 * expop.h (class register_operation): New.
240 * eval.c (eval_op_register): No longer static.
241 * ax-gdb.c (register_operation::do_generate_ax): New method.
242
247d935b
TT
2432021-03-08 Tom Tromey <tom@tromey.com>
244
245 * expop.h (class last_operation): New.
246
17679395
TT
2472021-03-08 Tom Tromey <tom@tromey.com>
248
249 * expop.h (class func_static_var_operation): New.
250 * eval.c (eval_op_func_static_var): No longer static.
251
b5cc3923
TT
2522021-03-08 Tom Tromey <tom@tromey.com>
253
254 * expop.h (class var_entry_value_operation): New.
255 * eval.c (eval_op_var_entry_value): No longer static.
256
0c8effa3
TT
2572021-03-08 Tom Tromey <tom@tromey.com>
258
259 * expression.h (class operation) <set_outermost>: New method.
260 * expop.h (class var_msym_value_operation): New.
261 * eval.c (eval_op_var_msym_value): No longer static.
262 (var_msym_value_operation::evaluate_for_address)
263 (var_msym_value_operation::evaluate_for_sizeof)
264 (var_msym_value_operation::evaluate_for_cast): New methods.
265 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
266 method.
267
d336c29e
TT
2682021-03-08 Tom Tromey <tom@tromey.com>
269
270 * expop.h (class long_const_operation): New.
271 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
272
d5ab122c
TT
2732021-03-08 Tom Tromey <tom@tromey.com>
274
275 * expop.h (class scope_operation): New.
276 * eval.c (eval_op_scope): No longer static.
277 (scope_operation::evaluate_for_address): New method.
278 * ax-gdb.c (scope_operation::do_generate_ax): New method.
279
cae26a0c
TT
2802021-03-08 Tom Tromey <tom@tromey.com>
281
282 * expprint.c (float_const_operation::dump): New method.
283 * expop.h (float_data): New typedef.
284 (class float_const_operation): New.
285
75f9892d
TT
2862021-03-08 Tom Tromey <tom@tromey.com>
287
288 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
289 * ax-gdb.c (gen_expr_binop): New function.
290 (gen_expr_structop): Likewise.
291
de401988
TT
2922021-03-08 Tom Tromey <tom@tromey.com>
293
294 * expprint.c (expr::dump_for_expression): New functions.
295 * expop.h (dump_for_expression): New overloads.
296 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
297 Update.
298
e2803273
TT
2992021-03-08 Tom Tromey <tom@tromey.com>
300
301 * expression.h (expr::operation): New class.
302 (expr::make_operation): New function.
303 (expr::operation_up): New typedef.
304 * expop.h: New file.
305 * eval.c (operation::evaluate_for_cast)
306 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
307 New methods.
308 * ax-gdb.c (operation::generate_ax): New method.
309
e18c58f2
TT
3102021-03-08 Tom Tromey <tom@tromey.com>
311
312 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
313 (gen_expr_binop_rest): New overload.
314
c0d7ed8c
TT
3152021-03-08 Tom Tromey <tom@tromey.com>
316
317 * eval.c (eval_multi_subscript): New function.
318 (evaluate_subexp_standard): Use it.
319
dd5fd283
TT
3202021-03-08 Tom Tromey <tom@tromey.com>
321
322 * ada-lang.c (ada_binop_exp): New function.
323 (ada_evaluate_subexp): Use it.
324
3848abd6
TT
3252021-03-08 Tom Tromey <tom@tromey.com>
326
327 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
328 parameters.
329 (ada_evaluate_subexp): Use it.
330
38dc70cf
TT
3312021-03-08 Tom Tromey <tom@tromey.com>
332
333 * ada-lang.c (ada_binop_minmax): New function.
334 (ada_evaluate_subexp): Use it.
335
b84564fc
TT
3362021-03-08 Tom Tromey <tom@tromey.com>
337
338 * ada-lang.c (ada_unop_atr): New function.
339 (ada_evaluate_subexp): Use it.
340
b467efaa
TT
3412021-03-08 Tom Tromey <tom@tromey.com>
342
343 * ada-lang.c (ada_binop_in_bounds): New function.
344 (ada_evaluate_subexp): Use it.
345
5ce19db8
TT
3462021-03-08 Tom Tromey <tom@tromey.com>
347
348 * ada-lang.c (ada_ternop_slice): New function.
349 (ada_evaluate_subexp): Use it.
350
214b13ac
TT
3512021-03-08 Tom Tromey <tom@tromey.com>
352
353 * ada-lang.c (ada_equal_binop): New function.
354 (ada_evaluate_subexp): Use it.
355
faa1dfd7
TT
3562021-03-08 Tom Tromey <tom@tromey.com>
357
358 * ada-lang.c (ada_mult_binop): New function.
359 (ada_evaluate_subexp): Use it.
360
d05e24e6
TT
3612021-03-08 Tom Tromey <tom@tromey.com>
362
363 * ada-lang.c (ada_abs): New function.
364 (ada_evaluate_subexp): Use it.
365
68c75735
TT
3662021-03-08 Tom Tromey <tom@tromey.com>
367
368 * ada-lang.c (ada_atr_size): New function.
369 (ada_evaluate_subexp): Use it.
370
020dbabe
TT
3712021-03-08 Tom Tromey <tom@tromey.com>
372
373 * ada-lang.c (ada_atr_tag): New function.
374 (ada_evaluate_subexp): Use it.
375
7efc87ff
TT
3762021-03-08 Tom Tromey <tom@tromey.com>
377
378 * ada-lang.c (ada_unop_in_range): New function.
379 (ada_evaluate_subexp): Use it.
380
82390ab8
TT
3812021-03-08 Tom Tromey <tom@tromey.com>
382
383 * ada-lang.c (ada_unop_neg): New function.
384 (ada_evaluate_subexp): Use it.
385
62d4bd94
TT
3862021-03-08 Tom Tromey <tom@tromey.com>
387
388 * ada-lang.c (eval_ternop_in_range): New function.
389 (ada_evaluate_subexp): Use it.
390
3634f669
TT
3912021-03-08 Tom Tromey <tom@tromey.com>
392
393 * opencl-lang.c (eval_opencl_assign): New function.
394 (evaluate_subexp_opencl): Use it.
395
5e80600e
TT
3962021-03-08 Tom Tromey <tom@tromey.com>
397
398 * eval.c (eval_op_objc_msgcall): New function.
399 (evaluate_subexp_standard): Use it.
400
fb5ba2ab
TT
4012021-03-08 Tom Tromey <tom@tromey.com>
402
403 * eval.c (eval_binop_assign_modify): New function.
404 (evaluate_subexp_standard): Use it.
405
a49881f7
TT
4062021-03-08 Tom Tromey <tom@tromey.com>
407
408 * m2-lang.c (eval_op_m2_subscript): New function.
409 (evaluate_subexp_modula2): Use it.
410
41bdced5
TT
4112021-03-08 Tom Tromey <tom@tromey.com>
412
413 * m2-lang.c (eval_op_m2_high): New function.
414 (evaluate_subexp_modula2): Use it.
415
13ea014a
TT
4162021-03-08 Tom Tromey <tom@tromey.com>
417
418 * eval.c (evaluate_subexp_for_address_base): New function.
419 (evaluate_subexp_for_address): Use it.
420 (evaluate_subexp_for_sizeof_base): New function.
421 (evaluate_subexp_for_sizeof): Use it.
422
1fa41fc7
TT
4232021-03-08 Tom Tromey <tom@tromey.com>
424
425 * rust-lang.c (eval_op_rust_structop): New function.
426 (rust_evaluate_subexp): Use it.
427
575cae23
TT
4282021-03-08 Tom Tromey <tom@tromey.com>
429
430 * rust-lang.c (eval_op_rust_struct_anon): New function.
431 (rust_evaluate_subexp): Use it.
432
05104233
TT
4332021-03-08 Tom Tromey <tom@tromey.com>
434
435 * rust-lang.c (eval_op_rust_array): New function.
436 (rust_evaluate_subexp): Use it.
437
6fa9831f
TT
4382021-03-08 Tom Tromey <tom@tromey.com>
439
440 * rust-lang.c (eval_op_rust_complement): New function.
441 (rust_evaluate_subexp): Use it.
442
d123f9e4
TT
4432021-03-08 Tom Tromey <tom@tromey.com>
444
445 * rust-lang.c (eval_op_rust_ind): New function.
446 (rust_evaluate_subexp): Use it.
447
984af2cb
TT
4482021-03-08 Tom Tromey <tom@tromey.com>
449
450 * rust-lang.c (rust_subscript): Change parameters.
451 (rust_evaluate_subexp): Update.
452
d148f803
TT
4532021-03-08 Tom Tromey <tom@tromey.com>
454
455 * rust-lang.c (rust_range): Change parameters.
456 (rust_evaluate_subexp): Update.
457
9cbd1c20
TT
4582021-03-08 Tom Tromey <tom@tromey.com>
459
460 * f-lang.c (eval_op_f_allocated): New function.
461 (evaluate_subexp_f): Use it.
462
3c18c49c
TT
4632021-03-08 Tom Tromey <tom@tromey.com>
464
465 * f-lang.c (fortran_require_array): New function.
466 (evaluate_subexp_f): Use it.
467
216f6fcb
TT
4682021-03-08 Tom Tromey <tom@tromey.com>
469
470 * f-lang.c (eval_op_f_kind): New function.
471 (evaluate_subexp_f): Use it.
472
00f2db6f
TT
4732021-03-08 Tom Tromey <tom@tromey.com>
474
475 * f-lang.c (eval_op_f_cmplx): New function.
476 (evaluate_subexp_f): Use it.
477
93b2b5fa
TT
4782021-03-08 Tom Tromey <tom@tromey.com>
479
480 * f-lang.c (eval_op_f_modulo): New function.
481 (evaluate_subexp_f): Use it.
482
9f1a1f3c
TT
4832021-03-08 Tom Tromey <tom@tromey.com>
484
485 * f-lang.c (eval_op_f_floor): New function.
486 (evaluate_subexp_f): Use it.
487
3dc41f3c
TT
4882021-03-08 Tom Tromey <tom@tromey.com>
489
490 * f-lang.c (eval_op_f_ceil): New function.
491 (evaluate_subexp_f): Use it.
492
e08109f2
TT
4932021-03-08 Tom Tromey <tom@tromey.com>
494
495 * f-lang.c (eval_op_f_mod): New function.
496 (evaluate_subexp_f): Use it.
497
cc05c68e
TT
4982021-03-08 Tom Tromey <tom@tromey.com>
499
500 * f-lang.c (eval_op_f_abs): New function.
501 (evaluate_subexp_f): Use it.
502
aec95807
TT
5032021-03-08 Tom Tromey <tom@tromey.com>
504
505 * eval.c (eval_op_type): New function.
506 (evaluate_subexp_standard): Use it.
507
a220ead5
TT
5082021-03-08 Tom Tromey <tom@tromey.com>
509
510 * eval.c (eval_op_postdec): New function.
511 (evaluate_subexp_standard): Use it.
512
abffe116
TT
5132021-03-08 Tom Tromey <tom@tromey.com>
514
515 * eval.c (eval_op_postinc): New function.
516 (evaluate_subexp_standard): Use it.
517
9e1361b7
TT
5182021-03-08 Tom Tromey <tom@tromey.com>
519
520 * eval.c (eval_op_predec): New file.
521 (evaluate_subexp_standard): Use it.
522
00f50884
TT
5232021-03-08 Tom Tromey <tom@tromey.com>
524
525 * eval.c (eval_op_preinc): New function.
526 (evaluate_subexp_standard): Use it.
527
3aef2a07
TT
5282021-03-08 Tom Tromey <tom@tromey.com>
529
530 * eval.c (eval_op_memval): New function.
531 (evaluate_subexp_standard): Use it.
532
acee9468
TT
5332021-03-08 Tom Tromey <tom@tromey.com>
534
535 * eval.c (eval_op_alignof): New function.
536 (evaluate_subexp_standard): Use it.
537
786f70ee
TT
5382021-03-08 Tom Tromey <tom@tromey.com>
539
540 * eval.c (eval_op_ind): New function.
541 (evaluate_subexp_standard): Use it.
542
24338fb9
TT
5432021-03-08 Tom Tromey <tom@tromey.com>
544
545 * eval.c (eval_op_lognot): New function.
546 (evaluate_subexp_standard): Use it.
547
1f09ec81
TT
5482021-03-08 Tom Tromey <tom@tromey.com>
549
550 * eval.c (eval_op_complement): New function.
551 (evaluate_subexp_standard): Use it.
552
606d105f
TT
5532021-03-08 Tom Tromey <tom@tromey.com>
554
555 * eval.c (eval_op_neg): New function.
556 (evaluate_subexp_standard): Use it.
557
39f288be
TT
5582021-03-08 Tom Tromey <tom@tromey.com>
559
560 * eval.c (eval_op_plus): New function.
561 (evaluate_subexp_standard): Use it.
562
eed70b1c
TT
5632021-03-08 Tom Tromey <tom@tromey.com>
564
565 * eval.c (eval_op_repeat): New function.
566 (evaluate_subexp_standard): Use it.
567
60cdd487
TT
5682021-03-08 Tom Tromey <tom@tromey.com>
569
570 * eval.c (eval_op_leq): New function.
571 (evaluate_subexp_standard): Use it.
572
96e3efd9
TT
5732021-03-08 Tom Tromey <tom@tromey.com>
574
575 * eval.c (eval_op_geq): New function.
576 (evaluate_subexp_standard): Use it.
577
1f78d732
TT
5782021-03-08 Tom Tromey <tom@tromey.com>
579
580 * eval.c (eval_op_gtr): New function.
581 (evaluate_subexp_standard): Use it.
582
6cad1349
TT
5832021-03-08 Tom Tromey <tom@tromey.com>
584
585 * eval.c (eval_op_less): New function.
586 (evaluate_subexp_standard): Use it.
587
1fcb3559
TT
5882021-03-08 Tom Tromey <tom@tromey.com>
589
590 * eval.c (eval_op_notequal): New function.
591 (evaluate_subexp_standard): Use it.
592
0cc96de8
TT
5932021-03-08 Tom Tromey <tom@tromey.com>
594
595 * eval.c (eval_op_equal): New function.
596 (evaluate_subexp_standard): Use it.
597
288d26bc
TT
5982021-03-08 Tom Tromey <tom@tromey.com>
599
600 * eval.c (eval_op_subscript): New function.
601 (evaluate_subexp_standard): Use it.
602
7cdcdd02
TT
6032021-03-08 Tom Tromey <tom@tromey.com>
604
605 * eval.c (eval_op_binary): New function.
606 (evaluate_subexp_standard): Use it.
607
d9790e22
TT
6082021-03-08 Tom Tromey <tom@tromey.com>
609
610 * eval.c (eval_op_sub): New function.
611 (evaluate_subexp_standard): Use it.
612
aedaf9ac
TT
6132021-03-08 Tom Tromey <tom@tromey.com>
614
615 * eval.c (eval_op_add): New function.
616 (evaluate_subexp_standard): Use it.
617
b7a96ed2
TT
6182021-03-08 Tom Tromey <tom@tromey.com>
619
620 * eval.c (eval_op_member): New function.
621 (evaluate_subexp_standard): Use it.
622
fb461aa3
TT
6232021-03-08 Tom Tromey <tom@tromey.com>
624
625 * eval.c (eval_op_structop_ptr): New function.
626 (evaluate_subexp_standard): Use it.
627
3e96c4fc
TT
6282021-03-08 Tom Tromey <tom@tromey.com>
629
630 * eval.c (eval_op_structop_struct): New function.
631 (evaluate_subexp_standard): Use it.
632
f960a617
TT
6332021-03-08 Tom Tromey <tom@tromey.com>
634
635 * eval.c (eval_op_ternop): New function.
636 (evaluate_subexp_standard): Use it.
637
5c2f201e
TT
6382021-03-08 Tom Tromey <tom@tromey.com>
639
640 * eval.c (eval_op_concat): New function.
641 (evaluate_subexp_standard): Use it.
642
f871bae1
TT
6432021-03-08 Tom Tromey <tom@tromey.com>
644
645 * eval.c (eval_op_objc_selector): New function.
646 (evaluate_subexp_standard): Use it.
647
14a1c64a
TT
6482021-03-08 Tom Tromey <tom@tromey.com>
649
650 * eval.c (eval_op_string): New function.
651 (evaluate_subexp_standard): Use it.
652
ffff730b
TT
6532021-03-08 Tom Tromey <tom@tromey.com>
654
655 * eval.c (eval_op_register): New function.
656 (evaluate_subexp_standard): Use it.
657
9b1d8af6
TT
6582021-03-08 Tom Tromey <tom@tromey.com>
659
660 * eval.c (eval_op_func_static_var): New function.
661 (evaluate_subexp_standard): Use it.
662
c0df9289
TT
6632021-03-08 Tom Tromey <tom@tromey.com>
664
665 * eval.c (eval_op_var_msym_value): New function.
666 (evaluate_subexp_standard): Use it.
667
50b98adc
TT
6682021-03-08 Tom Tromey <tom@tromey.com>
669
670 * eval.c (eval_op_var_entry_value): New function.
671 (evaluate_subexp_standard): Use it.
672
ea2d29f7
TT
6732021-03-08 Tom Tromey <tom@tromey.com>
674
675 * eval.c (eval_op_scope): New function.
676 (evaluate_subexp_standard): Use it.
677
01573d73
TT
6782021-03-06 Chernov Sergey <klen_s@mail.ru>
679
680 PR gdb/27528:
681 * ada-lang.c (ada_fold_name): Use gdb::to_string.
682
9938d15a
TT
6832021-03-06 Tom Tromey <tom@tromey.com>
684
685 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
686 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
687 * dwarf2/read.c (dwarf2_elf_names): No longer static.
688 (locate_dwz_sections, dwz_search_other_debugdirs)
689 (dwarf2_get_dwz_file): Move to dwz.c.
690 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
691 read.h.
692 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
693 (dwarf2_get_dwz_file): Move from read.c.
694
18035655
TT
6952021-03-06 Tom Tromey <tom@tromey.com>
696
697 * debuginfod-support.h: Include scoped_fd.h.
698
a7308ce0
TT
6992021-03-06 Tom Tromey <tom@tromey.com>
700
701 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
702 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
703 (get_abbrev_section_for_cu, read_attribute_value)
704 (get_debug_line_section): Update.
705 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
706
fbedd546
TT
7072021-03-06 Tom Tromey <tom@tromey.com>
708
709 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
710 method.
711 * dwarf2/read.c (section_is_p): Remove.
712 (dwarf2_per_bfd::locate_sections)
713 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
714 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
715 (dwarf2_locate_common_dwp_sections)
716 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
717 Update.
718
c2a62a3d
TT
7192021-03-06 Tom Tromey <tom@tromey.com>
720
721 * xcoffread.c: Include sect-names.h.
722 * symfile.h (struct dwarf2_section_names, struct
723 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
724 * dwarf2/sect-names.h: New file, from symfile.h.
725 * dwarf2/read.c: Include sect-names.h.
726
4444f407
TT
7272021-03-06 Tom Tromey <tom@tromey.com>
728
729 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
730 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
731 (abbrev_table::read): Update.
732 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
733 (struct abbrev_info): Reformat.
734 <attrs>: Now an array.
735 (struct abbrev_table) <alloc_abbrev>: Remove.
736
dd99cf0c
WP
7372021-03-06 Weimin Pan <weimin.pan@oracle.com>
738
739 * ctfread.c (ctf_psymtab_add_enums): New function.
740 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
741
844be3f2
WP
7422021-03-06 Weimin Pan <weimin.pan@oracle.com>
743
744 * ctfread.c (read_func_kind_type): Set up function arguments.
745
b2668f28
AB
7462021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
747 Andrew Burgess <andrew.burgess@embecosm.com>
748
749 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
750 includes.
751 (riscv_csrset): New static global.
752 (riscv_update_csrmap): New function.
753 (riscv_iterate_over_regset_sections): Process CSRs.
754
d782d24b
AB
7552021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * riscv-tdep.c (riscv_feature_name_csr): Define.
758 (riscv_feature_name_cpu): Define.
759 (riscv_feature_name_fpu): Define.
760 (riscv_feature_name_virtual): Define.
761 (riscv_xreg_feature): Use riscv_feature_name_cpu.
762 (riscv_freg_feature): Use riscv_feature_name_fpu.
763 (riscv_virtual_feature): Use riscv_feature_name_virtual.
764 (riscv_csr_feature): Use riscv_feature_name_csr.
765 * riscv-tdep.h (riscv_feature_name_csr): Declare.
766
fb8f3fc0
AB
7672021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
768 Craig Blackmore <craig.blackmore@embecosm.com>
769
770 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
771 (ALLDEPFILES): Add riscv-none-tdep.c.
772 * configure: Regenerate.
773 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
774 support.
775 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
776 * elf-none-tdep.c: New file.
777 * elf-none-tdep.h: New file.
778 * riscv-none-tdep.c: New file.
779
95ce627a
AB
7802021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
781 Andrew Burgess <andrew.burgess@embecosm.com>
782
783 * corelow.c: Add 'xml-tdesc.h' include.
784 (core_target::read_description): Load the target description from
785 the core file when possible.
786 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
787 note.
788 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
789 (gcore_elf_make_tdesc_note): New function.
790 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
791 * linux-tdep.c (linux_make_corefile_notes): Add target description
792 note.
793
f3a5df7b
AB
7942021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
795
796 * Makefile.in (SFILES): Add gcore-elf.c.
797 (HFILES_NO_SRCDIR): Add gcore-elf.h
798 * configure: Regenerate.
799 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
800 support.
801 * fbsd-tdep.c: Add 'gcore-elf.h' include.
802 (struct fbsd_collect_regset_section_cb_data): Delete.
803 (fbsd_collect_regset_section_cb): Delete.
804 (fbsd_collect_thread_registers): Delete.
805 (struct fbsd_corefile_thread_data): Delete.
806 (fbsd_corefile_thread): Delete.
807 (fbsd_make_corefile_notes): Call
808 gcore_elf_build_thread_register_notes instead of the now deleted
809 FreeBSD code.
810 * gcore-elf.c: New file, the content was moved here from
811 linux-tdep.c, functions were renamed and given minor cleanup.
812 * gcore-elf.h: New file.
813 * gcore.c (gcore_find_signalled_thread): Moved here from
814 linux-tdep.c and given a new name. Minor cleanups.
815 * gcore.h (gcore_find_signalled_thread): Declare.
816 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
817 (struct linux_collect_regset_section_cb_data): Delete.
818 (linux_collect_regset_section_cb): Delete.
819 (linux_collect_thread_registers): Delete.
820 (linux_corefile_thread): Call
821 gcore_elf_build_thread_register_notes.
822 (find_signalled_thread): Delete.
823 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
824
d1e93af6
SM
8252021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
826
827 PR gdb/27147
828 * sparc-nat.h (sparc_fetch_inferior_registers): Add
829 process_stratum_target parameter,
830 sparc_store_inferior_registers): update callers.
831 * sparc-nat.c (sparc_fetch_inferior_registers,
832 sparc_store_inferior_registers): Add process_stratum_target
833 parameter. Switch current thread before calling
834 sparc_supply_gregset / sparc_collect_rwindow.
835 (sparc_store_inferior_registers): Likewise.
836 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
837 (sparc32obsd_collect_uthread): Likewise.
838 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
839 Add assertion.
840 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
841 sparc64obsd_supply_uthread): Add assertion.
842
1178743e
TT
8432021-03-04 Tom Tromey <tromey@adacore.com>
844
845 * ada-lang.c (struct match_data) <found_sym>: Now bool.
846 (aux_add_nonlocal_symbols): Update.
847 (ada_add_block_symbols): Change "found_sym" to bool.
848
1bfa81ac
TT
8492021-03-03 Tom Tromey <tromey@adacore.com>
850
851 * ada-lang.c (ada_resolve_function): Update comment.
852 (is_nonfunction, add_symbols_from_enclosing_procs)
853 (remove_extra_symbols): Likewise.
854 (struct match_data): Add constructor, initializers.
855 (add_nonlocal_symbols): Remove memset.
856 (aux_add_nonlocal_symbols): Update comment.
857 (ada_add_block_renamings, add_nonlocal_symbols)
858 (ada_add_all_symbols): Likewise.
859 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
860
bbcdf9ab
TT
8612021-03-02 Tom Tromey <tromey@adacore.com>
862
863 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
864 (cast_to_gnat_encoded_fixed_point_type): Remove.
865 (ada_value_cast, ada_evaluate_subexp): Update.
866 (gnat_encoded_fixed_point_type_info)
867 (ada_is_gnat_encoded_fixed_point_type)
868 (gnat_encoded_fixed_point_delta)
869 (gnat_encoded_fixed_point_scaling_factor): Remove.
870 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
871 (gnat_encoded_fixed_point_delta)
872 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
873 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
874 (ada_print_type): Update.
875 * ada-valprint.c (ada_value_print_num): Update.
876 * dwarf2/read.c (ada_get_gnat_encoded_number)
877 (ada_get_gnat_encoded_ratio): New functions.
878 (finish_fixed_point_type): Use them. Add parameters.
879 (GNAT_FIXED_POINT_SUFFIX): New define.
880 (gnat_encoded_fixed_point_type_info): New function.
881 (read_base_type): Handle gnat encodings.
882
5f9febe0
TT
8832021-03-02 Tom Tromey <tromey@adacore.com>
884
885 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
886 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
887 std::string.
888 (GROW_VECT): Remove.
889 (grow_vect): Remove.
890
d1183b06
TT
8912021-03-02 Tom Tromey <tromey@adacore.com>
892
893 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
894 * ada-lang.c (resolve_subexp): Update.
895 (ada_resolve_function): Accept a vector.
896 (is_nonfunction, add_defn_to_vec)
897 (add_symbols_from_enclosing_procs): Likewise.
898 (num_defns_collected, defns_collected): Remove.
899 (remove_extra_symbols): Return a vector.
900 (remove_irrelevant_renamings): Return void.
901 (ada_add_local_symbols): Accept a vector.
902 (struct match_data) <obstackp>: Remove.
903 <resultp>: New member.
904 (aux_add_nonlocal_symbols): Update.
905 (ada_add_block_renamings, add_nonlocal_symbols)
906 (ada_add_all_symbols): Accept a vector.
907 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
908 vector.
909 (ada_lookup_symbol): Update.
910 (ada_add_block_symbols): Accept a vector.
911 (get_var_value, iterate_over_symbols): Update.
912 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
913 Update.
914
886d459f
TT
9152021-03-02 Tom Tromey <tromey@adacore.com>
916
917 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
918
bdcccc56
TT
9192021-03-02 Tom Tromey <tromey@adacore.com>
920
921 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
922 auto_obstack.
923 <root>: Initialize.
924 (ada_pspace_data): Remove destructor.
925 <sym_cache>: Now a unique_ptr.
926 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
927 (ada_get_symbol_cache): Use 'new'.
928 (ada_clear_symbol_cache): Rewrite.
929
1228719f
TT
9302021-03-02 Tom Tromey <tromey@adacore.com>
931
932 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
933 is null.
934
bb3a4efe
LS
9352021-02-27 Lancelot Six <lsix@lancelotsix.com>
936
937 PR gdb/27393
938 * source.c (add_path): Skip empty dirnames.
939
26b43ca6 9402021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
941
942 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
943 include order for <sys/ptrace.h> and <asm/ptrace.h>.
944
dffdd8b5
SM
9452021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
946
947 PR gdb/26861
948 * target.c (target_mourn_inferior): Only compare pids in
949 target_mourn_inferior.
950
64d38fdd
JM
9512021-02-25 Jan Matyas <jmatyas@codasip.com>
952
953 PR gdb/26819
954 * remote.c (remote_target::start_remote): Ensure the single
955 thread, automatically added for remote targets without the
956 concept of threading, is initially in set to the "resumed"
957 state.
958 * remote.c (remote_target::add_current_inferior_and_thread):
959 Add return value - return the main thread.
960
2450ad54
JV
9612021-02-25 Jan Vrany <jan.vrany@labware.com>
962
963 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
964 (mi_tsv_created): Likewise.
965 (mi_tsv_deleted): Likewise.
966
30c80d88
TV
9672021-02-25 Tom de Vries <tdevries@suse.de>
968
969 PR symtab/27354
970 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
971 section_kind for &dwo_file->sections.info.
972
68337b8b
AB
9732021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
974
975 PR fortran/26155
976 * f-lang.c (fortran_argument_convert): Delete declaration.
977 (fortran_prepare_argument): New function.
978 (evaluate_subexp_f): Move logic to new function
979 fortran_prepare_argument.
980
faeb9f13
AB
9812021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
982
983 * f-exp.y (f77_keywords): Add 'associated'.
984 * f-lang.c (fortran_associated): New function.
985 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
986 (operator_length_f): Likewise.
987 (print_unop_or_binop_subexp_f): New function.
988 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
989 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
990 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
991 (operator_check_f): Likewise.
992 * std-operator.def: Add FORTRAN_ASSOCIATED.
993
170f4b23
AB
9942021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
995
996 * f-exp.y (fortran_operators): Add ".xor.".
997
aa659cfa
TV
9982021-02-24 Tom de Vries <tdevries@suse.de>
999
1000 PR symtab/27336
1001 * dwarf2/attribute.c (attribute::form_is_signed): New function
1002 factored out of ...
1003 * dwarf2/attribute.h (attribute::as_signed): ... here.
1004 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1005 (attribute::form_is_signed): Declare.
1006 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1007 for DW_AT_decl_file.
1008
268c77c1
KB
10092021-02-24 Kevin Buettner <kevinb@redhat.com>
1010
1011 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1012 order for <sys/ptrace.h> and <asm/ptrace.h>.
1013
665af52e
KB
10142021-02-24 Kevin Buettner <kevinb@redhat.com>
1015
1016 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1017 <sys/ptrace.h>.
1018
dd80d750
AB
10192021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1020
1021 * exec.c (set_section_command): Move variable declarations into
1022 the function body, and use std::string instead of a fixed size
1023 buffer.
1024
336aa7b7
AB
10252021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1026
1027 * exec.c (exec_target::get_section_table): Delete member function.
1028 (section_table_read_available_memory): Use current_top_target, not
1029 just the exec_ops target.
1030 * target-delegates.c: Regenerate.
1031 * target.c (default_get_section_table): New function.
1032 * target.h (target_ops::get_section_table): Change default
1033 behaviour to call default_get_section_table.
1034 (default_get_section_table): Declare.
1035
02f7d26b
AB
10362021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1037
1038 * exec.c (exec_target::close): Call new clear_target_sections
1039 function.
1040 (program_space::add_target_sections): Update name of member
1041 variable.
1042 (program_space::add_target_sections): Update name of member
1043 variable.
1044 (program_space::remove_target_sections): Likewise.
1045 (exec_one_fork): Use new target_sections member function.
1046 (exec_target::get_section_table): Likewise.
1047 (exec_target::files_info): Likewise.
1048 (set_section_command): Likewise.
1049 (exec_set_section_address): Likewise.
1050 (exec_target::has_memory): Use new target_sections member
1051 function.
1052 * progspace.h (program_space::clear_target_sections): New member
1053 function.
1054 (program_space::target_sections): Rename member variable to
1055 m_target_sections, replace with a new member function.
1056 (program_space::m_target_sections): New member variable.
1057 * solib-dsbt.c (scan_dyntag): Use new member function.
1058 * solib-svr4.c (scan_dyntag): Likewise.
1059
19cf757a
AB
10602021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1061
1062 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1063 return type const.
1064 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1065 (section_table_read_available_memory): Make local const.
1066 (exec_target::xfer_partial): Make local const.
1067 (print_section_info): Make parameter const.
1068 * gdb/exec.h (print_section_info): Likewise.
1069 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1070 const.
1071 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1072 Likewise.
1073 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1074 Likewise.
1075 * gdb/s390-tdep.c (s390_load): Likewise.
1076 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1077 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1078 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1079 Rename to...
1080 (target_debug_print_const_target_section_table_p): ...this.
1081 * gdb/target-delegates.c: Regenerate.
1082 * gdb/target.c (target_get_section_table): Make return type const.
1083 (target_section_by_addr): Likewise. Also make some locals const.
1084 (memory_xfer_partial_1): Make some locals const.
1085 * gdb/target.h (struct target_ops) <get_section_table>: Make
1086 return type const.
1087 (target_section_by_addr): Likewise.
1088 (target_get_section_table): Likewise.
1089
02a79309
AB
10902021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1091
1092 * NEWS: Mention new 'maint info target-sections' command.
1093 * maint.c (maintenance_info_target_sections): New function.
1094 (_initialize_maint_cmds): Register new command.
1095
895b7b4e
AB
10962021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1097
1098 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1099 (riscv_features_from_bfd): ...this. Change parameter type to
1100 'bfd*', and update as required.
1101 (riscv_find_default_target_description): Update call to
1102 riscv_features_from_bfd. Select a default xlen based on
1103 info.bfd_arch_info.
1104 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1105
bc3c0632
AB
11062021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1107
1108 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1109 dynamic types in UNOP_IND.
1110
08ac5771
SM
11112021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1112
1113 PR gdb/26828
1114 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1115 Instantiate queue.
1116 (~dwarf2_queue_guard): Clear queue.
1117 (queue_comp_unit): Assert that queue is
1118 instantiated.
1119 (process_queue): Adjust.
1120 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1121
616c069a
SM
11222021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1123
1124 PR gdb/26828
1125 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1126 to decide whether or not to enqueue it for expansion.
1127 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1128 after calling maybe_queue_comp_unit.
1129
897608ed
SM
11302021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1131
1132 * linux-nat.c (linux_nat_filter_event): Return void.
1133
15908a11
TT
11342021-02-22 Tom Tromey <tromey@adacore.com>
1135
1136 * solib-svr4.c (enable_break): Update.
1137 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1138 type.
1139 (target_bfd_reopen): Change parameter type.
1140 * bfd-target.h (target_bfd_reopen): Change parameter type.
1141
f53fc427
SM
11422021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1143
1144 * thread.c (add_thread_silent): Add assert.
1145 (find_thread_ptid): Add assert.
1146
de146e19
SM
11472021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1148
1149 PR gdb/27435
1150 * inf-ptrace.c (struct target_unpusher): Move to target.h.
1151 (target_unpush_up): Likewise.
1152 * procfs.c (procfs_target::attach): Push target early. Use
1153 target_unpush_up to unpush target in case of error.
1154 * target.h (struct target_unpusher): Move here.
1155 (target_unpush_up): Likewise.
1156
8488c357
KB
11572021-02-19 Kevin Buettner <kevinb@redhat.com>
1158
1159 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
1160 (which in turn includes <gnulib/config.h>) before include
1161 of <signal.h>.
1162
5a9f5403
NC
11632021-02-19 Nelson Chu <nelson.chu@sifive.com>
1164
1165 PR 27158
1166 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
1167 (decode_j_type_insn): Likewise.
1168 (decode_cj_type_insn): Likewise.
1169 (decode_b_type_insn): Likewise.
1170 (decode): Likewise.
1171
26f53cd3
TT
11722021-02-18 Tom Tromey <tom@tromey.com>
1173
1174 * expression.h (struct expression) <evaluate>: Declare method.
1175 * eval.c (evaluate_subexp): Simplify.
1176 (expression::evaluate): New method.
1177 (evaluate_expression, evaluate_type): Use expression::evaluate.
1178
6a780b67
KB
11792021-02-17 Kevin Buettner <kevinb@redhat.com>
1180
1181 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1182 to accessing it.
1183 (ada_lookup_name_info): Likewise.
1184
adeab0c5
MF
11852021-02-13 Mike Frysinger <vapier@gentoo.org>
1186
1187 * aclocal.m4: Regenerate.
1188
089436f7
TV
11892021-02-12 Tom de Vries <tdevries@suse.de>
1190
1191 PR threads/26228
1192 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1193 (lin_thread_signals): New static var.
1194 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1195 New function.
1196 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1197 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1198 Declare.
1199 * linux-thread-db.c (check_thread_signals): Use
1200 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1201
96df3e28
AB
12022021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1203
1204 * f-exp.y (f77_keywords): Add allocated.
1205 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
1206 (operator_length_f): Likewise.
1207 (print_subexp_f): Likewise.
1208 (dump_subexp_body_f): Likewise.
1209 (operator_check_f): Likewise.
1210 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
1211
05f68f52
TV
12122021-02-11 Tom de Vries <tdevries@suse.de>
1213
1214 PR symtab/27353
1215 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
1216 Return true for DW_FORM_strx.
1217
b260f8d6
TT
12182021-02-11 Tom Tromey <tromey@adacore.com>
1219
1220 PR gdb/27383:
1221 * parse.c (write_exp_symbol_reference): Write sym.block.
1222
bf3386f0
AB
12232021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1224
1225 * NEWS: Mention changes to 'maint info sections'.
1226 * maint.c (match_substring): Return a bool, fix whitespace issue.
1227 (struct single_bfd_flag_info): New struct.
1228 (bfd_flag_info): New static global.
1229 (match_bfd_flags): Return a bool, use bfd_flag_info.
1230 (print_bfd_flags): Use bfd_flag_info.
1231 (maint_print_section_info): Delete trailing whitespace.
1232 (struct maint_info_sections_opts): New struct.
1233 (maint_info_sections_option_defs): New static global.
1234 (maint_info_sections_completer): New function.
1235 (maintenance_info_sections): Use option parsing mechanism.
1236 (_initialize_maint_cmds): Update command help text for 'maint info
1237 sections' and register a command completer.
1238
4790db14
AB
12392021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1240
1241 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
1242 functionality merged into...
1243 (maint_print_all_sections): ...this new function.
1244 (maintenance_info_sections): Make use of maint_print_all_sections,
1245 allow all objects to be printed even where there's no executable.
1246
1db66e34
AB
12472021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1248
1249 * breakpoint.c (resolve_sal_pc): Make use of
1250 bound_minimal_symbol::obj_section.
1251 * maint.c (maintenance_translate_address): Likewise.
1252 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1253 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1254 member function.
1255 * printcmd.c (info_address_command): Make use of
1256 bound_minimal_symbol::obj_section.
1257
18b8df43
AM
12582021-02-11 Alan Modra <amodra@gmail.com>
1259
1260 * arm-symbian-tdep.c: Delete.
1261 * NEWS: Mention arm-symbian removal.
1262 * Makefile.in: Remove arm-symbian-tdep entries.
1263 * configure.tgt: Remove arm*-*-symbianelf*.
1264 * doc/gdb.texinfo: Remove mention of SymbianOS.
1265 * osabi.c (gdb_osabi_names): Remove "Symbian".
1266 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
1267 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
1268 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
1269 handling.
1270 * testsuite/gdb.base/dup-sect.exp: Likewise.
1271 * testsuite/gdb.base/long_long.exp: Likewise.
1272 * testsuite/gdb.base/solib-weak.exp: Likewise.
1273 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
1274 * testsuite/gdb.python/py-section-script.exp: Likewise.
1275 * testsuite/lib/dwarf.exp: Likewise.
1276 * testsuite/lib/gdb.exp: Likewise.
1277
e92c8eb8
AB
12782021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1279
1280 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
1281 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
1282 (one_or_two_args): New pattern.
1283 (f77_keywords): Add lbound and ubound.
1284 * f-lang.c (fortran_bounds_all_dims): New function.
1285 (fortran_bounds_for_dimension): New function.
1286 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
1287 (operator_length_f): Likewise.
1288 (print_subexp_f): Likewise.
1289 (dump_subexp_body_f): Likewise.
1290 (operator_check_f): Likewise.
1291 * std-operator.def (FORTRAN_LBOUND): Define.
1292 (FORTRAN_UBOUND): Define.
1293
a52d653e
AB
12942021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1295
1296 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
1297 and set_section_index member functions where appropriate.
1298 * coffread.c (coff_symtab_read): Likewise.
1299 (process_coff_symbol): Likewise.
1300 * ctfread.c (set_symbol_address): Likewise.
1301 * dwarf2/read.c (add_partial_symbol): Likewise.
1302 (var_decode_location): Likewise.
1303 * language.c: Likewise.
1304 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
1305 (compact_minimal_symbols): Likewise.
1306 (minimal_symbol_upper_bound): Likewise.
1307 * objfiles.c (relocate_one_symbol): Likewise.
1308 * psympriv.h (partial_symbol::obj_section): Likewise.
1309 (partial_symbol::address): Likewise.
1310 * psymtab.c (partial_symtab::add_psymbol): Likewise.
1311 * stabsread.c (scan_file_globals): Likewise.
1312 * symmisc.c (dump_msymbols): Likewise.
1313 * symtab.c (general_symbol_info::obj_section): Likewise.
1314 (fixup_section): Likewise.
1315 (get_msymbol_address): Likewise.
1316 * symtab.h (general_symbol_info::section): Rename to...
1317 (general_symbol_info::m_section): ...this.
1318 (general_symbol_info::set_section_index): New member function.
1319 (general_symbol_info::section_index): Likewise.
1320 (SYMBOL_SECTION): Delete.
1321 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1322 set_section_index member functions where appropriate.
1323 (MSYMBOL_SECTION): Delete.
1324 (symbol::symbol): Update to initialize 'm_section'.
1325 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1326 (process_xcoff_symbol): Likewise.
1327
ebbc3a7d
AB
13282021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1329
1330 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1331 MSYMBOL_OBJ_SECTION.
1332 * findvar.c (language_defn::read_var_value): Likewise.
1333 * infcmd.c (jump_command): Likewise.
1334 * linespec.c (minsym_found): Likewise.
1335 * maint.c (maintenance_translate_address): Likewise.
1336 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1337 (minimal_symbol_upper_bound): Likewise.
1338 * parse.c (find_minsym_type_and_address): Likewise.
1339 (operator_check_standard): Likewise.
1340 * printcmd.c (info_address_command): Likewise.
1341 * symmisc.c (dump_msymbols): Likewise.
1342 (print_symbol): Likewise.
1343 * symtab.c (general_symbol_info::obj_section): Define new
1344 function.
1345 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1346 (find_pc_sect_compunit_symtab): Likewise.
1347 (find_function_start_sal): Likewise.
1348 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1349 MSYMBOL_OBJ_SECTION.
1350 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1351 function.
1352 (SYMBOL_OBJ_SECTION): Delete.
1353 (MSYMBOL_OBJ_SECTION): Delete.
1354
9bb305b3
TT
13552021-02-09 Tom Tromey <tom@tromey.com>
1356
1357 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1358
cf2b2075
TV
13592021-02-09 Tom de Vries <tdevries@suse.de>
1360
1361 PR symtab/27341
1362 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1363 construct an array type. Add assert to ensure that element_type is
1364 not being modified.
1365
03642b71
AB
13662021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1367
1368 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1369 (gcore_collect_regset_section_cb): Delete.
1370 (gcore_collect_thread_registers): Delete.
1371 (gcore_build_thread_register_notes): Delete.
1372 (gcore_find_signalled_thread): Delete.
1373 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1374 'gdbarch' and 'thread_info' declarations.
1375 (gcore_build_thread_register_notes): Delete declaration.
1376 (gcore_find_signalled_thread): Likewise.
1377 * fbsd-tdep.c: Remove 'gcore.h' include.
1378 (struct fbsd_collect_regset_section_cb_data): New struct.
1379 (fbsd_collect_regset_section_cb): New function.
1380 (fbsd_collect_thread_registers): New function.
1381 (struct fbsd_corefile_thread_data): New struct.
1382 (fbsd_corefile_thread): New function.
1383 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1384 * linux-tdep.c: Remove 'gcore.h' include.
1385 (struct linux_collect_regset_section_cb_data): New struct.
1386 (linux_collect_regset_section_cb): New function.
1387 (linux_collect_thread_registers): New function.
1388 (linux_corefile_thread): Call Linux specific code.
1389 (find_signalled_thread): New function.
1390 (linux_make_corefile_notes): Call find_signalled_thread.
1391
f73e424f
TT
13922021-02-09 Tom Tromey <tromey@adacore.com>
1393
1394 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1395 not_lval value.
1396 * value.c (value_contents_copy_raw): Now static.
1397 * value.h (value_contents_copy_raw): Don't declare.
1398
a4f0544b
TT
13992021-02-09 Tom Tromey <tromey@adacore.com>
1400
1401 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1402 fields.
1403
9b3e4b5d
SV
14042021-02-08 Shahab Vahedi <shahab@synopsys.com>
1405
1406 PR tdep/27369
1407 * arc-linux-tdep.c (handle_atomic_sequence): New.
1408 (arc_linux_software_single_step): Call handle_atomic_sequence().
1409
29db1eb3
AB
14102021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1411
1412 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1413 function.
1414 (REQUIRE_WINDOW): Call is_valid member function.
1415 (REQUIRE_WINDOW_FOR_SETTER): New define.
1416 (gdbpy_tui_is_valid): Call is_valid member function.
1417 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1418 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1419 tui_active too.
1420 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1421 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1422 the function.
1423
e0c23e11
AB
14242021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1425
1426 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1427 for the title is not nullptr.
1428
1cf23996
AB
14292021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1430
1431 * tui-layout.c (saved_tui_windows): Delete.
1432 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1433 call new get_windows member function instead.
1434 (tui_get_window_by_name): Check in tui_windows.
1435 (tui_layout_window::apply): Don't add to tui_windows.
1436 * tui-layout.h (tui_layout_base::get_windows): New member function.
1437 (tui_layout_window::get_windows): Likewise.
1438 (tui_layout_split::get_windows): Likewise.
1439
a53a2657
AB
14402021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1441
1442 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1443 of the window objects.
1444
2708dbbd
AB
14452021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1446
1447 * python/python.c (gdbpy_print_stack): Reformat an error message.
1448
cd074e04
AB
14492021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1450
1451 * tui/tui-interp.c (tui_command_line_handler): New function.
1452 (tui_interp::resume): Register tui_command_line_handler as the
1453 input_handler.
1454 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1455 function.
1456 (tui_getc_1): Delete handling of '\n' and '\r'.
1457 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1458
4cf28e91
HD
14592021-02-07 Hannes Domani <ssbssa@yahoo.de>
1460
1461 * tui/tui-regs.c (tui_data_window::display_registers_from):
1462 Mark invisible register sub windows.
1463 (tui_data_window::check_register_values): Ignore invisible
1464 register sub windows.
1465
3537bc23
HD
14662021-02-07 Hannes Domani <ssbssa@yahoo.de>
1467
1468 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1469 n_spaces with a negative value.
1470
5fc2d6aa
HD
14712021-02-07 Hannes Domani <ssbssa@yahoo.de>
1472
1473 * tui/tui-regs.c (tui_data_window::display_registers_from):
1474 Add refresh_window call.
1475
83962f83
HD
14762021-02-07 Hannes Domani <ssbssa@yahoo.de>
1477
1478 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1479
0110ec82
SM
14802021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1481
1482 * symmisc.c (std_in, std_out, std_err): Remove.
1483 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1484
7c6944ab
TV
14852021-02-05 Tom de Vries <tdevries@suse.de>
1486
1487 PR breakpoints/27330
1488 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1489 glibc object file has debug info.
1490
e77b0004
TV
14912021-02-05 Tom de Vries <tdevries@suse.de>
1492
1493 PR symtab/27333
1494 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1495
0e857c82
TV
14962021-02-05 Tom de Vries <tdevries@suse.de>
1497
1498 PR breakpoints/27313
1499 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1500 syscall numbers.
1501
bdfea17e
TT
15022021-02-05 Tom Tromey <tom@tromey.com>
1503
1504 * compile/compile-c-support.c (get_compile_context)
1505 (c_get_compile_context, cplus_get_compile_context): Change return
1506 type.
1507 * language.c (language_defn::get_compile_instance): New method.
1508 * language.h (language_defn::get_compile_instance): Change return
1509 type. No longer inline.
1510 * c-lang.c (c_language::get_compile_instance): Change return type.
1511 (cplus_language::get_compile_instance): Change return type.
1512 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1513 Change return type.
1514 * compile/compile.c (compile_to_object): Update.
1515
1b30f421
TT
15162021-02-05 Tom Tromey <tom@tromey.com>
1517
1518 * parser-defs.h (write_exp_symbol_reference): Declare.
1519 * parse.c (write_exp_symbol_reference): New function.
1520 * p-exp.y (variable): Use write_exp_symbol_reference.
1521 * m2-exp.y (variable): Use write_exp_symbol_reference.
1522 * f-exp.y (variable): Use write_exp_symbol_reference.
1523 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1524 * c-exp.y (variable): Use write_exp_symbol_reference.
1525
ae710496
TV
15262021-02-05 Tom de Vries <tdevries@suse.de>
1527
1528 PR exp/27265
1529 * valarith.c (complex_binop): Throw an error if complex type can't
1530 be created.
1531
d3b54e63
TV
15322021-02-05 Tom de Vries <tdevries@suse.de>
1533
1534 PR symtab/27307
1535 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1536 return.
1537
fc9a13fb
TV
15382021-02-05 Tom de Vries <tdevries@suse.de>
1539
1540 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1541
04b4939b
MF
15422021-02-04 Mike Frysinger <vapier@gentoo.org>
1543
1544 * configure.tgt (riscv*-*-*): Set gdb_sim.
1545
6ff267e1
SM
15462021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1547
1548 * target.c (target_is_non_stop_p): Return bool.
1549 * target.h (target_is_non_stop_p): Return bool.
1550
fdbc5215
SM
15512021-02-04 Simon Marchi <simon.marchi@efficios.com>
1552
1553 * record-full.c (record_full_async_inferior_event_handler):
1554 Don't clear async event handler.
1555 (record_full_base_target::wait): Clear async event handler at
1556 beginning.
1557
85d3ad8e
SM
15582021-02-04 Simon Marchi <simon.marchi@efficios.com>
1559
1560 * record-btrace.c (record_btrace_handle_async_inferior_event):
1561 Don't clear async event handler.
1562 (record_btrace_target::wait): Clear async event handler at
1563 beginning.
1564
baa8575b
SM
15652021-02-04 Simon Marchi <simon.marchi@efficios.com>
1566
1567 * remote.c (remote_target::wait): Clear async event handler at
1568 beginning, mark if needed at the end.
1569 (remote_async_inferior_event_handler): Don't set or clear async
1570 event handler.
1571
6b36ddeb
SM
15722021-02-04 Simon Marchi <simon.marchi@efficios.com>
1573
1574 * async-event.h (async_event_handler_func): Add documentation.
1575 * async-event.c (check_async_event_handlers): Don't clear
1576 async_event_handler ready flag.
1577 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1578 flag.
1579 * record-btrace.c (record_btrace_handle_async_inferior_event):
1580 Likewise.
1581 * record-full.c (record_full_async_inferior_event_handler):
1582 Likewise.
1583 * remote-notif.c (remote_async_get_pending_events_handler):
1584 Likewise.
1585 * remote.c (remote_async_inferior_event_handler): Likewise.
1586
72d383bb
SM
15872021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1588
1589 * infrun.c (handle_inferior_event): Move stop_soon variable to
1590 inner scope.
1591
408f6686
PA
15922021-02-03 Pedro Alves <pedro@palves.net>
1593
1594 * infcmd.c (detach_command): Hold strong reference to target, and
1595 if all-stop on entry, restart threads on exit.
1596 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1597 (restart_stepped_thread): ... this new function. Also handle
1598 trap_expected.
1599 (restart_after_all_stop_detach): New function.
1600 * infrun.h (restart_after_all_stop_detach): Declare.
1601
ac7d717c
PA
16022021-02-03 Pedro Alves <pedro@palves.net>
1603
1604 * infrun.c (struct step_over_info): Initialize fields.
1605 (prepare_for_detach): Handle ongoing in-line step over.
1606
e87f0fe8
PA
16072021-02-03 Pedro Alves <pedro@palves.net>
1608
1609 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1610 here...
1611 * remote.c (remote_target::remote_detach_1): ... and here ...
1612 * target.c (target_detach): ... instead of here.
1613 * target.h (target_ops::detach): Add comment.
1614
8ff53139
PA
16152021-02-03 Pedro Alves <pedro@palves.net>
1616
1617 * infrun.c (struct wait_one_event): Move higher up.
1618 (prepare_for_detach): Abort in-progress displaced steps instead of
1619 letting them complete.
1620 (handle_one): If the inferior is detaching, don't add the thread
1621 back to the global step-over chain.
1622 (restart_threads): Don't restart threads if detaching.
1623 (handle_signal_stop): Remove inferior::detaching reference.
1624
91475068
PA
16252021-02-03 Pedro Alves <pedro@palves.net>
1626
1627 * infrun.c (prepare_for_detach): Don't release scoped_restore
1628 before returning.
1629
d758e62c
PA
16302021-02-03 Pedro Alves <pedro@palves.net>
1631
1632 * infrun.c (handle_one): New function, factored out from ...
1633 (stop_all_threads): ... here.
1634
b0083dd7
PA
16352021-02-03 Pedro Alves <pedro@palves.net>
1636
1637 * remote.c (remote_notif_stop_ack): Don't error out on
1638 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1639 (remote_target::discard_pending_stop_replies): Don't delete
1640 in-flight notification; instead, clear its contents.
1641
621cc310
PA
16422021-02-03 Pedro Alves <pedro@palves.net>
1643
1644 * remote.c (extended_remote_target::attach): Set target async in
1645 the target-non-stop path too.
1646
2ab76a18
PA
16472021-02-03 Pedro Alves <pedro@palves.net>
1648
1649 PR gdb/27055
1650 * infrun.c (handle_signal_stop): Move main context_switch call
1651 earlier, before STOP_QUIETLY_NO_SIGSTOP.
1652
2e3773ff
LS
16532021-02-02 Lancelot SIX <lsix@lancelotsix.com>
1654
1655 * NEWS (Changed commands): Add entry for the behavior change of
1656 the inferior command.
1657 * inferior.c (inferior_command): When no argument is given to the
1658 inferior command, display info about the currently selected
1659 inferior.
1660
e57933dc
SM
16612021-02-02 Simon Marchi <simon.marchi@efficios.com>
1662
1663 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
1664 a sect_offset.
1665 (read_attribute_reprocess): Adjust.
1666
2b0c7f41
SM
16672021-02-02 Simon Marchi <simon.marchi@efficios.com>
1668
1669 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
1670 <gnu_ranges_base>: ... this...
1671 <rnglists_base>: ... and this.
1672 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
1673 <gnu_ranges_base>: ... this...
1674 <rnglists_base>: ... and this.
1675 (read_cutu_die_from_dwo): Adjust
1676 (dwarf2_get_pc_bounds): Adjust
1677 (dwarf2_record_block_ranges): Adjust.
1678 (read_full_die_1): Adjust
1679 (partial_die_info::read): Adjust.
1680 (read_rnglist_index): Adjust.
1681
a1c40103
SM
16822021-02-02 Simon Marchi <simon.marchi@efficios.com>
1683
1684 PR gdb/26813
1685 * dwarf2/read.c (read_loclists_rnglists_header): Add
1686 header_offset parameter and use it.
1687 (read_loclist_index): Read header of the current contribution,
1688 not the one at the beginning of the section.
1689 (read_rnglist_index): Likewise.
1690
b1829e1b
SM
16912021-02-02 Simon Marchi <simon.marchi@efficios.com>
1692
1693 PR gdb/26813
1694 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
1695 requires_reprocessing flag.
1696 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
1697 DW_FORM_loclistx.
1698 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
1699 and DW_FORM_loclistx.
1700 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
1701 instead of set_address for DW_FORM_loclistx and
1702 DW_FORM_rnglistx.
1703
0c800c6e
SM
17042021-02-02 Simon Marchi <simon.marchi@efficios.com>
1705
1706 * dwarf2/read.c (read_loclist_index): Remove bound check for
1707 start of offset.
1708 (read_rnglist_index): Likewise.
1709
05787bad
SM
17102021-02-02 Simon Marchi <simon.marchi@efficios.com>
1711
1712 * dwarf2/read.c (read_loclist_index): Add bound check for the end
1713 of the offset.
1714
5e4d9bbc
SM
17152021-02-02 Simon Marchi <simon.marchi@efficios.com>
1716
1717 * dwarf2/read.c (read_rnglist_index): Fix bound check.
1718
a0c1eeba
SM
17192021-02-02 Simon Marchi <simon.marchi@efficios.com>
1720
1721 * dwarf2/read.c (read_loclist_index): Change complaints into
1722 errors.
1723
2bd3e4b8
TV
17242021-02-02 Tom de Vries <tdevries@suse.de>
1725
1726 PR symtab/24620
1727 * dwarf2/index-write.c (write_one_signatured_type): Skip if
1728 psymtab == nullptr.
1729
82a1fd3a
AB
17302021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1731
1732 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
1733 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
1734 here from linux-tdep.c and given a new name. Minor cleanups.
1735 (gcore_collect_regset_section_cb): Likewise.
1736 (gcore_collect_thread_registers): Likewise.
1737 (gcore_build_thread_register_notes): Likewise.
1738 (gcore_find_signalled_thread): Likewise.
1739 * gcore.h (gcore_build_thread_register_notes): Declare.
1740 (gcore_find_signalled_thread): Declare.
1741 * fbsd-tdep.c: Add 'gcore.h' include.
1742 (struct fbsd_collect_regset_section_cb_data): Delete.
1743 (fbsd_collect_regset_section_cb): Delete.
1744 (fbsd_collect_thread_registers): Delete.
1745 (struct fbsd_corefile_thread_data): Delete.
1746 (fbsd_corefile_thread): Delete.
1747 (fbsd_make_corefile_notes): Call
1748 gcore_build_thread_register_notes instead of the now deleted
1749 FreeBSD code.
1750 * linux-tdep.c: Add 'gcore.h' include.
1751 (struct linux_collect_regset_section_cb_data): Delete.
1752 (linux_collect_regset_section_cb): Delete.
1753 (linux_collect_thread_registers): Delete.
1754 (linux_corefile_thread): Call
1755 gcore_build_thread_register_notes.
1756 (find_signalled_thread): Delete.
1757 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1758
ebde6f2d
TV
17592021-01-29 Tom de Vries <tdevries@suse.de>
1760
1761 PR breakpoints/26063
1762 * infrun.c (process_event_stop_test): Reset
1763 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
1764 changed.
1765
0f93c3a2
AB
17662021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1767
1768 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
1769 assert. Extend the header comment.
1770
f237f998
AB
17712021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1772
1773 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
1774 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
1775 * tui/tui-data.h (TUI_STATUS_WIN): Define.
1776 (tui_locator_win_info_ptr): Delete declaration.
1777 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
1778 (tui_disasm_window::set_contents): Fetch state from tui_location
1779 global.
1780 (tui_get_begin_asm_address): Likewise.
1781 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
1782 for locator window.
1783 (get_locator_window): Delete.
1784 (initialize_known_windows): Treat locator window just like all the
1785 rest.
1786 * tui/tui-source.c: Add 'tui/tui-location.h' include.
1787 (tui_source_window::set_contents): Fetch state from tui_location
1788 global.
1789 (tui_source_window::showing_source_p): Likewise.
1790 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
1791 (_locator): Delete.
1792 (tui_locator_win_info_ptr): Delete.
1793 (tui_locator_window::make_status_line): Fetch state from
1794 tui_location global.
1795 (tui_locator_window::rerender): Remove check of 'handle',
1796 reindent function body.
1797 (tui_locator_window::set_locator_fullname): Delete.
1798 (tui_locator_window::set_locator_info): Delete.
1799 (tui_update_locator_fullname): Delete.
1800 (tui_show_frame_info): Likewise.
1801 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
1802 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
1803 tui/tui-location.h and renamed to
1804 tui_location_tracker::set_location.
1805 (tui_locator_window::set_locator_fullname): Moved to
1806 tui/tui-location.h and renamed to
1807 tui_location_tracker::set_fullname.
1808 (tui_locator_window::full_name): Delete.
1809 (tui_locator_window::proc_name): Delete.
1810 (tui_locator_window::line_no): Delete.
1811 (tui_locator_window::addr): Delete.
1812 (tui_locator_window::gdbarch): Delete.
1813 (tui_update_locator_fullname): Delete declaration.
1814 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
1815 for locator window.
1816 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
1817 (tui_display_main): Call function on tui_location directly.
1818 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
1819 * tui/tui-location.c: New file.
1820 * tui/tui-location.h: New file.
1821
8ee511af
SM
18222021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1823
1824 * gdbtypes.h (get_type_arch): Rename to...
1825 (struct type) <arch>: ... this, update all users.
1826
6ac37371
SM
18272021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1828
1829 * gdbtypes.h (struct type) <arch>: Rename to...
1830 <arch_owner>: ... this, update all users.
1831 <objfile>: Rename to...
1832 <objfile_owner>: ... this, update all users.
1833
24cf6389
AB
18342021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1835
1836 * gdbcmd.h (execute_command_to_string): Update comment.
1837 * top.c (execute_command_to_string): Update header comment.
1838
2a7f6487
TV
18392021-01-28 Tom de Vries <tdevries@suse.de>
1840
1841 PR breakpoints/27205
1842 * breakpoint.c (create_longjmp_master_breakpoint_probe)
1843 (create_longjmp_master_breakpoint_names): New function, factored out
1844 of ...
1845 (create_longjmp_master_breakpoint): ... here. Only try to install
1846 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
1847 breakpoint in libc.so failed.
1848
59b59f08
LS
18492021-01-27 Lancelot SIX <lsix@lancelotsix.com>
1850
1851 PR gdb/27133
1852 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
1853 unique_ptr is released when the wrapped pointer is kept for later
1854 use.
1855
807f647c
MM
18562021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
1857
1858 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
1859 BLR and BR instructions.
1860 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
1861 (enum aarch64_masks): New.
1862
4ef367bf
TT
18632021-01-26 Tom Tromey <tromey@adacore.com>
1864
1865 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
1866 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
1867 (windows_init_thread_list, windows_nat::handle_load_dll)
1868 (windows_nat::handle_unload_dll, windows_nat_target::resume)
1869 (windows_nat_target::resume)
1870 (windows_nat_target::get_windows_debug_event)
1871 (windows_nat_target::interrupt, windows_xfer_memory)
1872 (windows_nat_target::close): Update.
1873 * nat/windows-nat.c (DEBUG_EVENTS): Use
1874 debug_prefixed_printf_cond.
1875 (matching_pending_stop, fetch_pending_stop)
1876 (continue_last_debug_event): Update.
1877
4cb1265b
MS
18782020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
1879
1880 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
1881 elfcore_write_file_note.
1882
d0cc52bd
SV
18832021-01-26 Shahab Vahedi <shahab@synopsys.com>
1884
1885 * arc-tdep.c (arc_add_reggroups): New function.
1886 (arc_gdbarch_init): Call arc_add_reggroups.
1887
ac3571d9 18882021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
1889
1890 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
1891
9f6c202e
TV
18922021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
1893 Simon Marchi <simon.marchi@polymtl.ca>
1894 Tom de Vries <tdevries@suse.de>
1895
1896 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
1897 DW_AT_ranges.
1898
a625a8c9
TT
18992021-01-25 Tom Tromey <tromey@adacore.com>
1900
1901 * dwarf2/read.c (get_mpz): New function.
1902 (get_dwarf2_rational_constant): Use it.
1903
19184910
TT
19042021-01-25 Tom Tromey <tromey@adacore.com>
1905
1906 * ada-lang.c (resolve_subexp): Handle array context.
1907
b10bae18
TT
19082021-01-23 Tom Tromey <tom@tromey.com>
1909
1910 PR compile/25575
1911 * compile/compile-loc2c.c (note_register): New function.
1912 (pushf_register_address, pushf_register): Use it.
1913
3637a558
TT
19142021-01-23 Tom Tromey <tom@tromey.com>
1915
1916 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
1917 Change type of "registers_used".
1918 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
1919 * dwarf2/loc.c (dwarf2_compile_property_to_c)
1920 (locexpr_generate_c_location, loclist_generate_c_location): Change
1921 type of "registers_used".
1922 * compile/compile.h (compile_dwarf_expr_to_c)
1923 (compile_dwarf_bounds_to_c): Update.
1924 * compile/compile-loc2c.c (pushf_register_address)
1925 (pushf_register, do_compile_dwarf_expr_to_c)
1926 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
1927 of "registers_used".
1928 * compile/compile-c.h (generate_c_for_variable_locations):
1929 Update.
1930 * compile/compile-c-symbols.c (generate_vla_size)
1931 (generate_c_for_for_one_variable): Change type of
1932 "registers_used".
1933 (generate_c_for_variable_locations): Return std::vector.
1934 * compile/compile-c-support.c (generate_register_struct): Change
1935 type of "registers_used".
1936 (compute): Update.
1937
9f7f6cb8
TT
19382021-01-23 Tom Tromey <tom@tromey.com>
1939
1940 * compile/compile-internal.h (class compile_instance)
1941 <set_arguments>: Change return type.
1942 * compile/compile.c (compile_to_object): Remove call to reset.
1943 (compile_instance::set_arguments): Change return type.
1944
dd5ca05f
SM
19452021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
1946
1947 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
1948 * gdbtypes.h (struct type) <set_owner>: Add asserts.
1949
d3ee35db
LS
19502021-01-23 Lancelot SIX <lsix@lancelotsix.com>
1951
1952 * Makefile.in (SELFTESTS_SRCS): Add
1953 unittests/gdb_tilde_expand-selftests.c.
1954 * unittests/gdb_tilde_expand-selftests.c: New file.
1955
9d2d8a16
AB
19562021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1957
1958 PR cli/25956
1959 * NEWS: Mention new command.
1960 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
1961 (version_style): Define.
1962 (cli_style_option::cli_style_option): Add intensity parameter, and
1963 use as appropriate.
1964 (_initialize_cli_style): Register version style set/show commands.
1965 * cli/cli-style.h (cli_style_option): Add intensity parameter.
1966 (version_style): Declare.
1967 * top.c (print_gdb_version): Use version_stype, and styled_string
1968 to print the GDB version string.
1969
e7b43072
AB
19702021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
1971
1972 * utils.c (emit_style_escape): Only emit an escape sequence if the
1973 requested style is different than the current applied style.
1974 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
1975 current applied_style.
1976 (fputs_styled): Remove is_default check.
1977 (fputs_styled_unfiltered): Likewise.
1978 (vfprintf_styled_no_gdbfmt): Likewise.
1979
2189c312
SM
19802021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1981
1982 * remote.h (remote_debug_printf): New.
1983 (remote_debug_printf_nofunc): New.
1984 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
1985 * remote.c: Use above macros throughout file.
1986
02349803
SM
19872021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1988
1989 * remote.h (remote_debug): Change to bool.
1990 * remote.c (remote_debug): Change to bool.
1991 (_initialize_remote): Adjust.
1992
cda09ec9
SM
19932021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
1994
1995 * target.h (remote_debug): Move to...
1996 * remote.h (remote_debug): ... here.
1997 * top.c (remote_debug): Move to...
1998 * remote.c (remote_debug): ... here.
1999 * remote-sim.c: Include remote.h.
2000
baf2b57f
SM
20012021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2002
2003 * cli/cli-cmds.c (show_remote_debug): Remove.
2004 (show_remote_timeout): Remove.
2005 (_initialize_cli_cmds): Don't register commands.
2006 * remote.c (show_remote_debug): Move here.
2007 (show_remote_timeout): Move here.
2008 (_initialize_remote): Register commands.
2009
344e9841
SM
20102021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2011
2012 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2013 type::objfile method instead.
2014
30625020
SM
20152021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2016
2017 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2018 use the type::is_objfile_owned method.
2019
5b7d941b
SM
20202021-01-22 Simon Marchi <simon.marchi@efficios.com>
2021
2022 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2023 (TYPE_OWNER): Remove.
2024 (TYPE_OBJFILE): Adjust.
2025 (struct main_type) <flag_objfile_owned>: Rename to...
2026 <m_flag_objfile_owned>: ... this.
2027 <owner>: Rename to...
2028 <m_owner>: ... this.
2029 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2030 methods.
2031 (TYPE_ALLOC): Adjust.
2032 * gdbtypes.c (alloc_type): Adjust.
2033 (alloc_type_arch): Adjust.
2034 (alloc_type_copy): Adjust.
2035 (get_type_arch): Adjust.
2036 (smash_type): Adjust.
2037 (lookup_array_range_type): Adjust.
2038 (recursive_dump_type): Adjust.
2039 (copy_type_recursive): Adjust.
2040 * compile/compile-c-types.c (convert_func): Adjust.
2041 (convert_type_basic): Adjust.
2042 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2043 Adjust.
2044 * language.c
2045 (language_arch_info::type_and_symbol::alloc_type_symbol):
2046 Adjust.
2047
d5d24e12
LM
20482021-01-21 Luis Machado <luis.machado@linaro.org>
2049
2050 * coffread.c (enter_linenos): Passing string to complaint.
2051 * valops.c (value_assign): Make array view.
2052
a59902a7
SM
20532021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2054
2055 * auto-load.h (debug_auto_load): Move here.
2056 (auto_load_debug_printf): New.
2057 * auto-load.c: Use auto_load_debug_printf.
2058 (debug_auto_load): Move to header.
2059 * linux-thread-db.c (try_thread_db_load): Use
2060 auto_load_debug_printf.
2061 * main.c (captured_main_1): Likewise.
2062
d3abc0ce
SM
20632021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2064
2065 * f-valprint.c (f77_array_offset_tbl): Remove.
2066
1e15fcac
SM
20672021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2068
2069 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2070
439706e6
SM
20712021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2072
2073 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2074 of gdb_select.
2075
325d39e4
HD
20762021-01-21 Hannes Domani <ssbssa@yahoo.de>
2077
2078 PR python/19151
2079 * python/py-breakpoint.c (bppy_get_location): Handle
2080 bp_hardware_breakpoint.
2081 (bppy_init): Likewise.
2082 (gdbpy_breakpoint_created): Likewise.
2083
7cb6d92a
SM
20842021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2085
2086 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2087
d4dd4fca
SM
20882021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2089
2090 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2091 (_initialize_gdb_bfd): Adjust.
2092
de53369b
SM
20932021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2094
2095 PR gdb/26828
2096 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2097
17e593e9
SM
20982021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2099
2100 * dwarf2/read.c (follow_die_offset): Add logging.
2101 (dwarf2_per_objfile::age_comp_units): Add logging.
2102
6bd434d6
SM
21032021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2104
2105 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2106 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2107 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2108 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2109 * arm-tdep.c (struct frame_unwind): Make static.
2110 * auto-load.c (auto_load_safe_path_vec): Make static.
2111 * csky-tdep.c (csky_stub_unwind): Make static.
2112 * gdbarch.c (gdbarch_data_registry): Make static.
2113 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2114 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2115 * i386-tdep.c (i386_frame_setup_skip_insns,
2116 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2117 Make static.
2118 * infrun.c (observer_mode): Make static.
2119 * linux-nat.c (sigchld_action): Make static.
2120 * linux-thread-db.c (thread_db_list): Make static.
2121 * maint-test-options.c (maintenance_test_options_list):
2122 * mep-tdep.c (mep_csr_registers): Make static.
2123 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2124 (stats): Make static.
2125 * nat/linux-osdata.c (struct osdata_type): Make static.
2126 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2127 * progspace.c (last_program_space_num): Make static.
2128 * python/py-param.c (struct parm_constant): Remove struct type
2129 name.
2130 (parm_constants): Make static.
2131 * python/py-record-btrace.c (btpy_list_methods): Make static.
2132 * python/py-record.c (recpy_gap_type): Make static.
2133 * record.c (record_goto_cmdlist): Make static.
2134 * regcache.c (regcache_descr_handle): Make static.
2135 * registry.h (DEFINE_REGISTRY): Make definition static.
2136 * symmisc.c (std_in, std_out, std_err): Make static.
2137 * top.c (previous_saved_command_line): Make static.
2138 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2139 static.
2140 * unittests/command-def-selftests.c (nr_duplicates,
2141 nr_invalid_prefixcmd, lists): Make static.
2142 * unittests/observable-selftests.c (test_notification): Make
2143 static.
2144 * unittests/optional/assignment/1.cc (counter): Make static.
2145 * unittests/optional/assignment/2.cc (counter): Make static.
2146 * unittests/optional/assignment/3.cc (counter): Make static.
2147 * unittests/optional/assignment/4.cc (counter): Make static.
2148 * unittests/optional/assignment/5.cc (counter): Make static.
2149 * unittests/optional/assignment/6.cc (counter): Make static.
2150
a6c11cbb
JS
21512021-01-20 Joel Sherrill <joel@rtems.org>
2152
2153 PR gdb/27219
2154 * remote.c (struct remote_thread_info) <resume_state>: Rename
2155 to...
2156 <get_resume_state>: ... this.
2157 (remote_target::resume): Adjust.
2158 (remote_target::commit_resume): Adjust.
2159 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
2160
6f52fdf4
SDJ
21612021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
2162 Tom Tromey <tom@tromey.com>
2163
2164 * stap-probe.c (stap_parse_single_operand): Handle '!'
2165 operator.
2166 (stap_parse_argument_conditionally): Likewise.
2167 Skip spaces after processing open-parenthesis sub-expression.
2168 (stap_parse_argument_1): Skip spaces after call to
2169 stap_parse_argument_conditionally.
2170 Handle case when right-side expression is a parenthesized
2171 sub-expression.
2172 Skip spaces after call to stap_parse_argument_1.
2173
1c3b85ad
LS
21742021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2175
2176 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2177
a9a87d35
LM
21782021-01-19 Luis Machado <luis.machado@linaro.org>
2179
2180 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2181 memory and save data.
2182 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2183 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2184 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2185 (trad_frame_value_bytes_p): Remove.
2186 (trad_frame_reset_saved_regs): Adjust documentation.
2187 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2188 constructor and reset the state of the registers.
2189 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2190 (trad_frame_value_bytes_p, trad_frame_set_value)
2191 (trad_frame_set_realreg, trad_frame_set_addr)
2192 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2193 (trad_frame_set_reg_realreg): Update to call member function.
2194 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2195 (trad_frame_get_prev_register): Likewise.
2196
2197 * aarch64-tdep.c (aarch64_analyze_prologue)
2198 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2199 (aarch64_prologue_prev_register): Update to use member functions.
2200 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2201 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
2202 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
2203 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
2204 (arm_make_epilogue_frame_cache): Likewise.
2205 * avr-tdep.c (avr_frame_unwind_cache)
2206 (avr_frame_prev_register): Likewise.
2207 * cris-tdep.c (cris_scan_prologue): Likewise.
2208 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
2209 * frv-tdep.c (frv_analyze_prologue): Likewise.
2210 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
2211 * lm32-tdep.c (lm32_frame_cache): Likewise.
2212 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2213 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2214 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
2215 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
2216 (reset_saved_regs): Adjust to set realreg.
2217 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
2218 call member functions.
2219 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
2220 * s390-tdep.c (s390_prologue_frame_unwind_cache)
2221 (s390_backchain_frame_unwind_cache): Likewise.
2222 * score-tdep.c (score7_analyze_prologue)
2223 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
2224 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
2225 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2226 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
2227 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2228 * tilegx-tdep.c (tilegx_analyze_prologue)
2229 (tilegx_frame_cache): Likewise.
2230 * v850-tdep.c (v850_frame_cache): Likewise.
2231 * vax-tdep.c (vax_frame_cache): Likewise.
2232
bdec2917
LM
22332021-01-19 Luis Machado <luis.machado@linaro.org>
2234
2235 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
2236 of buffer + length.
2237 (put_frame_register_bytes): Likewise.
2238 Adjust documentation.
2239 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
2240 (safe_frame_unwind_memory): Likewise.
2241 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
2242 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
2243 gdb::array_view.
2244 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
2245 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
2246 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2247 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
2248 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
2249 * dwarf2/loc.c (rw_pieced_value): Likewise.
2250 * hppa-tdep.c (hppa_frame_cache): Likewise.
2251 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2252 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2253 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2254 (i386_linux_rt_sigtramp_start): Likewise.
2255 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2256 * i386-tdep.c (i386_register_to_value): Likewise.
2257 * i387-tdep.c (i387_register_to_value): Likewise.
2258 * ia64-tdep.c (ia64_register_to_value): Likewise.
2259 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2260 (m32r_linux_rt_sigtramp_start): Likewise.
2261 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2262 * m68k-tdep.c (m68k_register_to_value): Likewise.
2263 * mips-tdep.c (mips_register_to_value)
2264 (mips_value_to_register): Likewise.
2265 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
2266 (ppcfbsd_sigtramp_frame_cache): Likewise.
2267 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
2268 (ppcobsd_sigtramp_frame_cache): Likewise.
2269 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
2270 (rs6000_register_to_value): Likewise.
2271 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2272 * tramp-frame.c (tramp_frame_start): Likewise.
2273 * valops.c (value_assign): Likewise.
2274
ccbe4c82
LM
22752021-01-19 Luis Machado <luis.machado@linaro.org>
2276
2277 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
2278 array_view.
2279 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
2280 instead of buffer and size.
2281 (trad_frame_set_reg_value_bytes): Likewise.
2282 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
2283 (trad_frame_set_value_bytes): Likewise.
2284
0e7620dc
MF
22852021-01-18 Mike Frysinger <vapier@gentoo.org>
2286
2287 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
2288
6a9ad81c
AB
22892021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
2290
2291 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
2292 (riscv_fbsd_gregset): Use riscv_supply_regset.
2293 (riscv_fbsd_fpregset): Likewise.
2294 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
2295 (riscv_linux_fregset): Likewise.
2296 * riscv-tdep.c (riscv_supply_regset): Define new function.
2297 * riscv-tdep.h (riscv_supply_regset): Declare new function.
2298
d3d7d1ba
TV
22992021-01-18 Tom de Vries <tdevries@suse.de>
2300
2301 PR tdep/27172
2302 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
2303 New macro.
2304 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
2305 for SEGV_BNDERR.
2306
aa2838cc
SM
23072021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2308
2309 * remote.c (class remote_target) <remote_hostio_send_command,
2310 remote_hostio_parse_result>: Constify parameter.
2311 (remote_hostio_parse_result): Likewise.
2312 (remote_target::remote_hostio_send_command): Adjust.
2313 (remote_target::remote_hostio_pread_vFile): Adjust.
2314 (remote_target::fileio_readlink): Adjust.
2315 (remote_target::fileio_fstat): Adjust.
2316
b5c8f22d
SM
23172021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2318
2319 * remote.c (remote_target::start_remote): Move wait_status to
2320 narrower scope.
2321
e3b2741b
SM
23222021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2323
2324 * remote.c (class remote_target):
2325 <add_current_inferior_and_thread>: Constify parameter.
2326 (stop_reply_extract_thread): Likewise.
2327 (remote_target::get_current_thread): Likewise.
2328 (remote_target::add_current_inferior_and_thread): Likewise.
2329
cecb1912
SM
23302021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2331
2332 * remote.c (class remote_target)
2333 <remote_unpack_thread_info_response,
2334 parse_threadlist_response>: Constify parameter and/or return
2335 value and or local variable.
2336 (stub_unpack_int): Likewise.
2337 (unpack_nibble): Likewise.
2338 (unpack_byte): Likewise.
2339 (unpack_int): Likewise.
2340 (unpack_string): Likewise.
2341 (unpack_threadid): Likewise.
2342 (remote_target::remote_unpack_thread_info_response): Likewise.
2343 (remote_target::parse_threadlist_response): Likewise.
2344
5a11fff0
AB
23452021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2346
2347 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2348
17e89137
LS
23492021-01-14 Lancelot Six <lsix@lancelotsix.com>
2350
2351 * MAINTAINERS (Write After Approval): Add myself.
2352
58eadc4b
BE
23532021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2354
2355 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2356 because is_trivially_default_constructible was first implemented with
2357 gcc-5.
2358
5fae2a2c
TV
23592021-01-14 Tom de Vries <tdevries@suse.de>
2360
2361 PR breakpoints/27151
2362 * objfiles.h (in_plt_section): Handle .plt.sec.
2363
8f66807b
AB
23642021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2365
2366 PR gdb/26819
2367 * remote.c
2368 (remote_target::select_thread_for_ambiguous_stop_reply): New
2369 member function.
2370 (remote_target::process_stop_reply): Call
2371 select_thread_for_ambiguous_stop_reply.
2372
bd497355
SM
23732021-01-13 Simon Marchi <simon.marchi@efficios.com>
2374
2375 * record-btrace.c (class record_btrace_target): Remove.
2376 (record_btrace_target::commit_resume): Remove.
2377 * record-full.c (class record_full_target): Remove.
2378 (record_full_target::commit_resume): Remove.
2379
c9d22089
SM
23802021-01-13 Simon Marchi <simon.marchi@efficios.com>
2381
2382 * remote.c (enum class resume_state): New.
2383 (struct resumed_pending_vcont_info): New.
2384 (struct remote_thread_info) <resume_state, set_not_resumed,
2385 set_resumed_pending_vcont, resumed_pending_vcont_info,
2386 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2387 New.
2388 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2389 (remote_target::remote_add_thread): Adjust.
2390 (remote_target::process_initial_stop_replies): Adjust.
2391 (remote_target::resume): Adjust.
2392 (remote_target::commit_resume): Rely on state in
2393 remote_thread_info and not on tp->executing.
2394 (remote_target::process_stop_reply): Adjust.
2395
d8d1feb4
SM
23962021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2397
2398 * arc-tdep.h (arc_debug_printf): New.
2399 * arc-tdep.c: Use arc_debug_printf.
2400 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2401 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2402 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2403
fb0f5031
SM
24042021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2405
2406 * arc-tdep.h (arc_debug): Change type to bool.
2407 * arc-tdep.c (arc_debug): Change type to bool.
2408 (arc_analyze_prologue): Adjust.
2409 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2410 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2411
5bf7e91b
SM
24122021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2413
2414 * auto-load.c (auto_load_objfile_script_1): Use bool.
2415 (execute_script_contents): Use bool.
2416
db972fce
SM
24172021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2418
2419 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2420 comment here.
2421 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2422 comment to header.
2423 * extension-priv.h (struct extension_language_script_ops)
2424 <auto_load_enabled>: Return bool.
2425 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2426 comment here.
2427 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2428 comment to header.
2429 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2430 move comment here.
2431 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2432 move comment to header.
2433 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2434 move comment here.
2435 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2436 move comment to header.
2437
5e12f48f
SM
24382021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2439
2440 * auto-load.h (file_is_auto_load_safe): Change return type to
2441 bool, move comment here.
2442 * auto-load.c (file_is_auto_load_safe): Change return type and
2443 advice_printed to bool. Move comment to header.
2444
54ca9002
SM
24452021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2446
2447 * jit.c (jit_debug_printf): New, use throughout file.
2448
24a7f1b5
SM
24492021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2450
2451 * infrun.c (normal_stop): Fix indentation.
2452
fe7a351a
SM
24532021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2454
2455 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2456 declarations to ...
2457 * symfile.h: ... here.
2458 * symfile.c: Update doc.
2459
16e9019e
SM
24602021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2461
2462 * target.h (baud_rate, serial_parity): Move declarations...
2463 * serial.h: ... here.
2464 * main.c: Include serial.h.
2465 * serial.c (baud_rate, serial_parity): Update doc.
2466
b2f2ae0d
SM
24672021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2468
2469 * top.c (pre_init_ui_hook): Remove.
2470
5291fe3c
SP
24712021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2472
2473 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2474 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2475 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2476 * features/aarch64-fpu.xml: Add bfloat16 type.
2477
ce38f5ed
AB
24782021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2479
2480 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2481
7c654b71
AB
24822021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2483
2484 * f-exp.y (dot_ops): Rename to...
2485 (fortran_operators): ...this. Add a header comment. Add symbol
2486 based operators.
2487 (yylex): Update to use fortran_operators not dot_ops. Remove
2488 special handling for '**', this is now included in
2489 fortran_operators.
2490
c6185dce
SM
24912021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2492
2493 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2494 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2495 * aarch64-tdep.c: Use aarch64_debug_printf.
2496
eef401dc
SM
24972021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2498
2499 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2500 file.
2501
062eaacb
SM
25022021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2503
2504 * jit.c (jit_debug): Change type to bool.
2505 (_initialize_jit): Adjust.
2506
54585eee
TT
25072021-01-09 Tom Tromey <tom@tromey.com>
2508
2509 PR compile/23672
2510 * compile/compile.c (compile_to_object): Avoid crash when
2511 osabi_triplet_regexp returns NULL.
2512
bc167b6b
TT
25132021-01-09 Tom Tromey <tom@tromey.com>
2514
2515 * tracepoint.h (class collection_list) <append_exp>: Take a
2516 std::string.
2517 * tracepoint.c (collection_list::append_exp): Take a std::string.
2518 (encode_actions_1): Update.
2519
8fc48b79
TT
25202021-01-08 Tom Tromey <tromey@adacore.com>
2521
2522 * parse.c (parse_expression): Add void_context_p parameter. Use
2523 parse_exp_in_context.
2524 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2525 parse_expression.
2526 (print_command, call_command): Update.
2527 * expression.h (parse_expression): Add void_context_p parameter.
2528
3c8c6de2
AB
25292021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2530
2531 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2532 for internalvar components that have a dynamic location.
2533
1940319c
TV
25342021-01-08 Tom de Vries <tdevries@suse.de>
2535
2536 PR gdb/26881
2537 * breakpoint.c (create_exception_master_breakpoint_probe)
2538 (create_exception_master_breakpoint_hook): Factor out
2539 of ...
2540 (create_exception_master_breakpoint): ... here. Only try to install
2541 the master exception breakpoint in objfile.debug using the
2542 _Unwind_DebugHook method, if the install using probes in objfile
2543 failed.
2544
e3436813
AB
25452021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2546
2547 * f-lang.c (fortran_value_subarray): Call value_from_component.
2548
e904f56d
MF
25492021-01-07 Mike Frysinger <vapier@gentoo.org>
2550
2551 * remote-sim.c: Include memory-map.h.
2552 (gdbsim_target): Define memory_map override.
2553 (gdbsim_target::memory_map): Define.
2554
959d6a67
TT
25552021-01-07 Tom Tromey <tromey@adacore.com>
2556
2557 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2558
d4813f10
TT
25592021-01-07 Tom Tromey <tromey@adacore.com>
2560
2561 * ada-lang.c (add_component_interval): Start loop using vector's
2562 updated size.
2563
b49180ac
TT
25642021-01-06 Tom Tromey <tromey@adacore.com>
2565
2566 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2567 Do not cast result.
2568 * valarith.c (fixed_point_binop): Handle multiplication
2569 and division specially.
2570 * valops.c (value_to_gdb_mpq): New function.
2571 (value_cast_to_fixed_point): Use it.
2572
55195361
HD
25732021-01-05 Hannes Domani <ssbssa@yahoo.de>
2574
2575 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2576 Call wnoutrefresh instead of tui_win_info::refresh_window.
2577
1b6d4bb2
HD
25782021-01-05 Hannes Domani <ssbssa@yahoo.de>
2579
2580 * tui/tui-source.c (tui_source_window::show_line_number):
2581 Redraw second space after line number.
2582
b5ff370e
HD
25832021-01-05 Hannes Domani <ssbssa@yahoo.de>
2584
2585 PR tui/26927
2586 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2587 Fix source pad size in prefresh.
2588 (tui_source_window_base::show_source_content): Grow source pad
2589 if necessary.
2590
c68ea49f
MF
25912021-01-04 Mike Frysinger <vapier@gentoo.org>
2592
2593 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2594 (bfin_frame_align): Use align_down.
2595
e4ad960a
TV
25962021-01-04 Tom de Vries <tdevries@suse.de>
2597
2598 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2599 terminators that do not terminate anything.
2600
3ec3145c
SM
26012021-01-04 Simon Marchi <simon.marchi@efficios.com>
2602
2603 * debug.c (debug_print_depth): New.
2604 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2605 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2606 * infrun.c (start_step_over): Use
2607 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2608 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2609 INFRUN_SCOPED_DEBUG_START_END.
2610 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2611
e71daf80
SM
26122021-01-04 Simon Marchi <simon.marchi@efficios.com>
2613
2614 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2615
335709bc
SM
26162021-01-04 Simon Marchi <simon.marchi@efficios.com>
2617
2618 * utils.c (vfprintf_unfiltered): Print timestamp only when
2619 previous debug output ended with a newline.
2620
098caef4
LM
26212021-01-04 Luis Machado <luis.machado@linaro.org>
2622
2623 Update all users of trad_frame_saved_reg to use the new member
2624 functions.
2625
2626 Remote all struct keywords from declarations of trad_frame_saved_reg
2627 types, except on forward declarations.
2628
2629 * aarch64-tdep.c: Update.
2630 * alpha-mdebug-tdep.c: Update.
2631 * alpha-tdep.c: Update.
2632 * arc-tdep.c: Update.
2633 * arm-tdep.c: Update.
2634 * avr-tdep.c: Update.
2635 * cris-tdep.c: Update.
2636 * csky-tdep.c: Update.
2637 * frv-tdep.c: Update.
2638 * hppa-linux-tdep.c: Update.
2639 * hppa-tdep.c: Update.
2640 * hppa-tdep.h: Update.
2641 * lm32-tdep.c: Update.
2642 * m32r-linux-tdep.c: Update.
2643 * m32r-tdep.c: Update.
2644 * m68hc11-tdep.c: Update.
2645 * mips-tdep.c: Update.
2646 * moxie-tdep.c: Update.
2647 * riscv-tdep.c: Update.
2648 * rs6000-tdep.c: Update.
2649 * s390-linux-tdep.c: Update.
2650 * s390-tdep.c: Update.
2651 * score-tdep.c: Update.
2652 * sparc-netbsd-tdep.c: Update.
2653 * sparc-sol2-tdep.c: Update.
2654 * sparc64-fbsd-tdep.c: Update.
2655 * sparc64-netbsd-tdep.c: Update.
2656 * sparc64-obsd-tdep.c: Update.
2657 * sparc64-sol2-tdep.c: Update.
2658 * tilegx-tdep.c: Update.
2659 * v850-tdep.c: Update.
2660 * vax-tdep.c: Update.
2661
2662 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
2663 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
2664
2665 * trad-frame.c: Update.
2666 Remove TF_REG_* enum.
2667 (trad_frame_alloc_saved_regs): Add a static assertion to check for
2668 a trivially-constructible struct.
2669 (trad_frame_reset_saved_regs): Adjust to use member function.
2670 (trad_frame_value_p): Likewise.
2671 (trad_frame_addr_p): Likewise.
2672 (trad_frame_realreg_p): Likewise.
2673 (trad_frame_value_bytes_p): Likewise.
2674 (trad_frame_set_value): Likewise.
2675 (trad_frame_set_realreg): Likewise.
2676 (trad_frame_set_addr): Likewise.
2677 (trad_frame_set_unknown): Likewise.
2678 (trad_frame_set_value_bytes): Likewise.
2679 (trad_frame_get_prev_register): Likewise.
2680 * trad-frame.h: Update.
2681 (trad_frame_saved_reg_kind): New enum.
2682 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
2683 <m_kind, m_reg>: New member fields.
2684 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
2685 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
2686 <is_addr, is_unknown, is_value_bytes>: New member functions.
2687
9898e882
SM
26882021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
2689
2690 * target-float.c: Fix typos.
2691
b66b4e65
HD
26922021-01-02 Hannes Domani <ssbssa@yahoo.de>
2693
2694 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
2695
b5b5650a
JB
26962021-01-01 Joel Brobecker <brobecker@adacore.com>
2697
2698 * gdbarch.sh: Update copyright year range.
2699
3666a048
JB
27002021-01-01 Joel Brobecker <brobecker@adacore.com>
2701
2702 Update copyright year range in copyright header of all GDB files.
2703
ff7e39b6
JB
27042021-01-01 Joel Brobecker <brobecker@adacore.com>
2705
2706 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
2707 to the list of directories to update.
2708
2b47c078
JB
27092021-01-01 Joel Brobecker <brobecker@adacore.com>
2710
2711 * top.c (print_gdb_version): Update copyright year.
2712
476923f1 27132021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 2714
476923f1 2715 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 2716
476923f1 2717For older changes see ChangeLog-2020.
c906108c
SS
2718\f
2719Local Variables:
2720mode: change-log
2721left-margin: 8
2722fill-column: 74
2723version-control: never
57da7796 2724coding: utf-8
c906108c 2725End:
This page took 2.72322 seconds and 4 git commands to generate.