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