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