Introduce fortran_undetermined
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2f98abe1
TT
12021-03-08 Tom Tromey <tom@tromey.com>
2
3 * expop.h (class unop_addr_operation) <get_expression>: New
4 method.
5 * f-lang.c (fortran_undetermined::value_subarray)
6 (fortran_undetermined::evaluate): New methods.
7 (fortran_prepare_argument): New overload.
8 * f-exp.h (class fortran_range_operation)
9 (class fortran_undetermined): New classes.
10
638fd74a
TT
112021-03-08 Tom Tromey <tom@tromey.com>
12
13 * rust-lang.c (rust_structop::evaluate_funcall): New method.
14 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
15 method.
16
a00b7254
TT
172021-03-08 Tom Tromey <tom@tromey.com>
18
19 * expression.h (class operation) <evaluate_funcall>: New methods.
20 * expop.h (class scope_operation) <evaluate_funcall>: New method.
21 (class var_value_operation) <evaluate_funcall>: New method.
22 (class structop_base_operation) <evaluate_funcall>: New method.
23 (class var_msym_value_operation) <evaluate_funcall>: New method.
24 (class structop_member_base): New class.
25 (class structop_member_operation): Derive from
26 structop_member_base.
27 (class structop_mptr_operation): Derive from
28 structop_member_base.
29 (class funcall_operation): New class.
30 * eval.c (operation::evaluate_funcall)
31 (var_value_operation::evaluate_funcall)
32 (scope_operation::evaluate_funcall)
33 (structop_member_base::evaluate_funcall)
34 (structop_base_operation::evaluate_funcall): New methods.
35
1c02eb30
TT
362021-03-08 Tom Tromey <tom@tromey.com>
37
38 * expop.h (class array_operation): New.
39 * eval.c (array_operation::evaluate_struct_tuple)
40 (array_operation::evaluate): New methods.
41
e4479080
TT
422021-03-08 Tom Tromey <tom@tromey.com>
43
44 * expop.h (class adl_func_operation): New.
45 * eval.c (adl_func_operation::evaluate): New method.
46
95d49dfb
TT
472021-03-08 Tom Tromey <tom@tromey.com>
48
49 * ada-lang.c (ada_unop_in_range): No longer static.
50 * ada-exp.h (class ada_unop_range_operation): New.
51
7c15d377
TT
522021-03-08 Tom Tromey <tom@tromey.com>
53
54 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
55 No longer static.
56 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
57 (ada_atr_size_operation, ada_abs_operation): New typedefs.
58
5019124b
TT
592021-03-08 Tom Tromey <tom@tromey.com>
60
61 * expop.h (class logical_and_operation)
62 (class logical_or_operation): New.
63 * eval.c (logical_and_operation::evaluate)
64 (logical_or_operation::evaluate): New methods.
65 * ax-gdb.c (logical_and_operation::do_generate_ax)
66 (logical_or_operation::do_generate_ax): New methods.
67
2bc9b40c
TT
682021-03-08 Tom Tromey <tom@tromey.com>
69
70 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
71 static.
72 * m2-exp.h: New file.
73
5947d337
TT
742021-03-08 Tom Tromey <tom@tromey.com>
75
76 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
77 * rust-exp.h (class rust_aggregate_operation): New.
78
e4407a20
TT
792021-03-08 Tom Tromey <tom@tromey.com>
80
81 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
82 No longer static.
83 * rust-exp.h (class rust_struct_anon): New.
84 (class rust_structop): New.
85
9db6b6dd
TT
862021-03-08 Tom Tromey <tom@tromey.com>
87
88 * rust-lang.c (rust_range): No longer static.
89 * rust-exp.h (class rust_range_operation): New.
90
6ce1ad67
TT
912021-03-08 Tom Tromey <tom@tromey.com>
92
93 * rust-lang.c (rust_subscript): No longer static.
94 * rust-exp.h (class rust_subscript_operation): New.
95
11dd3dce
TT
962021-03-08 Tom Tromey <tom@tromey.com>
97
98 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
99 parameter.
100 (rust_evaluate_subexp): Update.
101 * rust-exp.h (class rust_unop_ind_operation): New.
102
6fab4359
TT
1032021-03-08 Tom Tromey <tom@tromey.com>
104
105 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
106 longer static. Add "opcode" parameter.
107 (rust_evaluate_subexp): Update.
108 * rust-exp.h: New file.
109
9dcd3e29
TT
1102021-03-08 Tom Tromey <tom@tromey.com>
111
112 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
113 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
114 (eval_op_f_kind): No longer static. Add "opcode" parameter.
115 (evaluate_subexp_f): Update.
116 * f-exp.h: New file.
117
fc715eb2
TT
1182021-03-08 Tom Tromey <tom@tromey.com>
119
120 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
121 * ada-exp.h (class ada_ternop_range_operation): New.
122
cc6bd32e
TT
1232021-03-08 Tom Tromey <tom@tromey.com>
124
125 * ada-lang.c (ada_qual_operation::evaluate): New method.
126 * ada-exp.h (class ada_qual_operation): New.
127
42fecb61
TT
1282021-03-08 Tom Tromey <tom@tromey.com>
129
130 * ada-lang.c (ada_string_operation::evaluate): New method.
131 * ada-exp.h (class ada_string_operation): New.
132
03070ee9
TT
1332021-03-08 Tom Tromey <tom@tromey.com>
134
135 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
136 * ada-exp.h: New file.
137
821e72d7
TT
1382021-03-08 Tom Tromey <tom@tromey.com>
139
140 * expop.h (class multi_subscript_operation): New.
141 * eval.c (multi_subscript_operation::evaluate): New method.
142
085734dd
TT
1432021-03-08 Tom Tromey <tom@tromey.com>
144
145 * eval.c (objc_msgcall_operation::evaluate): New method.
146 * c-exp.h (class objc_msgcall_operation): New.
147
e82a5afc
TT
1482021-03-08 Tom Tromey <tom@tromey.com>
149
150 * expop.h (class var_value_operation): New.
151 * eval.c (var_value_operation::evaluate)
152 (var_value_operation::evaluate_for_address)
153 (var_value_operation::evaluate_with_coercion)
154 (var_value_operation::evaluate_for_sizeof)
155 (var_value_operation::evaluate_for_cast): New methods.
156 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
157
d9ad79d8
TT
1582021-03-08 Tom Tromey <tom@tromey.com>
159
160 * expop.h (cxx_cast_ftype): New typedef.
161 (cxx_cast_operation): New template.
162 (dynamic_cast_operation, reinterpret_cast_operation): New
163 typedefs.
164
292382f4
TT
1652021-03-08 Tom Tromey <tom@tromey.com>
166
167 * expop.h (class unop_cast_type_operation): New.
168 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
169 method.
170
165a813a
TT
1712021-03-08 Tom Tromey <tom@tromey.com>
172
173 * expop.h (class unop_cast_operation): New.
174 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
175
e5946e16
TT
1762021-03-08 Tom Tromey <tom@tromey.com>
177
178 * expop.h (class assign_modify_operation): New.
179 * eval.c (eval_binop_assign_modify): No longer static.
180 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
181
40786782
TT
1822021-03-08 Tom Tromey <tom@tromey.com>
183
184 * expop.h (class assign_operation): New.
185 * ax-gdb.c (assign_operation::do_generate_ax): New method.
186
44b675c8
TT
1872021-03-08 Tom Tromey <tom@tromey.com>
188
189 * expop.h (class type_instance_operation): New.
190 * eval.c (type_instance_operation::evaluate): New method.
191
f6b42326
TT
1922021-03-08 Tom Tromey <tom@tromey.com>
193
194 * expop.h (class op_this_operation): New.
195 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
196
cbc18219
TT
1972021-03-08 Tom Tromey <tom@tromey.com>
198
199 * expop.h (class unop_memval_operation)
200 (class unop_memval_type_operation): New.
201 * eval.c (eval_op_memval): No longer static.
202 (unop_memval_operation::evaluate_for_address)
203 (unop_memval_type_operation::evaluate_for_address)
204 (unop_memval_operation::evaluate_for_sizeof)
205 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
206 * ax-gdb.c (unop_memval_operation::do_generate_ax)
207 (unop_memval_type_operation::do_generate_ax): New methods.
208
ae4bb61e
TT
2092021-03-08 Tom Tromey <tom@tromey.com>
210
211 * expop.h (class unop_alignof_operation): New.
212 * eval.c (eval_op_alignof): No longer static.
213
85d23bda
TT
2142021-03-08 Tom Tromey <tom@tromey.com>
215
216 * expop.h (class unop_sizeof_operation): New.
217 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
218
14aff815
TT
2192021-03-08 Tom Tromey <tom@tromey.com>
220
221 * expop.h (class unop_addr_operation): New.
222 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
223
929f3aa7
TT
2242021-03-08 Tom Tromey <tom@tromey.com>
225
226 * expop.h (class typeid_operation): New.
227
0af8829e
TT
2282021-03-08 Tom Tromey <tom@tromey.com>
229
230 * expop.h (class decltype_operation): New.
231
4efc574c
TT
2322021-03-08 Tom Tromey <tom@tromey.com>
233
234 * expop.h (class typeof_operation): New.
235
5b5f5140
TT
2362021-03-08 Tom Tromey <tom@tromey.com>
237
238 * expop.h (class type_operation): New.
239 * eval.c (eval_op_type): No longer static.
240
876469ff
TT
2412021-03-08 Tom Tromey <tom@tromey.com>
242
243 * expop.h (class unop_ind_base_operation)
244 (class unop_ind_operation): New.
245 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
246 (unop_ind_base_operation::evaluate_for_address)
247 (unop_ind_base_operation::evaluate_for_sizeof): New method.
248 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
249
6d89e296
TT
2502021-03-08 Tom Tromey <tom@tromey.com>
251
252 * expop.h (unop_incr_operation): New template.
253 (preinc_operation, predec_operation, postinc_operation)
254 (postdec_operation): New typedefs.
255 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
256 (eval_op_postdec): No longer static.
257
9307d17b
TT
2582021-03-08 Tom Tromey <tom@tromey.com>
259
260 * expop.h (unary_ftype): New typedef.
261 (unop_operation, usual_ax_binop_operation): New templates.
262 (unary_plus_operation, unary_neg_operation)
263 (unary_complement_operation, unary_logical_not_operation): New
264 typedefs.
265 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
266 (eval_op_lognot): No longer static.
267 * ax-gdb.c (gen_expr_unop): New function.
268
ae64ba58
TT
2692021-03-08 Tom Tromey <tom@tromey.com>
270
271 * ax-gdb.c (comma_operation::do_generate_ax): New method.
272
d4eff4c1
TT
2732021-03-08 Tom Tromey <tom@tromey.com>
274
275 * expop.h (class repeat_operation): New.
276 * eval.c (eval_op_repeat): No longer static. Remove "op"
277 parameter.
278 (evaluate_subexp_standard): Update.
279 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
280
46916f2b
TT
2812021-03-08 Tom Tromey <tom@tromey.com>
282
283 * expop.h (class comparison_operation): New.
284 (equal_operation, notequal_operation, less_operation)
285 (gtr_operation, geq_operation, leq_operation): New typedefs.
286 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
287 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
288
224d6424
TT
2892021-03-08 Tom Tromey <tom@tromey.com>
290
291 * expop.h (class subscript_operation): New.
292 * eval.c (eval_op_subscript): No longer static.
293
373907ff
TT
2942021-03-08 Tom Tromey <tom@tromey.com>
295
296 * expop.h (class binop_operation, class usual_ax_binop_operation):
297 New.
298 (exp_operation, intdiv_operation, mod_operation, mul_operation)
299 (div_operation, rem_operation, lsh_operation, rsh_operation)
300 (bitwise_and_operation, bitwise_ior_operation)
301 (bitwise_xor_operation): New typedefs.
302 * eval.c (eval_op_binary): No longer static.
303
5133d78b
TT
3042021-03-08 Tom Tromey <tom@tromey.com>
305
306 * expop.h (class sub_operation): New.
307 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
308 (evaluate_subexp_standard): Update.
309
a94323b6
TT
3102021-03-08 Tom Tromey <tom@tromey.com>
311
312 * expop.h (class add_operation): New.
313 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
314 (evaluate_subexp_standard): Update.
315
e51e26a0
TT
3162021-03-08 Tom Tromey <tom@tromey.com>
317
318 * expop.h (class concat_operation): New.
319 * eval.c (eval_op_concat): No longer static. Remove "op"
320 parameter.
321 (evaluate_subexp_standard): Update.
322
07f724a8
TT
3232021-03-08 Tom Tromey <tom@tromey.com>
324
325 * expop.h (class structop_member_operation)
326 (class structop_mptr_operation): New.
327 * eval.c (eval_op_member): No longer static.
328
ab0609be
TT
3292021-03-08 Tom Tromey <tom@tromey.com>
330
331 * expop.h (class structop_ptr_operation): New.
332 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
333 parameter.
334
808b22cf
TT
3352021-03-08 Tom Tromey <tom@tromey.com>
336
337 * expop.h (class structop_base_operation)
338 (class structop_operation): New.
339 * eval.c (eval_op_structop_struct): No longer static.
340
8cfd3e95
TT
3412021-03-08 Tom Tromey <tom@tromey.com>
342
343 * expop.h (class complex_operation): New.
344
09db3700
TT
3452021-03-08 Tom Tromey <tom@tromey.com>
346
347 * eval.c (eval_op_objc_selector): No longer static.
348 * c-exp.h (class objc_selector_operation): New.
349
06dc61b9
TT
3502021-03-08 Tom Tromey <tom@tromey.com>
351
352 * eval.c: Include c-exp.h.
353 * c-exp.h (class objc_nsstring_operation): New.
354
72d0a711
TT
3552021-03-08 Tom Tromey <tom@tromey.com>
356
357 * c-lang.c (c_string_operation::evaluate): New method.
358 * c-exp.h: New file.
359
9186293f
TT
3602021-03-08 Tom Tromey <tom@tromey.com>
361
362 * expop.h (class ternop_cond_operation): New.
363 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
364
1594e0bb
TT
3652021-03-08 Tom Tromey <tom@tromey.com>
366
367 * expop.h (class ternop_slice_operation): New.
368 * eval.c (eval_op_ternop): No longer static.
369
b50db09f
TT
3702021-03-08 Tom Tromey <tom@tromey.com>
371
372 * expop.h (class string_operation): New.
373 * eval.c (eval_op_string): No longer static.
374
e6e01e16
TT
3752021-03-08 Tom Tromey <tom@tromey.com>
376
377 * expop.h (class internalvar_operation): New.
378 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
379
e6985c5e
TT
3802021-03-08 Tom Tromey <tom@tromey.com>
381
382 * expop.h (class bool_operation): New.
383
55bdbff8
TT
3842021-03-08 Tom Tromey <tom@tromey.com>
385
386 * expop.h (class register_operation): New.
387 * eval.c (eval_op_register): No longer static.
388 * ax-gdb.c (register_operation::do_generate_ax): New method.
389
247d935b
TT
3902021-03-08 Tom Tromey <tom@tromey.com>
391
392 * expop.h (class last_operation): New.
393
17679395
TT
3942021-03-08 Tom Tromey <tom@tromey.com>
395
396 * expop.h (class func_static_var_operation): New.
397 * eval.c (eval_op_func_static_var): No longer static.
398
b5cc3923
TT
3992021-03-08 Tom Tromey <tom@tromey.com>
400
401 * expop.h (class var_entry_value_operation): New.
402 * eval.c (eval_op_var_entry_value): No longer static.
403
0c8effa3
TT
4042021-03-08 Tom Tromey <tom@tromey.com>
405
406 * expression.h (class operation) <set_outermost>: New method.
407 * expop.h (class var_msym_value_operation): New.
408 * eval.c (eval_op_var_msym_value): No longer static.
409 (var_msym_value_operation::evaluate_for_address)
410 (var_msym_value_operation::evaluate_for_sizeof)
411 (var_msym_value_operation::evaluate_for_cast): New methods.
412 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
413 method.
414
d336c29e
TT
4152021-03-08 Tom Tromey <tom@tromey.com>
416
417 * expop.h (class long_const_operation): New.
418 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
419
d5ab122c
TT
4202021-03-08 Tom Tromey <tom@tromey.com>
421
422 * expop.h (class scope_operation): New.
423 * eval.c (eval_op_scope): No longer static.
424 (scope_operation::evaluate_for_address): New method.
425 * ax-gdb.c (scope_operation::do_generate_ax): New method.
426
cae26a0c
TT
4272021-03-08 Tom Tromey <tom@tromey.com>
428
429 * expprint.c (float_const_operation::dump): New method.
430 * expop.h (float_data): New typedef.
431 (class float_const_operation): New.
432
75f9892d
TT
4332021-03-08 Tom Tromey <tom@tromey.com>
434
435 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
436 * ax-gdb.c (gen_expr_binop): New function.
437 (gen_expr_structop): Likewise.
438
de401988
TT
4392021-03-08 Tom Tromey <tom@tromey.com>
440
441 * expprint.c (expr::dump_for_expression): New functions.
442 * expop.h (dump_for_expression): New overloads.
443 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
444 Update.
445
e2803273
TT
4462021-03-08 Tom Tromey <tom@tromey.com>
447
448 * expression.h (expr::operation): New class.
449 (expr::make_operation): New function.
450 (expr::operation_up): New typedef.
451 * expop.h: New file.
452 * eval.c (operation::evaluate_for_cast)
453 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
454 New methods.
455 * ax-gdb.c (operation::generate_ax): New method.
456
e18c58f2
TT
4572021-03-08 Tom Tromey <tom@tromey.com>
458
459 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
460 (gen_expr_binop_rest): New overload.
461
c0d7ed8c
TT
4622021-03-08 Tom Tromey <tom@tromey.com>
463
464 * eval.c (eval_multi_subscript): New function.
465 (evaluate_subexp_standard): Use it.
466
dd5fd283
TT
4672021-03-08 Tom Tromey <tom@tromey.com>
468
469 * ada-lang.c (ada_binop_exp): New function.
470 (ada_evaluate_subexp): Use it.
471
3848abd6
TT
4722021-03-08 Tom Tromey <tom@tromey.com>
473
474 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
475 parameters.
476 (ada_evaluate_subexp): Use it.
477
38dc70cf
TT
4782021-03-08 Tom Tromey <tom@tromey.com>
479
480 * ada-lang.c (ada_binop_minmax): New function.
481 (ada_evaluate_subexp): Use it.
482
b84564fc
TT
4832021-03-08 Tom Tromey <tom@tromey.com>
484
485 * ada-lang.c (ada_unop_atr): New function.
486 (ada_evaluate_subexp): Use it.
487
b467efaa
TT
4882021-03-08 Tom Tromey <tom@tromey.com>
489
490 * ada-lang.c (ada_binop_in_bounds): New function.
491 (ada_evaluate_subexp): Use it.
492
5ce19db8
TT
4932021-03-08 Tom Tromey <tom@tromey.com>
494
495 * ada-lang.c (ada_ternop_slice): New function.
496 (ada_evaluate_subexp): Use it.
497
214b13ac
TT
4982021-03-08 Tom Tromey <tom@tromey.com>
499
500 * ada-lang.c (ada_equal_binop): New function.
501 (ada_evaluate_subexp): Use it.
502
faa1dfd7
TT
5032021-03-08 Tom Tromey <tom@tromey.com>
504
505 * ada-lang.c (ada_mult_binop): New function.
506 (ada_evaluate_subexp): Use it.
507
d05e24e6
TT
5082021-03-08 Tom Tromey <tom@tromey.com>
509
510 * ada-lang.c (ada_abs): New function.
511 (ada_evaluate_subexp): Use it.
512
68c75735
TT
5132021-03-08 Tom Tromey <tom@tromey.com>
514
515 * ada-lang.c (ada_atr_size): New function.
516 (ada_evaluate_subexp): Use it.
517
020dbabe
TT
5182021-03-08 Tom Tromey <tom@tromey.com>
519
520 * ada-lang.c (ada_atr_tag): New function.
521 (ada_evaluate_subexp): Use it.
522
7efc87ff
TT
5232021-03-08 Tom Tromey <tom@tromey.com>
524
525 * ada-lang.c (ada_unop_in_range): New function.
526 (ada_evaluate_subexp): Use it.
527
82390ab8
TT
5282021-03-08 Tom Tromey <tom@tromey.com>
529
530 * ada-lang.c (ada_unop_neg): New function.
531 (ada_evaluate_subexp): Use it.
532
62d4bd94
TT
5332021-03-08 Tom Tromey <tom@tromey.com>
534
535 * ada-lang.c (eval_ternop_in_range): New function.
536 (ada_evaluate_subexp): Use it.
537
3634f669
TT
5382021-03-08 Tom Tromey <tom@tromey.com>
539
540 * opencl-lang.c (eval_opencl_assign): New function.
541 (evaluate_subexp_opencl): Use it.
542
5e80600e
TT
5432021-03-08 Tom Tromey <tom@tromey.com>
544
545 * eval.c (eval_op_objc_msgcall): New function.
546 (evaluate_subexp_standard): Use it.
547
fb5ba2ab
TT
5482021-03-08 Tom Tromey <tom@tromey.com>
549
550 * eval.c (eval_binop_assign_modify): New function.
551 (evaluate_subexp_standard): Use it.
552
a49881f7
TT
5532021-03-08 Tom Tromey <tom@tromey.com>
554
555 * m2-lang.c (eval_op_m2_subscript): New function.
556 (evaluate_subexp_modula2): Use it.
557
41bdced5
TT
5582021-03-08 Tom Tromey <tom@tromey.com>
559
560 * m2-lang.c (eval_op_m2_high): New function.
561 (evaluate_subexp_modula2): Use it.
562
13ea014a
TT
5632021-03-08 Tom Tromey <tom@tromey.com>
564
565 * eval.c (evaluate_subexp_for_address_base): New function.
566 (evaluate_subexp_for_address): Use it.
567 (evaluate_subexp_for_sizeof_base): New function.
568 (evaluate_subexp_for_sizeof): Use it.
569
1fa41fc7
TT
5702021-03-08 Tom Tromey <tom@tromey.com>
571
572 * rust-lang.c (eval_op_rust_structop): New function.
573 (rust_evaluate_subexp): Use it.
574
575cae23
TT
5752021-03-08 Tom Tromey <tom@tromey.com>
576
577 * rust-lang.c (eval_op_rust_struct_anon): New function.
578 (rust_evaluate_subexp): Use it.
579
05104233
TT
5802021-03-08 Tom Tromey <tom@tromey.com>
581
582 * rust-lang.c (eval_op_rust_array): New function.
583 (rust_evaluate_subexp): Use it.
584
6fa9831f
TT
5852021-03-08 Tom Tromey <tom@tromey.com>
586
587 * rust-lang.c (eval_op_rust_complement): New function.
588 (rust_evaluate_subexp): Use it.
589
d123f9e4
TT
5902021-03-08 Tom Tromey <tom@tromey.com>
591
592 * rust-lang.c (eval_op_rust_ind): New function.
593 (rust_evaluate_subexp): Use it.
594
984af2cb
TT
5952021-03-08 Tom Tromey <tom@tromey.com>
596
597 * rust-lang.c (rust_subscript): Change parameters.
598 (rust_evaluate_subexp): Update.
599
d148f803
TT
6002021-03-08 Tom Tromey <tom@tromey.com>
601
602 * rust-lang.c (rust_range): Change parameters.
603 (rust_evaluate_subexp): Update.
604
9cbd1c20
TT
6052021-03-08 Tom Tromey <tom@tromey.com>
606
607 * f-lang.c (eval_op_f_allocated): New function.
608 (evaluate_subexp_f): Use it.
609
3c18c49c
TT
6102021-03-08 Tom Tromey <tom@tromey.com>
611
612 * f-lang.c (fortran_require_array): New function.
613 (evaluate_subexp_f): Use it.
614
216f6fcb
TT
6152021-03-08 Tom Tromey <tom@tromey.com>
616
617 * f-lang.c (eval_op_f_kind): New function.
618 (evaluate_subexp_f): Use it.
619
00f2db6f
TT
6202021-03-08 Tom Tromey <tom@tromey.com>
621
622 * f-lang.c (eval_op_f_cmplx): New function.
623 (evaluate_subexp_f): Use it.
624
93b2b5fa
TT
6252021-03-08 Tom Tromey <tom@tromey.com>
626
627 * f-lang.c (eval_op_f_modulo): New function.
628 (evaluate_subexp_f): Use it.
629
9f1a1f3c
TT
6302021-03-08 Tom Tromey <tom@tromey.com>
631
632 * f-lang.c (eval_op_f_floor): New function.
633 (evaluate_subexp_f): Use it.
634
3dc41f3c
TT
6352021-03-08 Tom Tromey <tom@tromey.com>
636
637 * f-lang.c (eval_op_f_ceil): New function.
638 (evaluate_subexp_f): Use it.
639
e08109f2
TT
6402021-03-08 Tom Tromey <tom@tromey.com>
641
642 * f-lang.c (eval_op_f_mod): New function.
643 (evaluate_subexp_f): Use it.
644
cc05c68e
TT
6452021-03-08 Tom Tromey <tom@tromey.com>
646
647 * f-lang.c (eval_op_f_abs): New function.
648 (evaluate_subexp_f): Use it.
649
aec95807
TT
6502021-03-08 Tom Tromey <tom@tromey.com>
651
652 * eval.c (eval_op_type): New function.
653 (evaluate_subexp_standard): Use it.
654
a220ead5
TT
6552021-03-08 Tom Tromey <tom@tromey.com>
656
657 * eval.c (eval_op_postdec): New function.
658 (evaluate_subexp_standard): Use it.
659
abffe116
TT
6602021-03-08 Tom Tromey <tom@tromey.com>
661
662 * eval.c (eval_op_postinc): New function.
663 (evaluate_subexp_standard): Use it.
664
9e1361b7
TT
6652021-03-08 Tom Tromey <tom@tromey.com>
666
667 * eval.c (eval_op_predec): New file.
668 (evaluate_subexp_standard): Use it.
669
00f50884
TT
6702021-03-08 Tom Tromey <tom@tromey.com>
671
672 * eval.c (eval_op_preinc): New function.
673 (evaluate_subexp_standard): Use it.
674
3aef2a07
TT
6752021-03-08 Tom Tromey <tom@tromey.com>
676
677 * eval.c (eval_op_memval): New function.
678 (evaluate_subexp_standard): Use it.
679
acee9468
TT
6802021-03-08 Tom Tromey <tom@tromey.com>
681
682 * eval.c (eval_op_alignof): New function.
683 (evaluate_subexp_standard): Use it.
684
786f70ee
TT
6852021-03-08 Tom Tromey <tom@tromey.com>
686
687 * eval.c (eval_op_ind): New function.
688 (evaluate_subexp_standard): Use it.
689
24338fb9
TT
6902021-03-08 Tom Tromey <tom@tromey.com>
691
692 * eval.c (eval_op_lognot): New function.
693 (evaluate_subexp_standard): Use it.
694
1f09ec81
TT
6952021-03-08 Tom Tromey <tom@tromey.com>
696
697 * eval.c (eval_op_complement): New function.
698 (evaluate_subexp_standard): Use it.
699
606d105f
TT
7002021-03-08 Tom Tromey <tom@tromey.com>
701
702 * eval.c (eval_op_neg): New function.
703 (evaluate_subexp_standard): Use it.
704
39f288be
TT
7052021-03-08 Tom Tromey <tom@tromey.com>
706
707 * eval.c (eval_op_plus): New function.
708 (evaluate_subexp_standard): Use it.
709
eed70b1c
TT
7102021-03-08 Tom Tromey <tom@tromey.com>
711
712 * eval.c (eval_op_repeat): New function.
713 (evaluate_subexp_standard): Use it.
714
60cdd487
TT
7152021-03-08 Tom Tromey <tom@tromey.com>
716
717 * eval.c (eval_op_leq): New function.
718 (evaluate_subexp_standard): Use it.
719
96e3efd9
TT
7202021-03-08 Tom Tromey <tom@tromey.com>
721
722 * eval.c (eval_op_geq): New function.
723 (evaluate_subexp_standard): Use it.
724
1f78d732
TT
7252021-03-08 Tom Tromey <tom@tromey.com>
726
727 * eval.c (eval_op_gtr): New function.
728 (evaluate_subexp_standard): Use it.
729
6cad1349
TT
7302021-03-08 Tom Tromey <tom@tromey.com>
731
732 * eval.c (eval_op_less): New function.
733 (evaluate_subexp_standard): Use it.
734
1fcb3559
TT
7352021-03-08 Tom Tromey <tom@tromey.com>
736
737 * eval.c (eval_op_notequal): New function.
738 (evaluate_subexp_standard): Use it.
739
0cc96de8
TT
7402021-03-08 Tom Tromey <tom@tromey.com>
741
742 * eval.c (eval_op_equal): New function.
743 (evaluate_subexp_standard): Use it.
744
288d26bc
TT
7452021-03-08 Tom Tromey <tom@tromey.com>
746
747 * eval.c (eval_op_subscript): New function.
748 (evaluate_subexp_standard): Use it.
749
7cdcdd02
TT
7502021-03-08 Tom Tromey <tom@tromey.com>
751
752 * eval.c (eval_op_binary): New function.
753 (evaluate_subexp_standard): Use it.
754
d9790e22
TT
7552021-03-08 Tom Tromey <tom@tromey.com>
756
757 * eval.c (eval_op_sub): New function.
758 (evaluate_subexp_standard): Use it.
759
aedaf9ac
TT
7602021-03-08 Tom Tromey <tom@tromey.com>
761
762 * eval.c (eval_op_add): New function.
763 (evaluate_subexp_standard): Use it.
764
b7a96ed2
TT
7652021-03-08 Tom Tromey <tom@tromey.com>
766
767 * eval.c (eval_op_member): New function.
768 (evaluate_subexp_standard): Use it.
769
fb461aa3
TT
7702021-03-08 Tom Tromey <tom@tromey.com>
771
772 * eval.c (eval_op_structop_ptr): New function.
773 (evaluate_subexp_standard): Use it.
774
3e96c4fc
TT
7752021-03-08 Tom Tromey <tom@tromey.com>
776
777 * eval.c (eval_op_structop_struct): New function.
778 (evaluate_subexp_standard): Use it.
779
f960a617
TT
7802021-03-08 Tom Tromey <tom@tromey.com>
781
782 * eval.c (eval_op_ternop): New function.
783 (evaluate_subexp_standard): Use it.
784
5c2f201e
TT
7852021-03-08 Tom Tromey <tom@tromey.com>
786
787 * eval.c (eval_op_concat): New function.
788 (evaluate_subexp_standard): Use it.
789
f871bae1
TT
7902021-03-08 Tom Tromey <tom@tromey.com>
791
792 * eval.c (eval_op_objc_selector): New function.
793 (evaluate_subexp_standard): Use it.
794
14a1c64a
TT
7952021-03-08 Tom Tromey <tom@tromey.com>
796
797 * eval.c (eval_op_string): New function.
798 (evaluate_subexp_standard): Use it.
799
ffff730b
TT
8002021-03-08 Tom Tromey <tom@tromey.com>
801
802 * eval.c (eval_op_register): New function.
803 (evaluate_subexp_standard): Use it.
804
9b1d8af6
TT
8052021-03-08 Tom Tromey <tom@tromey.com>
806
807 * eval.c (eval_op_func_static_var): New function.
808 (evaluate_subexp_standard): Use it.
809
c0df9289
TT
8102021-03-08 Tom Tromey <tom@tromey.com>
811
812 * eval.c (eval_op_var_msym_value): New function.
813 (evaluate_subexp_standard): Use it.
814
50b98adc
TT
8152021-03-08 Tom Tromey <tom@tromey.com>
816
817 * eval.c (eval_op_var_entry_value): New function.
818 (evaluate_subexp_standard): Use it.
819
ea2d29f7
TT
8202021-03-08 Tom Tromey <tom@tromey.com>
821
822 * eval.c (eval_op_scope): New function.
823 (evaluate_subexp_standard): Use it.
824
01573d73
TT
8252021-03-06 Chernov Sergey <klen_s@mail.ru>
826
827 PR gdb/27528:
828 * ada-lang.c (ada_fold_name): Use gdb::to_string.
829
9938d15a
TT
8302021-03-06 Tom Tromey <tom@tromey.com>
831
832 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
833 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
834 * dwarf2/read.c (dwarf2_elf_names): No longer static.
835 (locate_dwz_sections, dwz_search_other_debugdirs)
836 (dwarf2_get_dwz_file): Move to dwz.c.
837 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
838 read.h.
839 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
840 (dwarf2_get_dwz_file): Move from read.c.
841
18035655
TT
8422021-03-06 Tom Tromey <tom@tromey.com>
843
844 * debuginfod-support.h: Include scoped_fd.h.
845
a7308ce0
TT
8462021-03-06 Tom Tromey <tom@tromey.com>
847
848 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
849 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
850 (get_abbrev_section_for_cu, read_attribute_value)
851 (get_debug_line_section): Update.
852 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
853
fbedd546
TT
8542021-03-06 Tom Tromey <tom@tromey.com>
855
856 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
857 method.
858 * dwarf2/read.c (section_is_p): Remove.
859 (dwarf2_per_bfd::locate_sections)
860 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
861 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
862 (dwarf2_locate_common_dwp_sections)
863 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
864 Update.
865
c2a62a3d
TT
8662021-03-06 Tom Tromey <tom@tromey.com>
867
868 * xcoffread.c: Include sect-names.h.
869 * symfile.h (struct dwarf2_section_names, struct
870 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
871 * dwarf2/sect-names.h: New file, from symfile.h.
872 * dwarf2/read.c: Include sect-names.h.
873
4444f407
TT
8742021-03-06 Tom Tromey <tom@tromey.com>
875
876 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
877 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
878 (abbrev_table::read): Update.
879 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
880 (struct abbrev_info): Reformat.
881 <attrs>: Now an array.
882 (struct abbrev_table) <alloc_abbrev>: Remove.
883
dd99cf0c
WP
8842021-03-06 Weimin Pan <weimin.pan@oracle.com>
885
886 * ctfread.c (ctf_psymtab_add_enums): New function.
887 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
888
844be3f2
WP
8892021-03-06 Weimin Pan <weimin.pan@oracle.com>
890
891 * ctfread.c (read_func_kind_type): Set up function arguments.
892
b2668f28
AB
8932021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
894 Andrew Burgess <andrew.burgess@embecosm.com>
895
896 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
897 includes.
898 (riscv_csrset): New static global.
899 (riscv_update_csrmap): New function.
900 (riscv_iterate_over_regset_sections): Process CSRs.
901
d782d24b
AB
9022021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
903
904 * riscv-tdep.c (riscv_feature_name_csr): Define.
905 (riscv_feature_name_cpu): Define.
906 (riscv_feature_name_fpu): Define.
907 (riscv_feature_name_virtual): Define.
908 (riscv_xreg_feature): Use riscv_feature_name_cpu.
909 (riscv_freg_feature): Use riscv_feature_name_fpu.
910 (riscv_virtual_feature): Use riscv_feature_name_virtual.
911 (riscv_csr_feature): Use riscv_feature_name_csr.
912 * riscv-tdep.h (riscv_feature_name_csr): Declare.
913
fb8f3fc0
AB
9142021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
915 Craig Blackmore <craig.blackmore@embecosm.com>
916
917 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
918 (ALLDEPFILES): Add riscv-none-tdep.c.
919 * configure: Regenerate.
920 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
921 support.
922 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
923 * elf-none-tdep.c: New file.
924 * elf-none-tdep.h: New file.
925 * riscv-none-tdep.c: New file.
926
95ce627a
AB
9272021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
928 Andrew Burgess <andrew.burgess@embecosm.com>
929
930 * corelow.c: Add 'xml-tdesc.h' include.
931 (core_target::read_description): Load the target description from
932 the core file when possible.
933 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
934 note.
935 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
936 (gcore_elf_make_tdesc_note): New function.
937 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
938 * linux-tdep.c (linux_make_corefile_notes): Add target description
939 note.
940
f3a5df7b
AB
9412021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
942
943 * Makefile.in (SFILES): Add gcore-elf.c.
944 (HFILES_NO_SRCDIR): Add gcore-elf.h
945 * configure: Regenerate.
946 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
947 support.
948 * fbsd-tdep.c: Add 'gcore-elf.h' include.
949 (struct fbsd_collect_regset_section_cb_data): Delete.
950 (fbsd_collect_regset_section_cb): Delete.
951 (fbsd_collect_thread_registers): Delete.
952 (struct fbsd_corefile_thread_data): Delete.
953 (fbsd_corefile_thread): Delete.
954 (fbsd_make_corefile_notes): Call
955 gcore_elf_build_thread_register_notes instead of the now deleted
956 FreeBSD code.
957 * gcore-elf.c: New file, the content was moved here from
958 linux-tdep.c, functions were renamed and given minor cleanup.
959 * gcore-elf.h: New file.
960 * gcore.c (gcore_find_signalled_thread): Moved here from
961 linux-tdep.c and given a new name. Minor cleanups.
962 * gcore.h (gcore_find_signalled_thread): Declare.
963 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
964 (struct linux_collect_regset_section_cb_data): Delete.
965 (linux_collect_regset_section_cb): Delete.
966 (linux_collect_thread_registers): Delete.
967 (linux_corefile_thread): Call
968 gcore_elf_build_thread_register_notes.
969 (find_signalled_thread): Delete.
970 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
971
d1e93af6
SM
9722021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
973
974 PR gdb/27147
975 * sparc-nat.h (sparc_fetch_inferior_registers): Add
976 process_stratum_target parameter,
977 sparc_store_inferior_registers): update callers.
978 * sparc-nat.c (sparc_fetch_inferior_registers,
979 sparc_store_inferior_registers): Add process_stratum_target
980 parameter. Switch current thread before calling
981 sparc_supply_gregset / sparc_collect_rwindow.
982 (sparc_store_inferior_registers): Likewise.
983 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
984 (sparc32obsd_collect_uthread): Likewise.
985 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
986 Add assertion.
987 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
988 sparc64obsd_supply_uthread): Add assertion.
989
1178743e
TT
9902021-03-04 Tom Tromey <tromey@adacore.com>
991
992 * ada-lang.c (struct match_data) <found_sym>: Now bool.
993 (aux_add_nonlocal_symbols): Update.
994 (ada_add_block_symbols): Change "found_sym" to bool.
995
1bfa81ac
TT
9962021-03-03 Tom Tromey <tromey@adacore.com>
997
998 * ada-lang.c (ada_resolve_function): Update comment.
999 (is_nonfunction, add_symbols_from_enclosing_procs)
1000 (remove_extra_symbols): Likewise.
1001 (struct match_data): Add constructor, initializers.
1002 (add_nonlocal_symbols): Remove memset.
1003 (aux_add_nonlocal_symbols): Update comment.
1004 (ada_add_block_renamings, add_nonlocal_symbols)
1005 (ada_add_all_symbols): Likewise.
1006 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1007
bbcdf9ab
TT
10082021-03-02 Tom Tromey <tromey@adacore.com>
1009
1010 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1011 (cast_to_gnat_encoded_fixed_point_type): Remove.
1012 (ada_value_cast, ada_evaluate_subexp): Update.
1013 (gnat_encoded_fixed_point_type_info)
1014 (ada_is_gnat_encoded_fixed_point_type)
1015 (gnat_encoded_fixed_point_delta)
1016 (gnat_encoded_fixed_point_scaling_factor): Remove.
1017 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1018 (gnat_encoded_fixed_point_delta)
1019 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1020 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1021 (ada_print_type): Update.
1022 * ada-valprint.c (ada_value_print_num): Update.
1023 * dwarf2/read.c (ada_get_gnat_encoded_number)
1024 (ada_get_gnat_encoded_ratio): New functions.
1025 (finish_fixed_point_type): Use them. Add parameters.
1026 (GNAT_FIXED_POINT_SUFFIX): New define.
1027 (gnat_encoded_fixed_point_type_info): New function.
1028 (read_base_type): Handle gnat encodings.
1029
5f9febe0
TT
10302021-03-02 Tom Tromey <tromey@adacore.com>
1031
1032 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1033 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1034 std::string.
1035 (GROW_VECT): Remove.
1036 (grow_vect): Remove.
1037
d1183b06
TT
10382021-03-02 Tom Tromey <tromey@adacore.com>
1039
1040 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1041 * ada-lang.c (resolve_subexp): Update.
1042 (ada_resolve_function): Accept a vector.
1043 (is_nonfunction, add_defn_to_vec)
1044 (add_symbols_from_enclosing_procs): Likewise.
1045 (num_defns_collected, defns_collected): Remove.
1046 (remove_extra_symbols): Return a vector.
1047 (remove_irrelevant_renamings): Return void.
1048 (ada_add_local_symbols): Accept a vector.
1049 (struct match_data) <obstackp>: Remove.
1050 <resultp>: New member.
1051 (aux_add_nonlocal_symbols): Update.
1052 (ada_add_block_renamings, add_nonlocal_symbols)
1053 (ada_add_all_symbols): Accept a vector.
1054 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1055 vector.
1056 (ada_lookup_symbol): Update.
1057 (ada_add_block_symbols): Accept a vector.
1058 (get_var_value, iterate_over_symbols): Update.
1059 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1060 Update.
1061
886d459f
TT
10622021-03-02 Tom Tromey <tromey@adacore.com>
1063
1064 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1065
bdcccc56
TT
10662021-03-02 Tom Tromey <tromey@adacore.com>
1067
1068 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1069 auto_obstack.
1070 <root>: Initialize.
1071 (ada_pspace_data): Remove destructor.
1072 <sym_cache>: Now a unique_ptr.
1073 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1074 (ada_get_symbol_cache): Use 'new'.
1075 (ada_clear_symbol_cache): Rewrite.
1076
1228719f
TT
10772021-03-02 Tom Tromey <tromey@adacore.com>
1078
1079 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1080 is null.
1081
bb3a4efe
LS
10822021-02-27 Lancelot Six <lsix@lancelotsix.com>
1083
1084 PR gdb/27393
1085 * source.c (add_path): Skip empty dirnames.
1086
26b43ca6 10872021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
1088
1089 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1090 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1091
dffdd8b5
SM
10922021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1093
1094 PR gdb/26861
1095 * target.c (target_mourn_inferior): Only compare pids in
1096 target_mourn_inferior.
1097
64d38fdd
JM
10982021-02-25 Jan Matyas <jmatyas@codasip.com>
1099
1100 PR gdb/26819
1101 * remote.c (remote_target::start_remote): Ensure the single
1102 thread, automatically added for remote targets without the
1103 concept of threading, is initially in set to the "resumed"
1104 state.
1105 * remote.c (remote_target::add_current_inferior_and_thread):
1106 Add return value - return the main thread.
1107
2450ad54
JV
11082021-02-25 Jan Vrany <jan.vrany@labware.com>
1109
1110 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1111 (mi_tsv_created): Likewise.
1112 (mi_tsv_deleted): Likewise.
1113
30c80d88
TV
11142021-02-25 Tom de Vries <tdevries@suse.de>
1115
1116 PR symtab/27354
1117 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1118 section_kind for &dwo_file->sections.info.
1119
68337b8b
AB
11202021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1121
1122 PR fortran/26155
1123 * f-lang.c (fortran_argument_convert): Delete declaration.
1124 (fortran_prepare_argument): New function.
1125 (evaluate_subexp_f): Move logic to new function
1126 fortran_prepare_argument.
1127
faeb9f13
AB
11282021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1129
1130 * f-exp.y (f77_keywords): Add 'associated'.
1131 * f-lang.c (fortran_associated): New function.
1132 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1133 (operator_length_f): Likewise.
1134 (print_unop_or_binop_subexp_f): New function.
1135 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1136 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1137 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1138 (operator_check_f): Likewise.
1139 * std-operator.def: Add FORTRAN_ASSOCIATED.
1140
170f4b23
AB
11412021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1142
1143 * f-exp.y (fortran_operators): Add ".xor.".
1144
aa659cfa
TV
11452021-02-24 Tom de Vries <tdevries@suse.de>
1146
1147 PR symtab/27336
1148 * dwarf2/attribute.c (attribute::form_is_signed): New function
1149 factored out of ...
1150 * dwarf2/attribute.h (attribute::as_signed): ... here.
1151 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1152 (attribute::form_is_signed): Declare.
1153 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1154 for DW_AT_decl_file.
1155
268c77c1
KB
11562021-02-24 Kevin Buettner <kevinb@redhat.com>
1157
1158 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1159 order for <sys/ptrace.h> and <asm/ptrace.h>.
1160
665af52e
KB
11612021-02-24 Kevin Buettner <kevinb@redhat.com>
1162
1163 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1164 <sys/ptrace.h>.
1165
dd80d750
AB
11662021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1167
1168 * exec.c (set_section_command): Move variable declarations into
1169 the function body, and use std::string instead of a fixed size
1170 buffer.
1171
336aa7b7
AB
11722021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1173
1174 * exec.c (exec_target::get_section_table): Delete member function.
1175 (section_table_read_available_memory): Use current_top_target, not
1176 just the exec_ops target.
1177 * target-delegates.c: Regenerate.
1178 * target.c (default_get_section_table): New function.
1179 * target.h (target_ops::get_section_table): Change default
1180 behaviour to call default_get_section_table.
1181 (default_get_section_table): Declare.
1182
02f7d26b
AB
11832021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1184
1185 * exec.c (exec_target::close): Call new clear_target_sections
1186 function.
1187 (program_space::add_target_sections): Update name of member
1188 variable.
1189 (program_space::add_target_sections): Update name of member
1190 variable.
1191 (program_space::remove_target_sections): Likewise.
1192 (exec_one_fork): Use new target_sections member function.
1193 (exec_target::get_section_table): Likewise.
1194 (exec_target::files_info): Likewise.
1195 (set_section_command): Likewise.
1196 (exec_set_section_address): Likewise.
1197 (exec_target::has_memory): Use new target_sections member
1198 function.
1199 * progspace.h (program_space::clear_target_sections): New member
1200 function.
1201 (program_space::target_sections): Rename member variable to
1202 m_target_sections, replace with a new member function.
1203 (program_space::m_target_sections): New member variable.
1204 * solib-dsbt.c (scan_dyntag): Use new member function.
1205 * solib-svr4.c (scan_dyntag): Likewise.
1206
19cf757a
AB
12072021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1208
1209 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1210 return type const.
1211 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1212 (section_table_read_available_memory): Make local const.
1213 (exec_target::xfer_partial): Make local const.
1214 (print_section_info): Make parameter const.
1215 * gdb/exec.h (print_section_info): Likewise.
1216 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1217 const.
1218 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1219 Likewise.
1220 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1221 Likewise.
1222 * gdb/s390-tdep.c (s390_load): Likewise.
1223 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1224 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1225 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1226 Rename to...
1227 (target_debug_print_const_target_section_table_p): ...this.
1228 * gdb/target-delegates.c: Regenerate.
1229 * gdb/target.c (target_get_section_table): Make return type const.
1230 (target_section_by_addr): Likewise. Also make some locals const.
1231 (memory_xfer_partial_1): Make some locals const.
1232 * gdb/target.h (struct target_ops) <get_section_table>: Make
1233 return type const.
1234 (target_section_by_addr): Likewise.
1235 (target_get_section_table): Likewise.
1236
02a79309
AB
12372021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1238
1239 * NEWS: Mention new 'maint info target-sections' command.
1240 * maint.c (maintenance_info_target_sections): New function.
1241 (_initialize_maint_cmds): Register new command.
1242
895b7b4e
AB
12432021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1246 (riscv_features_from_bfd): ...this. Change parameter type to
1247 'bfd*', and update as required.
1248 (riscv_find_default_target_description): Update call to
1249 riscv_features_from_bfd. Select a default xlen based on
1250 info.bfd_arch_info.
1251 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1252
bc3c0632
AB
12532021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1254
1255 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1256 dynamic types in UNOP_IND.
1257
08ac5771
SM
12582021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1259
1260 PR gdb/26828
1261 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1262 Instantiate queue.
1263 (~dwarf2_queue_guard): Clear queue.
1264 (queue_comp_unit): Assert that queue is
1265 instantiated.
1266 (process_queue): Adjust.
1267 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1268
616c069a
SM
12692021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1270
1271 PR gdb/26828
1272 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1273 to decide whether or not to enqueue it for expansion.
1274 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1275 after calling maybe_queue_comp_unit.
1276
897608ed
SM
12772021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1278
1279 * linux-nat.c (linux_nat_filter_event): Return void.
1280
15908a11
TT
12812021-02-22 Tom Tromey <tromey@adacore.com>
1282
1283 * solib-svr4.c (enable_break): Update.
1284 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1285 type.
1286 (target_bfd_reopen): Change parameter type.
1287 * bfd-target.h (target_bfd_reopen): Change parameter type.
1288
f53fc427
SM
12892021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1290
1291 * thread.c (add_thread_silent): Add assert.
1292 (find_thread_ptid): Add assert.
1293
de146e19
SM
12942021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1295
1296 PR gdb/27435
1297 * inf-ptrace.c (struct target_unpusher): Move to target.h.
1298 (target_unpush_up): Likewise.
1299 * procfs.c (procfs_target::attach): Push target early. Use
1300 target_unpush_up to unpush target in case of error.
1301 * target.h (struct target_unpusher): Move here.
1302 (target_unpush_up): Likewise.
1303
8488c357
KB
13042021-02-19 Kevin Buettner <kevinb@redhat.com>
1305
1306 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
1307 (which in turn includes <gnulib/config.h>) before include
1308 of <signal.h>.
1309
5a9f5403
NC
13102021-02-19 Nelson Chu <nelson.chu@sifive.com>
1311
1312 PR 27158
1313 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
1314 (decode_j_type_insn): Likewise.
1315 (decode_cj_type_insn): Likewise.
1316 (decode_b_type_insn): Likewise.
1317 (decode): Likewise.
1318
26f53cd3
TT
13192021-02-18 Tom Tromey <tom@tromey.com>
1320
1321 * expression.h (struct expression) <evaluate>: Declare method.
1322 * eval.c (evaluate_subexp): Simplify.
1323 (expression::evaluate): New method.
1324 (evaluate_expression, evaluate_type): Use expression::evaluate.
1325
6a780b67
KB
13262021-02-17 Kevin Buettner <kevinb@redhat.com>
1327
1328 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1329 to accessing it.
1330 (ada_lookup_name_info): Likewise.
1331
adeab0c5
MF
13322021-02-13 Mike Frysinger <vapier@gentoo.org>
1333
1334 * aclocal.m4: Regenerate.
1335
089436f7
TV
13362021-02-12 Tom de Vries <tdevries@suse.de>
1337
1338 PR threads/26228
1339 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1340 (lin_thread_signals): New static var.
1341 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1342 New function.
1343 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1344 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1345 Declare.
1346 * linux-thread-db.c (check_thread_signals): Use
1347 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1348
96df3e28
AB
13492021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1350
1351 * f-exp.y (f77_keywords): Add allocated.
1352 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
1353 (operator_length_f): Likewise.
1354 (print_subexp_f): Likewise.
1355 (dump_subexp_body_f): Likewise.
1356 (operator_check_f): Likewise.
1357 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
1358
05f68f52
TV
13592021-02-11 Tom de Vries <tdevries@suse.de>
1360
1361 PR symtab/27353
1362 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
1363 Return true for DW_FORM_strx.
1364
b260f8d6
TT
13652021-02-11 Tom Tromey <tromey@adacore.com>
1366
1367 PR gdb/27383:
1368 * parse.c (write_exp_symbol_reference): Write sym.block.
1369
bf3386f0
AB
13702021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1371
1372 * NEWS: Mention changes to 'maint info sections'.
1373 * maint.c (match_substring): Return a bool, fix whitespace issue.
1374 (struct single_bfd_flag_info): New struct.
1375 (bfd_flag_info): New static global.
1376 (match_bfd_flags): Return a bool, use bfd_flag_info.
1377 (print_bfd_flags): Use bfd_flag_info.
1378 (maint_print_section_info): Delete trailing whitespace.
1379 (struct maint_info_sections_opts): New struct.
1380 (maint_info_sections_option_defs): New static global.
1381 (maint_info_sections_completer): New function.
1382 (maintenance_info_sections): Use option parsing mechanism.
1383 (_initialize_maint_cmds): Update command help text for 'maint info
1384 sections' and register a command completer.
1385
4790db14
AB
13862021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1387
1388 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
1389 functionality merged into...
1390 (maint_print_all_sections): ...this new function.
1391 (maintenance_info_sections): Make use of maint_print_all_sections,
1392 allow all objects to be printed even where there's no executable.
1393
1db66e34
AB
13942021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1395
1396 * breakpoint.c (resolve_sal_pc): Make use of
1397 bound_minimal_symbol::obj_section.
1398 * maint.c (maintenance_translate_address): Likewise.
1399 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1400 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1401 member function.
1402 * printcmd.c (info_address_command): Make use of
1403 bound_minimal_symbol::obj_section.
1404
18b8df43
AM
14052021-02-11 Alan Modra <amodra@gmail.com>
1406
1407 * arm-symbian-tdep.c: Delete.
1408 * NEWS: Mention arm-symbian removal.
1409 * Makefile.in: Remove arm-symbian-tdep entries.
1410 * configure.tgt: Remove arm*-*-symbianelf*.
1411 * doc/gdb.texinfo: Remove mention of SymbianOS.
1412 * osabi.c (gdb_osabi_names): Remove "Symbian".
1413 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
1414 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
1415 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
1416 handling.
1417 * testsuite/gdb.base/dup-sect.exp: Likewise.
1418 * testsuite/gdb.base/long_long.exp: Likewise.
1419 * testsuite/gdb.base/solib-weak.exp: Likewise.
1420 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
1421 * testsuite/gdb.python/py-section-script.exp: Likewise.
1422 * testsuite/lib/dwarf.exp: Likewise.
1423 * testsuite/lib/gdb.exp: Likewise.
1424
e92c8eb8
AB
14252021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1426
1427 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
1428 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
1429 (one_or_two_args): New pattern.
1430 (f77_keywords): Add lbound and ubound.
1431 * f-lang.c (fortran_bounds_all_dims): New function.
1432 (fortran_bounds_for_dimension): New function.
1433 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
1434 (operator_length_f): Likewise.
1435 (print_subexp_f): Likewise.
1436 (dump_subexp_body_f): Likewise.
1437 (operator_check_f): Likewise.
1438 * std-operator.def (FORTRAN_LBOUND): Define.
1439 (FORTRAN_UBOUND): Define.
1440
a52d653e
AB
14412021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1442
1443 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
1444 and set_section_index member functions where appropriate.
1445 * coffread.c (coff_symtab_read): Likewise.
1446 (process_coff_symbol): Likewise.
1447 * ctfread.c (set_symbol_address): Likewise.
1448 * dwarf2/read.c (add_partial_symbol): Likewise.
1449 (var_decode_location): Likewise.
1450 * language.c: Likewise.
1451 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
1452 (compact_minimal_symbols): Likewise.
1453 (minimal_symbol_upper_bound): Likewise.
1454 * objfiles.c (relocate_one_symbol): Likewise.
1455 * psympriv.h (partial_symbol::obj_section): Likewise.
1456 (partial_symbol::address): Likewise.
1457 * psymtab.c (partial_symtab::add_psymbol): Likewise.
1458 * stabsread.c (scan_file_globals): Likewise.
1459 * symmisc.c (dump_msymbols): Likewise.
1460 * symtab.c (general_symbol_info::obj_section): Likewise.
1461 (fixup_section): Likewise.
1462 (get_msymbol_address): Likewise.
1463 * symtab.h (general_symbol_info::section): Rename to...
1464 (general_symbol_info::m_section): ...this.
1465 (general_symbol_info::set_section_index): New member function.
1466 (general_symbol_info::section_index): Likewise.
1467 (SYMBOL_SECTION): Delete.
1468 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1469 set_section_index member functions where appropriate.
1470 (MSYMBOL_SECTION): Delete.
1471 (symbol::symbol): Update to initialize 'm_section'.
1472 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1473 (process_xcoff_symbol): Likewise.
1474
ebbc3a7d
AB
14752021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1476
1477 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1478 MSYMBOL_OBJ_SECTION.
1479 * findvar.c (language_defn::read_var_value): Likewise.
1480 * infcmd.c (jump_command): Likewise.
1481 * linespec.c (minsym_found): Likewise.
1482 * maint.c (maintenance_translate_address): Likewise.
1483 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1484 (minimal_symbol_upper_bound): Likewise.
1485 * parse.c (find_minsym_type_and_address): Likewise.
1486 (operator_check_standard): Likewise.
1487 * printcmd.c (info_address_command): Likewise.
1488 * symmisc.c (dump_msymbols): Likewise.
1489 (print_symbol): Likewise.
1490 * symtab.c (general_symbol_info::obj_section): Define new
1491 function.
1492 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1493 (find_pc_sect_compunit_symtab): Likewise.
1494 (find_function_start_sal): Likewise.
1495 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1496 MSYMBOL_OBJ_SECTION.
1497 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1498 function.
1499 (SYMBOL_OBJ_SECTION): Delete.
1500 (MSYMBOL_OBJ_SECTION): Delete.
1501
9bb305b3
TT
15022021-02-09 Tom Tromey <tom@tromey.com>
1503
1504 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1505
cf2b2075
TV
15062021-02-09 Tom de Vries <tdevries@suse.de>
1507
1508 PR symtab/27341
1509 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1510 construct an array type. Add assert to ensure that element_type is
1511 not being modified.
1512
03642b71
AB
15132021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1514
1515 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1516 (gcore_collect_regset_section_cb): Delete.
1517 (gcore_collect_thread_registers): Delete.
1518 (gcore_build_thread_register_notes): Delete.
1519 (gcore_find_signalled_thread): Delete.
1520 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1521 'gdbarch' and 'thread_info' declarations.
1522 (gcore_build_thread_register_notes): Delete declaration.
1523 (gcore_find_signalled_thread): Likewise.
1524 * fbsd-tdep.c: Remove 'gcore.h' include.
1525 (struct fbsd_collect_regset_section_cb_data): New struct.
1526 (fbsd_collect_regset_section_cb): New function.
1527 (fbsd_collect_thread_registers): New function.
1528 (struct fbsd_corefile_thread_data): New struct.
1529 (fbsd_corefile_thread): New function.
1530 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1531 * linux-tdep.c: Remove 'gcore.h' include.
1532 (struct linux_collect_regset_section_cb_data): New struct.
1533 (linux_collect_regset_section_cb): New function.
1534 (linux_collect_thread_registers): New function.
1535 (linux_corefile_thread): Call Linux specific code.
1536 (find_signalled_thread): New function.
1537 (linux_make_corefile_notes): Call find_signalled_thread.
1538
f73e424f
TT
15392021-02-09 Tom Tromey <tromey@adacore.com>
1540
1541 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1542 not_lval value.
1543 * value.c (value_contents_copy_raw): Now static.
1544 * value.h (value_contents_copy_raw): Don't declare.
1545
a4f0544b
TT
15462021-02-09 Tom Tromey <tromey@adacore.com>
1547
1548 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1549 fields.
1550
9b3e4b5d
SV
15512021-02-08 Shahab Vahedi <shahab@synopsys.com>
1552
1553 PR tdep/27369
1554 * arc-linux-tdep.c (handle_atomic_sequence): New.
1555 (arc_linux_software_single_step): Call handle_atomic_sequence().
1556
29db1eb3
AB
15572021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1558
1559 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1560 function.
1561 (REQUIRE_WINDOW): Call is_valid member function.
1562 (REQUIRE_WINDOW_FOR_SETTER): New define.
1563 (gdbpy_tui_is_valid): Call is_valid member function.
1564 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1565 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1566 tui_active too.
1567 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1568 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1569 the function.
1570
e0c23e11
AB
15712021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1572
1573 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1574 for the title is not nullptr.
1575
1cf23996
AB
15762021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1577
1578 * tui-layout.c (saved_tui_windows): Delete.
1579 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1580 call new get_windows member function instead.
1581 (tui_get_window_by_name): Check in tui_windows.
1582 (tui_layout_window::apply): Don't add to tui_windows.
1583 * tui-layout.h (tui_layout_base::get_windows): New member function.
1584 (tui_layout_window::get_windows): Likewise.
1585 (tui_layout_split::get_windows): Likewise.
1586
a53a2657
AB
15872021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1588
1589 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1590 of the window objects.
1591
2708dbbd
AB
15922021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1593
1594 * python/python.c (gdbpy_print_stack): Reformat an error message.
1595
cd074e04
AB
15962021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1597
1598 * tui/tui-interp.c (tui_command_line_handler): New function.
1599 (tui_interp::resume): Register tui_command_line_handler as the
1600 input_handler.
1601 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1602 function.
1603 (tui_getc_1): Delete handling of '\n' and '\r'.
1604 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1605
4cf28e91
HD
16062021-02-07 Hannes Domani <ssbssa@yahoo.de>
1607
1608 * tui/tui-regs.c (tui_data_window::display_registers_from):
1609 Mark invisible register sub windows.
1610 (tui_data_window::check_register_values): Ignore invisible
1611 register sub windows.
1612
3537bc23
HD
16132021-02-07 Hannes Domani <ssbssa@yahoo.de>
1614
1615 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1616 n_spaces with a negative value.
1617
5fc2d6aa
HD
16182021-02-07 Hannes Domani <ssbssa@yahoo.de>
1619
1620 * tui/tui-regs.c (tui_data_window::display_registers_from):
1621 Add refresh_window call.
1622
83962f83
HD
16232021-02-07 Hannes Domani <ssbssa@yahoo.de>
1624
1625 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1626
0110ec82
SM
16272021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1628
1629 * symmisc.c (std_in, std_out, std_err): Remove.
1630 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1631
7c6944ab
TV
16322021-02-05 Tom de Vries <tdevries@suse.de>
1633
1634 PR breakpoints/27330
1635 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1636 glibc object file has debug info.
1637
e77b0004
TV
16382021-02-05 Tom de Vries <tdevries@suse.de>
1639
1640 PR symtab/27333
1641 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1642
0e857c82
TV
16432021-02-05 Tom de Vries <tdevries@suse.de>
1644
1645 PR breakpoints/27313
1646 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1647 syscall numbers.
1648
bdfea17e
TT
16492021-02-05 Tom Tromey <tom@tromey.com>
1650
1651 * compile/compile-c-support.c (get_compile_context)
1652 (c_get_compile_context, cplus_get_compile_context): Change return
1653 type.
1654 * language.c (language_defn::get_compile_instance): New method.
1655 * language.h (language_defn::get_compile_instance): Change return
1656 type. No longer inline.
1657 * c-lang.c (c_language::get_compile_instance): Change return type.
1658 (cplus_language::get_compile_instance): Change return type.
1659 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1660 Change return type.
1661 * compile/compile.c (compile_to_object): Update.
1662
1b30f421
TT
16632021-02-05 Tom Tromey <tom@tromey.com>
1664
1665 * parser-defs.h (write_exp_symbol_reference): Declare.
1666 * parse.c (write_exp_symbol_reference): New function.
1667 * p-exp.y (variable): Use write_exp_symbol_reference.
1668 * m2-exp.y (variable): Use write_exp_symbol_reference.
1669 * f-exp.y (variable): Use write_exp_symbol_reference.
1670 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1671 * c-exp.y (variable): Use write_exp_symbol_reference.
1672
ae710496
TV
16732021-02-05 Tom de Vries <tdevries@suse.de>
1674
1675 PR exp/27265
1676 * valarith.c (complex_binop): Throw an error if complex type can't
1677 be created.
1678
d3b54e63
TV
16792021-02-05 Tom de Vries <tdevries@suse.de>
1680
1681 PR symtab/27307
1682 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1683 return.
1684
fc9a13fb
TV
16852021-02-05 Tom de Vries <tdevries@suse.de>
1686
1687 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1688
04b4939b
MF
16892021-02-04 Mike Frysinger <vapier@gentoo.org>
1690
1691 * configure.tgt (riscv*-*-*): Set gdb_sim.
1692
6ff267e1
SM
16932021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1694
1695 * target.c (target_is_non_stop_p): Return bool.
1696 * target.h (target_is_non_stop_p): Return bool.
1697
fdbc5215
SM
16982021-02-04 Simon Marchi <simon.marchi@efficios.com>
1699
1700 * record-full.c (record_full_async_inferior_event_handler):
1701 Don't clear async event handler.
1702 (record_full_base_target::wait): Clear async event handler at
1703 beginning.
1704
85d3ad8e
SM
17052021-02-04 Simon Marchi <simon.marchi@efficios.com>
1706
1707 * record-btrace.c (record_btrace_handle_async_inferior_event):
1708 Don't clear async event handler.
1709 (record_btrace_target::wait): Clear async event handler at
1710 beginning.
1711
baa8575b
SM
17122021-02-04 Simon Marchi <simon.marchi@efficios.com>
1713
1714 * remote.c (remote_target::wait): Clear async event handler at
1715 beginning, mark if needed at the end.
1716 (remote_async_inferior_event_handler): Don't set or clear async
1717 event handler.
1718
6b36ddeb
SM
17192021-02-04 Simon Marchi <simon.marchi@efficios.com>
1720
1721 * async-event.h (async_event_handler_func): Add documentation.
1722 * async-event.c (check_async_event_handlers): Don't clear
1723 async_event_handler ready flag.
1724 * infrun.c (infrun_async_inferior_event_handler): Clear ready
1725 flag.
1726 * record-btrace.c (record_btrace_handle_async_inferior_event):
1727 Likewise.
1728 * record-full.c (record_full_async_inferior_event_handler):
1729 Likewise.
1730 * remote-notif.c (remote_async_get_pending_events_handler):
1731 Likewise.
1732 * remote.c (remote_async_inferior_event_handler): Likewise.
1733
72d383bb
SM
17342021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
1735
1736 * infrun.c (handle_inferior_event): Move stop_soon variable to
1737 inner scope.
1738
408f6686
PA
17392021-02-03 Pedro Alves <pedro@palves.net>
1740
1741 * infcmd.c (detach_command): Hold strong reference to target, and
1742 if all-stop on entry, restart threads on exit.
1743 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
1744 (restart_stepped_thread): ... this new function. Also handle
1745 trap_expected.
1746 (restart_after_all_stop_detach): New function.
1747 * infrun.h (restart_after_all_stop_detach): Declare.
1748
ac7d717c
PA
17492021-02-03 Pedro Alves <pedro@palves.net>
1750
1751 * infrun.c (struct step_over_info): Initialize fields.
1752 (prepare_for_detach): Handle ongoing in-line step over.
1753
e87f0fe8
PA
17542021-02-03 Pedro Alves <pedro@palves.net>
1755
1756 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
1757 here...
1758 * remote.c (remote_target::remote_detach_1): ... and here ...
1759 * target.c (target_detach): ... instead of here.
1760 * target.h (target_ops::detach): Add comment.
1761
8ff53139
PA
17622021-02-03 Pedro Alves <pedro@palves.net>
1763
1764 * infrun.c (struct wait_one_event): Move higher up.
1765 (prepare_for_detach): Abort in-progress displaced steps instead of
1766 letting them complete.
1767 (handle_one): If the inferior is detaching, don't add the thread
1768 back to the global step-over chain.
1769 (restart_threads): Don't restart threads if detaching.
1770 (handle_signal_stop): Remove inferior::detaching reference.
1771
91475068
PA
17722021-02-03 Pedro Alves <pedro@palves.net>
1773
1774 * infrun.c (prepare_for_detach): Don't release scoped_restore
1775 before returning.
1776
d758e62c
PA
17772021-02-03 Pedro Alves <pedro@palves.net>
1778
1779 * infrun.c (handle_one): New function, factored out from ...
1780 (stop_all_threads): ... here.
1781
b0083dd7
PA
17822021-02-03 Pedro Alves <pedro@palves.net>
1783
1784 * remote.c (remote_notif_stop_ack): Don't error out on
1785 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
1786 (remote_target::discard_pending_stop_replies): Don't delete
1787 in-flight notification; instead, clear its contents.
1788
621cc310
PA
17892021-02-03 Pedro Alves <pedro@palves.net>
1790
1791 * remote.c (extended_remote_target::attach): Set target async in
1792 the target-non-stop path too.
1793
2ab76a18
PA
17942021-02-03 Pedro Alves <pedro@palves.net>
1795
1796 PR gdb/27055
1797 * infrun.c (handle_signal_stop): Move main context_switch call
1798 earlier, before STOP_QUIETLY_NO_SIGSTOP.
1799
2e3773ff
LS
18002021-02-02 Lancelot SIX <lsix@lancelotsix.com>
1801
1802 * NEWS (Changed commands): Add entry for the behavior change of
1803 the inferior command.
1804 * inferior.c (inferior_command): When no argument is given to the
1805 inferior command, display info about the currently selected
1806 inferior.
1807
e57933dc
SM
18082021-02-02 Simon Marchi <simon.marchi@efficios.com>
1809
1810 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
1811 a sect_offset.
1812 (read_attribute_reprocess): Adjust.
1813
2b0c7f41
SM
18142021-02-02 Simon Marchi <simon.marchi@efficios.com>
1815
1816 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
1817 <gnu_ranges_base>: ... this...
1818 <rnglists_base>: ... and this.
1819 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
1820 <gnu_ranges_base>: ... this...
1821 <rnglists_base>: ... and this.
1822 (read_cutu_die_from_dwo): Adjust
1823 (dwarf2_get_pc_bounds): Adjust
1824 (dwarf2_record_block_ranges): Adjust.
1825 (read_full_die_1): Adjust
1826 (partial_die_info::read): Adjust.
1827 (read_rnglist_index): Adjust.
1828
a1c40103
SM
18292021-02-02 Simon Marchi <simon.marchi@efficios.com>
1830
1831 PR gdb/26813
1832 * dwarf2/read.c (read_loclists_rnglists_header): Add
1833 header_offset parameter and use it.
1834 (read_loclist_index): Read header of the current contribution,
1835 not the one at the beginning of the section.
1836 (read_rnglist_index): Likewise.
1837
b1829e1b
SM
18382021-02-02 Simon Marchi <simon.marchi@efficios.com>
1839
1840 PR gdb/26813
1841 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
1842 requires_reprocessing flag.
1843 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
1844 DW_FORM_loclistx.
1845 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
1846 and DW_FORM_loclistx.
1847 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
1848 instead of set_address for DW_FORM_loclistx and
1849 DW_FORM_rnglistx.
1850
0c800c6e
SM
18512021-02-02 Simon Marchi <simon.marchi@efficios.com>
1852
1853 * dwarf2/read.c (read_loclist_index): Remove bound check for
1854 start of offset.
1855 (read_rnglist_index): Likewise.
1856
05787bad
SM
18572021-02-02 Simon Marchi <simon.marchi@efficios.com>
1858
1859 * dwarf2/read.c (read_loclist_index): Add bound check for the end
1860 of the offset.
1861
5e4d9bbc
SM
18622021-02-02 Simon Marchi <simon.marchi@efficios.com>
1863
1864 * dwarf2/read.c (read_rnglist_index): Fix bound check.
1865
a0c1eeba
SM
18662021-02-02 Simon Marchi <simon.marchi@efficios.com>
1867
1868 * dwarf2/read.c (read_loclist_index): Change complaints into
1869 errors.
1870
2bd3e4b8
TV
18712021-02-02 Tom de Vries <tdevries@suse.de>
1872
1873 PR symtab/24620
1874 * dwarf2/index-write.c (write_one_signatured_type): Skip if
1875 psymtab == nullptr.
1876
82a1fd3a
AB
18772021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
1878
1879 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
1880 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
1881 here from linux-tdep.c and given a new name. Minor cleanups.
1882 (gcore_collect_regset_section_cb): Likewise.
1883 (gcore_collect_thread_registers): Likewise.
1884 (gcore_build_thread_register_notes): Likewise.
1885 (gcore_find_signalled_thread): Likewise.
1886 * gcore.h (gcore_build_thread_register_notes): Declare.
1887 (gcore_find_signalled_thread): Declare.
1888 * fbsd-tdep.c: Add 'gcore.h' include.
1889 (struct fbsd_collect_regset_section_cb_data): Delete.
1890 (fbsd_collect_regset_section_cb): Delete.
1891 (fbsd_collect_thread_registers): Delete.
1892 (struct fbsd_corefile_thread_data): Delete.
1893 (fbsd_corefile_thread): Delete.
1894 (fbsd_make_corefile_notes): Call
1895 gcore_build_thread_register_notes instead of the now deleted
1896 FreeBSD code.
1897 * linux-tdep.c: Add 'gcore.h' include.
1898 (struct linux_collect_regset_section_cb_data): Delete.
1899 (linux_collect_regset_section_cb): Delete.
1900 (linux_collect_thread_registers): Delete.
1901 (linux_corefile_thread): Call
1902 gcore_build_thread_register_notes.
1903 (find_signalled_thread): Delete.
1904 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1905
ebde6f2d
TV
19062021-01-29 Tom de Vries <tdevries@suse.de>
1907
1908 PR breakpoints/26063
1909 * infrun.c (process_event_stop_test): Reset
1910 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
1911 changed.
1912
0f93c3a2
AB
19132021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1914
1915 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
1916 assert. Extend the header comment.
1917
f237f998
AB
19182021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1919
1920 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
1921 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
1922 * tui/tui-data.h (TUI_STATUS_WIN): Define.
1923 (tui_locator_win_info_ptr): Delete declaration.
1924 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
1925 (tui_disasm_window::set_contents): Fetch state from tui_location
1926 global.
1927 (tui_get_begin_asm_address): Likewise.
1928 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
1929 for locator window.
1930 (get_locator_window): Delete.
1931 (initialize_known_windows): Treat locator window just like all the
1932 rest.
1933 * tui/tui-source.c: Add 'tui/tui-location.h' include.
1934 (tui_source_window::set_contents): Fetch state from tui_location
1935 global.
1936 (tui_source_window::showing_source_p): Likewise.
1937 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
1938 (_locator): Delete.
1939 (tui_locator_win_info_ptr): Delete.
1940 (tui_locator_window::make_status_line): Fetch state from
1941 tui_location global.
1942 (tui_locator_window::rerender): Remove check of 'handle',
1943 reindent function body.
1944 (tui_locator_window::set_locator_fullname): Delete.
1945 (tui_locator_window::set_locator_info): Delete.
1946 (tui_update_locator_fullname): Delete.
1947 (tui_show_frame_info): Likewise.
1948 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
1949 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
1950 tui/tui-location.h and renamed to
1951 tui_location_tracker::set_location.
1952 (tui_locator_window::set_locator_fullname): Moved to
1953 tui/tui-location.h and renamed to
1954 tui_location_tracker::set_fullname.
1955 (tui_locator_window::full_name): Delete.
1956 (tui_locator_window::proc_name): Delete.
1957 (tui_locator_window::line_no): Delete.
1958 (tui_locator_window::addr): Delete.
1959 (tui_locator_window::gdbarch): Delete.
1960 (tui_update_locator_fullname): Delete declaration.
1961 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
1962 for locator window.
1963 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
1964 (tui_display_main): Call function on tui_location directly.
1965 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
1966 * tui/tui-location.c: New file.
1967 * tui/tui-location.h: New file.
1968
8ee511af
SM
19692021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1970
1971 * gdbtypes.h (get_type_arch): Rename to...
1972 (struct type) <arch>: ... this, update all users.
1973
6ac37371
SM
19742021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
1975
1976 * gdbtypes.h (struct type) <arch>: Rename to...
1977 <arch_owner>: ... this, update all users.
1978 <objfile>: Rename to...
1979 <objfile_owner>: ... this, update all users.
1980
24cf6389
AB
19812021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
1982
1983 * gdbcmd.h (execute_command_to_string): Update comment.
1984 * top.c (execute_command_to_string): Update header comment.
1985
2a7f6487
TV
19862021-01-28 Tom de Vries <tdevries@suse.de>
1987
1988 PR breakpoints/27205
1989 * breakpoint.c (create_longjmp_master_breakpoint_probe)
1990 (create_longjmp_master_breakpoint_names): New function, factored out
1991 of ...
1992 (create_longjmp_master_breakpoint): ... here. Only try to install
1993 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
1994 breakpoint in libc.so failed.
1995
59b59f08
LS
19962021-01-27 Lancelot SIX <lsix@lancelotsix.com>
1997
1998 PR gdb/27133
1999 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2000 unique_ptr is released when the wrapped pointer is kept for later
2001 use.
2002
807f647c
MM
20032021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2004
2005 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2006 BLR and BR instructions.
2007 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2008 (enum aarch64_masks): New.
2009
4ef367bf
TT
20102021-01-26 Tom Tromey <tromey@adacore.com>
2011
2012 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2013 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2014 (windows_init_thread_list, windows_nat::handle_load_dll)
2015 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2016 (windows_nat_target::resume)
2017 (windows_nat_target::get_windows_debug_event)
2018 (windows_nat_target::interrupt, windows_xfer_memory)
2019 (windows_nat_target::close): Update.
2020 * nat/windows-nat.c (DEBUG_EVENTS): Use
2021 debug_prefixed_printf_cond.
2022 (matching_pending_stop, fetch_pending_stop)
2023 (continue_last_debug_event): Update.
2024
4cb1265b
MS
20252020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2026
2027 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2028 elfcore_write_file_note.
2029
d0cc52bd
SV
20302021-01-26 Shahab Vahedi <shahab@synopsys.com>
2031
2032 * arc-tdep.c (arc_add_reggroups): New function.
2033 (arc_gdbarch_init): Call arc_add_reggroups.
2034
ac3571d9 20352021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
2036
2037 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2038
9f6c202e
TV
20392021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2040 Simon Marchi <simon.marchi@polymtl.ca>
2041 Tom de Vries <tdevries@suse.de>
2042
2043 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2044 DW_AT_ranges.
2045
a625a8c9
TT
20462021-01-25 Tom Tromey <tromey@adacore.com>
2047
2048 * dwarf2/read.c (get_mpz): New function.
2049 (get_dwarf2_rational_constant): Use it.
2050
19184910
TT
20512021-01-25 Tom Tromey <tromey@adacore.com>
2052
2053 * ada-lang.c (resolve_subexp): Handle array context.
2054
b10bae18
TT
20552021-01-23 Tom Tromey <tom@tromey.com>
2056
2057 PR compile/25575
2058 * compile/compile-loc2c.c (note_register): New function.
2059 (pushf_register_address, pushf_register): Use it.
2060
3637a558
TT
20612021-01-23 Tom Tromey <tom@tromey.com>
2062
2063 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2064 Change type of "registers_used".
2065 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2066 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2067 (locexpr_generate_c_location, loclist_generate_c_location): Change
2068 type of "registers_used".
2069 * compile/compile.h (compile_dwarf_expr_to_c)
2070 (compile_dwarf_bounds_to_c): Update.
2071 * compile/compile-loc2c.c (pushf_register_address)
2072 (pushf_register, do_compile_dwarf_expr_to_c)
2073 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2074 of "registers_used".
2075 * compile/compile-c.h (generate_c_for_variable_locations):
2076 Update.
2077 * compile/compile-c-symbols.c (generate_vla_size)
2078 (generate_c_for_for_one_variable): Change type of
2079 "registers_used".
2080 (generate_c_for_variable_locations): Return std::vector.
2081 * compile/compile-c-support.c (generate_register_struct): Change
2082 type of "registers_used".
2083 (compute): Update.
2084
9f7f6cb8
TT
20852021-01-23 Tom Tromey <tom@tromey.com>
2086
2087 * compile/compile-internal.h (class compile_instance)
2088 <set_arguments>: Change return type.
2089 * compile/compile.c (compile_to_object): Remove call to reset.
2090 (compile_instance::set_arguments): Change return type.
2091
dd5ca05f
SM
20922021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2093
2094 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2095 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2096
d3ee35db
LS
20972021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2098
2099 * Makefile.in (SELFTESTS_SRCS): Add
2100 unittests/gdb_tilde_expand-selftests.c.
2101 * unittests/gdb_tilde_expand-selftests.c: New file.
2102
9d2d8a16
AB
21032021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2104
2105 PR cli/25956
2106 * NEWS: Mention new command.
2107 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2108 (version_style): Define.
2109 (cli_style_option::cli_style_option): Add intensity parameter, and
2110 use as appropriate.
2111 (_initialize_cli_style): Register version style set/show commands.
2112 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2113 (version_style): Declare.
2114 * top.c (print_gdb_version): Use version_stype, and styled_string
2115 to print the GDB version string.
2116
e7b43072
AB
21172021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2118
2119 * utils.c (emit_style_escape): Only emit an escape sequence if the
2120 requested style is different than the current applied style.
2121 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2122 current applied_style.
2123 (fputs_styled): Remove is_default check.
2124 (fputs_styled_unfiltered): Likewise.
2125 (vfprintf_styled_no_gdbfmt): Likewise.
2126
2189c312
SM
21272021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2128
2129 * remote.h (remote_debug_printf): New.
2130 (remote_debug_printf_nofunc): New.
2131 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2132 * remote.c: Use above macros throughout file.
2133
02349803
SM
21342021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2135
2136 * remote.h (remote_debug): Change to bool.
2137 * remote.c (remote_debug): Change to bool.
2138 (_initialize_remote): Adjust.
2139
cda09ec9
SM
21402021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2141
2142 * target.h (remote_debug): Move to...
2143 * remote.h (remote_debug): ... here.
2144 * top.c (remote_debug): Move to...
2145 * remote.c (remote_debug): ... here.
2146 * remote-sim.c: Include remote.h.
2147
baf2b57f
SM
21482021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2149
2150 * cli/cli-cmds.c (show_remote_debug): Remove.
2151 (show_remote_timeout): Remove.
2152 (_initialize_cli_cmds): Don't register commands.
2153 * remote.c (show_remote_debug): Move here.
2154 (show_remote_timeout): Move here.
2155 (_initialize_remote): Register commands.
2156
344e9841
SM
21572021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2158
2159 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2160 type::objfile method instead.
2161
30625020
SM
21622021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2163
2164 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2165 use the type::is_objfile_owned method.
2166
5b7d941b
SM
21672021-01-22 Simon Marchi <simon.marchi@efficios.com>
2168
2169 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2170 (TYPE_OWNER): Remove.
2171 (TYPE_OBJFILE): Adjust.
2172 (struct main_type) <flag_objfile_owned>: Rename to...
2173 <m_flag_objfile_owned>: ... this.
2174 <owner>: Rename to...
2175 <m_owner>: ... this.
2176 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2177 methods.
2178 (TYPE_ALLOC): Adjust.
2179 * gdbtypes.c (alloc_type): Adjust.
2180 (alloc_type_arch): Adjust.
2181 (alloc_type_copy): Adjust.
2182 (get_type_arch): Adjust.
2183 (smash_type): Adjust.
2184 (lookup_array_range_type): Adjust.
2185 (recursive_dump_type): Adjust.
2186 (copy_type_recursive): Adjust.
2187 * compile/compile-c-types.c (convert_func): Adjust.
2188 (convert_type_basic): Adjust.
2189 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2190 Adjust.
2191 * language.c
2192 (language_arch_info::type_and_symbol::alloc_type_symbol):
2193 Adjust.
2194
d5d24e12
LM
21952021-01-21 Luis Machado <luis.machado@linaro.org>
2196
2197 * coffread.c (enter_linenos): Passing string to complaint.
2198 * valops.c (value_assign): Make array view.
2199
a59902a7
SM
22002021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2201
2202 * auto-load.h (debug_auto_load): Move here.
2203 (auto_load_debug_printf): New.
2204 * auto-load.c: Use auto_load_debug_printf.
2205 (debug_auto_load): Move to header.
2206 * linux-thread-db.c (try_thread_db_load): Use
2207 auto_load_debug_printf.
2208 * main.c (captured_main_1): Likewise.
2209
d3abc0ce
SM
22102021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2211
2212 * f-valprint.c (f77_array_offset_tbl): Remove.
2213
1e15fcac
SM
22142021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2215
2216 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2217
439706e6
SM
22182021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2219
2220 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2221 of gdb_select.
2222
325d39e4
HD
22232021-01-21 Hannes Domani <ssbssa@yahoo.de>
2224
2225 PR python/19151
2226 * python/py-breakpoint.c (bppy_get_location): Handle
2227 bp_hardware_breakpoint.
2228 (bppy_init): Likewise.
2229 (gdbpy_breakpoint_created): Likewise.
2230
7cb6d92a
SM
22312021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2232
2233 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2234
d4dd4fca
SM
22352021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2236
2237 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2238 (_initialize_gdb_bfd): Adjust.
2239
de53369b
SM
22402021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2241
2242 PR gdb/26828
2243 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2244
17e593e9
SM
22452021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2246
2247 * dwarf2/read.c (follow_die_offset): Add logging.
2248 (dwarf2_per_objfile::age_comp_units): Add logging.
2249
6bd434d6
SM
22502021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2251
2252 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2253 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2254 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2255 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2256 * arm-tdep.c (struct frame_unwind): Make static.
2257 * auto-load.c (auto_load_safe_path_vec): Make static.
2258 * csky-tdep.c (csky_stub_unwind): Make static.
2259 * gdbarch.c (gdbarch_data_registry): Make static.
2260 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2261 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2262 * i386-tdep.c (i386_frame_setup_skip_insns,
2263 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2264 Make static.
2265 * infrun.c (observer_mode): Make static.
2266 * linux-nat.c (sigchld_action): Make static.
2267 * linux-thread-db.c (thread_db_list): Make static.
2268 * maint-test-options.c (maintenance_test_options_list):
2269 * mep-tdep.c (mep_csr_registers): Make static.
2270 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2271 (stats): Make static.
2272 * nat/linux-osdata.c (struct osdata_type): Make static.
2273 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2274 * progspace.c (last_program_space_num): Make static.
2275 * python/py-param.c (struct parm_constant): Remove struct type
2276 name.
2277 (parm_constants): Make static.
2278 * python/py-record-btrace.c (btpy_list_methods): Make static.
2279 * python/py-record.c (recpy_gap_type): Make static.
2280 * record.c (record_goto_cmdlist): Make static.
2281 * regcache.c (regcache_descr_handle): Make static.
2282 * registry.h (DEFINE_REGISTRY): Make definition static.
2283 * symmisc.c (std_in, std_out, std_err): Make static.
2284 * top.c (previous_saved_command_line): Make static.
2285 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2286 static.
2287 * unittests/command-def-selftests.c (nr_duplicates,
2288 nr_invalid_prefixcmd, lists): Make static.
2289 * unittests/observable-selftests.c (test_notification): Make
2290 static.
2291 * unittests/optional/assignment/1.cc (counter): Make static.
2292 * unittests/optional/assignment/2.cc (counter): Make static.
2293 * unittests/optional/assignment/3.cc (counter): Make static.
2294 * unittests/optional/assignment/4.cc (counter): Make static.
2295 * unittests/optional/assignment/5.cc (counter): Make static.
2296 * unittests/optional/assignment/6.cc (counter): Make static.
2297
a6c11cbb
JS
22982021-01-20 Joel Sherrill <joel@rtems.org>
2299
2300 PR gdb/27219
2301 * remote.c (struct remote_thread_info) <resume_state>: Rename
2302 to...
2303 <get_resume_state>: ... this.
2304 (remote_target::resume): Adjust.
2305 (remote_target::commit_resume): Adjust.
2306 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
2307
6f52fdf4
SDJ
23082021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
2309 Tom Tromey <tom@tromey.com>
2310
2311 * stap-probe.c (stap_parse_single_operand): Handle '!'
2312 operator.
2313 (stap_parse_argument_conditionally): Likewise.
2314 Skip spaces after processing open-parenthesis sub-expression.
2315 (stap_parse_argument_1): Skip spaces after call to
2316 stap_parse_argument_conditionally.
2317 Handle case when right-side expression is a parenthesized
2318 sub-expression.
2319 Skip spaces after call to stap_parse_argument_1.
2320
1c3b85ad
LS
23212021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2322
2323 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2324
a9a87d35
LM
23252021-01-19 Luis Machado <luis.machado@linaro.org>
2326
2327 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2328 memory and save data.
2329 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2330 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2331 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2332 (trad_frame_value_bytes_p): Remove.
2333 (trad_frame_reset_saved_regs): Adjust documentation.
2334 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2335 constructor and reset the state of the registers.
2336 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2337 (trad_frame_value_bytes_p, trad_frame_set_value)
2338 (trad_frame_set_realreg, trad_frame_set_addr)
2339 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2340 (trad_frame_set_reg_realreg): Update to call member function.
2341 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2342 (trad_frame_get_prev_register): Likewise.
2343
2344 * aarch64-tdep.c (aarch64_analyze_prologue)
2345 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2346 (aarch64_prologue_prev_register): Update to use member functions.
2347 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2348 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
2349 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
2350 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
2351 (arm_make_epilogue_frame_cache): Likewise.
2352 * avr-tdep.c (avr_frame_unwind_cache)
2353 (avr_frame_prev_register): Likewise.
2354 * cris-tdep.c (cris_scan_prologue): Likewise.
2355 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
2356 * frv-tdep.c (frv_analyze_prologue): Likewise.
2357 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
2358 * lm32-tdep.c (lm32_frame_cache): Likewise.
2359 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2360 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2361 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
2362 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
2363 (reset_saved_regs): Adjust to set realreg.
2364 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
2365 call member functions.
2366 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
2367 * s390-tdep.c (s390_prologue_frame_unwind_cache)
2368 (s390_backchain_frame_unwind_cache): Likewise.
2369 * score-tdep.c (score7_analyze_prologue)
2370 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
2371 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
2372 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2373 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
2374 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2375 * tilegx-tdep.c (tilegx_analyze_prologue)
2376 (tilegx_frame_cache): Likewise.
2377 * v850-tdep.c (v850_frame_cache): Likewise.
2378 * vax-tdep.c (vax_frame_cache): Likewise.
2379
bdec2917
LM
23802021-01-19 Luis Machado <luis.machado@linaro.org>
2381
2382 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
2383 of buffer + length.
2384 (put_frame_register_bytes): Likewise.
2385 Adjust documentation.
2386 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
2387 (safe_frame_unwind_memory): Likewise.
2388 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
2389 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
2390 gdb::array_view.
2391 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
2392 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
2393 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2394 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
2395 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
2396 * dwarf2/loc.c (rw_pieced_value): Likewise.
2397 * hppa-tdep.c (hppa_frame_cache): Likewise.
2398 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2399 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2400 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2401 (i386_linux_rt_sigtramp_start): Likewise.
2402 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2403 * i386-tdep.c (i386_register_to_value): Likewise.
2404 * i387-tdep.c (i387_register_to_value): Likewise.
2405 * ia64-tdep.c (ia64_register_to_value): Likewise.
2406 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2407 (m32r_linux_rt_sigtramp_start): Likewise.
2408 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2409 * m68k-tdep.c (m68k_register_to_value): Likewise.
2410 * mips-tdep.c (mips_register_to_value)
2411 (mips_value_to_register): Likewise.
2412 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
2413 (ppcfbsd_sigtramp_frame_cache): Likewise.
2414 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
2415 (ppcobsd_sigtramp_frame_cache): Likewise.
2416 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
2417 (rs6000_register_to_value): Likewise.
2418 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2419 * tramp-frame.c (tramp_frame_start): Likewise.
2420 * valops.c (value_assign): Likewise.
2421
ccbe4c82
LM
24222021-01-19 Luis Machado <luis.machado@linaro.org>
2423
2424 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
2425 array_view.
2426 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
2427 instead of buffer and size.
2428 (trad_frame_set_reg_value_bytes): Likewise.
2429 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
2430 (trad_frame_set_value_bytes): Likewise.
2431
0e7620dc
MF
24322021-01-18 Mike Frysinger <vapier@gentoo.org>
2433
2434 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
2435
6a9ad81c
AB
24362021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
2437
2438 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
2439 (riscv_fbsd_gregset): Use riscv_supply_regset.
2440 (riscv_fbsd_fpregset): Likewise.
2441 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
2442 (riscv_linux_fregset): Likewise.
2443 * riscv-tdep.c (riscv_supply_regset): Define new function.
2444 * riscv-tdep.h (riscv_supply_regset): Declare new function.
2445
d3d7d1ba
TV
24462021-01-18 Tom de Vries <tdevries@suse.de>
2447
2448 PR tdep/27172
2449 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
2450 New macro.
2451 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
2452 for SEGV_BNDERR.
2453
aa2838cc
SM
24542021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2455
2456 * remote.c (class remote_target) <remote_hostio_send_command,
2457 remote_hostio_parse_result>: Constify parameter.
2458 (remote_hostio_parse_result): Likewise.
2459 (remote_target::remote_hostio_send_command): Adjust.
2460 (remote_target::remote_hostio_pread_vFile): Adjust.
2461 (remote_target::fileio_readlink): Adjust.
2462 (remote_target::fileio_fstat): Adjust.
2463
b5c8f22d
SM
24642021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2465
2466 * remote.c (remote_target::start_remote): Move wait_status to
2467 narrower scope.
2468
e3b2741b
SM
24692021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2470
2471 * remote.c (class remote_target):
2472 <add_current_inferior_and_thread>: Constify parameter.
2473 (stop_reply_extract_thread): Likewise.
2474 (remote_target::get_current_thread): Likewise.
2475 (remote_target::add_current_inferior_and_thread): Likewise.
2476
cecb1912
SM
24772021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2478
2479 * remote.c (class remote_target)
2480 <remote_unpack_thread_info_response,
2481 parse_threadlist_response>: Constify parameter and/or return
2482 value and or local variable.
2483 (stub_unpack_int): Likewise.
2484 (unpack_nibble): Likewise.
2485 (unpack_byte): Likewise.
2486 (unpack_int): Likewise.
2487 (unpack_string): Likewise.
2488 (unpack_threadid): Likewise.
2489 (remote_target::remote_unpack_thread_info_response): Likewise.
2490 (remote_target::parse_threadlist_response): Likewise.
2491
5a11fff0
AB
24922021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2493
2494 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2495
17e89137
LS
24962021-01-14 Lancelot Six <lsix@lancelotsix.com>
2497
2498 * MAINTAINERS (Write After Approval): Add myself.
2499
58eadc4b
BE
25002021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2501
2502 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2503 because is_trivially_default_constructible was first implemented with
2504 gcc-5.
2505
5fae2a2c
TV
25062021-01-14 Tom de Vries <tdevries@suse.de>
2507
2508 PR breakpoints/27151
2509 * objfiles.h (in_plt_section): Handle .plt.sec.
2510
8f66807b
AB
25112021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2512
2513 PR gdb/26819
2514 * remote.c
2515 (remote_target::select_thread_for_ambiguous_stop_reply): New
2516 member function.
2517 (remote_target::process_stop_reply): Call
2518 select_thread_for_ambiguous_stop_reply.
2519
bd497355
SM
25202021-01-13 Simon Marchi <simon.marchi@efficios.com>
2521
2522 * record-btrace.c (class record_btrace_target): Remove.
2523 (record_btrace_target::commit_resume): Remove.
2524 * record-full.c (class record_full_target): Remove.
2525 (record_full_target::commit_resume): Remove.
2526
c9d22089
SM
25272021-01-13 Simon Marchi <simon.marchi@efficios.com>
2528
2529 * remote.c (enum class resume_state): New.
2530 (struct resumed_pending_vcont_info): New.
2531 (struct remote_thread_info) <resume_state, set_not_resumed,
2532 set_resumed_pending_vcont, resumed_pending_vcont_info,
2533 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2534 New.
2535 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2536 (remote_target::remote_add_thread): Adjust.
2537 (remote_target::process_initial_stop_replies): Adjust.
2538 (remote_target::resume): Adjust.
2539 (remote_target::commit_resume): Rely on state in
2540 remote_thread_info and not on tp->executing.
2541 (remote_target::process_stop_reply): Adjust.
2542
d8d1feb4
SM
25432021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2544
2545 * arc-tdep.h (arc_debug_printf): New.
2546 * arc-tdep.c: Use arc_debug_printf.
2547 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2548 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2549 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2550
fb0f5031
SM
25512021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2552
2553 * arc-tdep.h (arc_debug): Change type to bool.
2554 * arc-tdep.c (arc_debug): Change type to bool.
2555 (arc_analyze_prologue): Adjust.
2556 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2557 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2558
5bf7e91b
SM
25592021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2560
2561 * auto-load.c (auto_load_objfile_script_1): Use bool.
2562 (execute_script_contents): Use bool.
2563
db972fce
SM
25642021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2565
2566 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2567 comment here.
2568 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2569 comment to header.
2570 * extension-priv.h (struct extension_language_script_ops)
2571 <auto_load_enabled>: Return bool.
2572 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2573 comment here.
2574 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2575 comment to header.
2576 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2577 move comment here.
2578 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2579 move comment to header.
2580 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2581 move comment here.
2582 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2583 move comment to header.
2584
5e12f48f
SM
25852021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2586
2587 * auto-load.h (file_is_auto_load_safe): Change return type to
2588 bool, move comment here.
2589 * auto-load.c (file_is_auto_load_safe): Change return type and
2590 advice_printed to bool. Move comment to header.
2591
54ca9002
SM
25922021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2593
2594 * jit.c (jit_debug_printf): New, use throughout file.
2595
24a7f1b5
SM
25962021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2597
2598 * infrun.c (normal_stop): Fix indentation.
2599
fe7a351a
SM
26002021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2601
2602 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2603 declarations to ...
2604 * symfile.h: ... here.
2605 * symfile.c: Update doc.
2606
16e9019e
SM
26072021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2608
2609 * target.h (baud_rate, serial_parity): Move declarations...
2610 * serial.h: ... here.
2611 * main.c: Include serial.h.
2612 * serial.c (baud_rate, serial_parity): Update doc.
2613
b2f2ae0d
SM
26142021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2615
2616 * top.c (pre_init_ui_hook): Remove.
2617
5291fe3c
SP
26182021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2619
2620 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2621 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2622 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2623 * features/aarch64-fpu.xml: Add bfloat16 type.
2624
ce38f5ed
AB
26252021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2626
2627 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2628
7c654b71
AB
26292021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2630
2631 * f-exp.y (dot_ops): Rename to...
2632 (fortran_operators): ...this. Add a header comment. Add symbol
2633 based operators.
2634 (yylex): Update to use fortran_operators not dot_ops. Remove
2635 special handling for '**', this is now included in
2636 fortran_operators.
2637
c6185dce
SM
26382021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2639
2640 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2641 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2642 * aarch64-tdep.c: Use aarch64_debug_printf.
2643
eef401dc
SM
26442021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2645
2646 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2647 file.
2648
062eaacb
SM
26492021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2650
2651 * jit.c (jit_debug): Change type to bool.
2652 (_initialize_jit): Adjust.
2653
54585eee
TT
26542021-01-09 Tom Tromey <tom@tromey.com>
2655
2656 PR compile/23672
2657 * compile/compile.c (compile_to_object): Avoid crash when
2658 osabi_triplet_regexp returns NULL.
2659
bc167b6b
TT
26602021-01-09 Tom Tromey <tom@tromey.com>
2661
2662 * tracepoint.h (class collection_list) <append_exp>: Take a
2663 std::string.
2664 * tracepoint.c (collection_list::append_exp): Take a std::string.
2665 (encode_actions_1): Update.
2666
8fc48b79
TT
26672021-01-08 Tom Tromey <tromey@adacore.com>
2668
2669 * parse.c (parse_expression): Add void_context_p parameter. Use
2670 parse_exp_in_context.
2671 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2672 parse_expression.
2673 (print_command, call_command): Update.
2674 * expression.h (parse_expression): Add void_context_p parameter.
2675
3c8c6de2
AB
26762021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2677
2678 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2679 for internalvar components that have a dynamic location.
2680
1940319c
TV
26812021-01-08 Tom de Vries <tdevries@suse.de>
2682
2683 PR gdb/26881
2684 * breakpoint.c (create_exception_master_breakpoint_probe)
2685 (create_exception_master_breakpoint_hook): Factor out
2686 of ...
2687 (create_exception_master_breakpoint): ... here. Only try to install
2688 the master exception breakpoint in objfile.debug using the
2689 _Unwind_DebugHook method, if the install using probes in objfile
2690 failed.
2691
e3436813
AB
26922021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2693
2694 * f-lang.c (fortran_value_subarray): Call value_from_component.
2695
e904f56d
MF
26962021-01-07 Mike Frysinger <vapier@gentoo.org>
2697
2698 * remote-sim.c: Include memory-map.h.
2699 (gdbsim_target): Define memory_map override.
2700 (gdbsim_target::memory_map): Define.
2701
959d6a67
TT
27022021-01-07 Tom Tromey <tromey@adacore.com>
2703
2704 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2705
d4813f10
TT
27062021-01-07 Tom Tromey <tromey@adacore.com>
2707
2708 * ada-lang.c (add_component_interval): Start loop using vector's
2709 updated size.
2710
b49180ac
TT
27112021-01-06 Tom Tromey <tromey@adacore.com>
2712
2713 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2714 Do not cast result.
2715 * valarith.c (fixed_point_binop): Handle multiplication
2716 and division specially.
2717 * valops.c (value_to_gdb_mpq): New function.
2718 (value_cast_to_fixed_point): Use it.
2719
55195361
HD
27202021-01-05 Hannes Domani <ssbssa@yahoo.de>
2721
2722 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2723 Call wnoutrefresh instead of tui_win_info::refresh_window.
2724
1b6d4bb2
HD
27252021-01-05 Hannes Domani <ssbssa@yahoo.de>
2726
2727 * tui/tui-source.c (tui_source_window::show_line_number):
2728 Redraw second space after line number.
2729
b5ff370e
HD
27302021-01-05 Hannes Domani <ssbssa@yahoo.de>
2731
2732 PR tui/26927
2733 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2734 Fix source pad size in prefresh.
2735 (tui_source_window_base::show_source_content): Grow source pad
2736 if necessary.
2737
c68ea49f
MF
27382021-01-04 Mike Frysinger <vapier@gentoo.org>
2739
2740 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
2741 (bfin_frame_align): Use align_down.
2742
e4ad960a
TV
27432021-01-04 Tom de Vries <tdevries@suse.de>
2744
2745 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
2746 terminators that do not terminate anything.
2747
3ec3145c
SM
27482021-01-04 Simon Marchi <simon.marchi@efficios.com>
2749
2750 * debug.c (debug_print_depth): New.
2751 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
2752 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
2753 * infrun.c (start_step_over): Use
2754 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2755 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
2756 INFRUN_SCOPED_DEBUG_START_END.
2757 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
2758
e71daf80
SM
27592021-01-04 Simon Marchi <simon.marchi@efficios.com>
2760
2761 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
2762
335709bc
SM
27632021-01-04 Simon Marchi <simon.marchi@efficios.com>
2764
2765 * utils.c (vfprintf_unfiltered): Print timestamp only when
2766 previous debug output ended with a newline.
2767
098caef4
LM
27682021-01-04 Luis Machado <luis.machado@linaro.org>
2769
2770 Update all users of trad_frame_saved_reg to use the new member
2771 functions.
2772
2773 Remote all struct keywords from declarations of trad_frame_saved_reg
2774 types, except on forward declarations.
2775
2776 * aarch64-tdep.c: Update.
2777 * alpha-mdebug-tdep.c: Update.
2778 * alpha-tdep.c: Update.
2779 * arc-tdep.c: Update.
2780 * arm-tdep.c: Update.
2781 * avr-tdep.c: Update.
2782 * cris-tdep.c: Update.
2783 * csky-tdep.c: Update.
2784 * frv-tdep.c: Update.
2785 * hppa-linux-tdep.c: Update.
2786 * hppa-tdep.c: Update.
2787 * hppa-tdep.h: Update.
2788 * lm32-tdep.c: Update.
2789 * m32r-linux-tdep.c: Update.
2790 * m32r-tdep.c: Update.
2791 * m68hc11-tdep.c: Update.
2792 * mips-tdep.c: Update.
2793 * moxie-tdep.c: Update.
2794 * riscv-tdep.c: Update.
2795 * rs6000-tdep.c: Update.
2796 * s390-linux-tdep.c: Update.
2797 * s390-tdep.c: Update.
2798 * score-tdep.c: Update.
2799 * sparc-netbsd-tdep.c: Update.
2800 * sparc-sol2-tdep.c: Update.
2801 * sparc64-fbsd-tdep.c: Update.
2802 * sparc64-netbsd-tdep.c: Update.
2803 * sparc64-obsd-tdep.c: Update.
2804 * sparc64-sol2-tdep.c: Update.
2805 * tilegx-tdep.c: Update.
2806 * v850-tdep.c: Update.
2807 * vax-tdep.c: Update.
2808
2809 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
2810 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
2811
2812 * trad-frame.c: Update.
2813 Remove TF_REG_* enum.
2814 (trad_frame_alloc_saved_regs): Add a static assertion to check for
2815 a trivially-constructible struct.
2816 (trad_frame_reset_saved_regs): Adjust to use member function.
2817 (trad_frame_value_p): Likewise.
2818 (trad_frame_addr_p): Likewise.
2819 (trad_frame_realreg_p): Likewise.
2820 (trad_frame_value_bytes_p): Likewise.
2821 (trad_frame_set_value): Likewise.
2822 (trad_frame_set_realreg): Likewise.
2823 (trad_frame_set_addr): Likewise.
2824 (trad_frame_set_unknown): Likewise.
2825 (trad_frame_set_value_bytes): Likewise.
2826 (trad_frame_get_prev_register): Likewise.
2827 * trad-frame.h: Update.
2828 (trad_frame_saved_reg_kind): New enum.
2829 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
2830 <m_kind, m_reg>: New member fields.
2831 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
2832 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
2833 <is_addr, is_unknown, is_value_bytes>: New member functions.
2834
9898e882
SM
28352021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
2836
2837 * target-float.c: Fix typos.
2838
b66b4e65
HD
28392021-01-02 Hannes Domani <ssbssa@yahoo.de>
2840
2841 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
2842
b5b5650a
JB
28432021-01-01 Joel Brobecker <brobecker@adacore.com>
2844
2845 * gdbarch.sh: Update copyright year range.
2846
3666a048
JB
28472021-01-01 Joel Brobecker <brobecker@adacore.com>
2848
2849 Update copyright year range in copyright header of all GDB files.
2850
ff7e39b6
JB
28512021-01-01 Joel Brobecker <brobecker@adacore.com>
2852
2853 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
2854 to the list of directories to update.
2855
2b47c078
JB
28562021-01-01 Joel Brobecker <brobecker@adacore.com>
2857
2858 * top.c (print_gdb_version): Update copyright year.
2859
476923f1 28602021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 2861
476923f1 2862 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 2863
476923f1 2864For older changes see ChangeLog-2020.
c906108c
SS
2865\f
2866Local Variables:
2867mode: change-log
2868left-margin: 8
2869fill-column: 74
2870version-control: never
57da7796 2871coding: utf-8
c906108c 2872End:
This page took 2.621127 seconds and 4 git commands to generate.