1 2021-03-08 Tom Tromey <tom@tromey.com>
3 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
6 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
7 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
9 (amd64_dtrace_parse_probe_argument): Update.
11 2021-03-08 Tom Tromey <tom@tromey.com>
13 * parser-defs.h (struct parser_state) <push, push_new,
14 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
16 <m_operations>: New member.
17 * parse.c (parser_state::push_c_string)
18 (parser_state::push_symbol, parser_state::push_dollar): New
21 2021-03-08 Tom Tromey <tom@tromey.com>
23 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
25 (struct parser_state) <mark_struct_expression>: New method.
26 * parse.c (parser_state::mark_struct_expression): Update assert.
27 (parser_state::mark_struct_expression): New method.
28 (parser_state::mark_completion_tag): Update assert.
29 (parse_expression_for_completion): Handle expout_last_op.
31 2021-03-08 Tom Tromey <tom@tromey.com>
33 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
35 * value.h (fetch_subexp_value): Add "op" parameter.
36 * value.c (init_if_undefined_command): Update.
37 * tracepoint.c (validate_actionline, encode_actions_1): Update.
38 * stap-probe.c (stap_probe::compile_to_ax): Update.
39 * printcmd.c (set_command): Update.
40 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
42 * parser-defs.h (struct expr_builder) <set_operation>: New
44 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
45 * expression.h (struct expression) <first_opcode>: Update.
47 * expprint.c (dump_raw_expression, dump_prefix_expression):
49 * expop.h (class var_value_operation) <get_symbol>: New method.
50 (class register_operation) <get_name>: New method.
51 (class equal_operation): No longer a typedef, now a subclass.
52 (class unop_memval_operation) <get_type>: New method.
53 (class assign_operation) <get_lhs>: New method.
54 (class unop_cast_operation) <get_type>: New method.
55 * eval.c (evaluate_expression, evaluate_type)
56 (evaluate_subexpression_type): Update.
57 (fetch_subexp_value): Add "op" parameter.
58 (parse_and_eval_type): Update.
59 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
60 * breakpoint.c (update_watchpoint, watchpoint_check)
61 (watchpoint_exp_is_const, watch_command_1): Update.
62 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
65 2021-03-08 Tom Tromey <tom@tromey.com>
67 * ada-lang.c (ada_value_binop): Do not use op_string.
69 2021-03-08 Tom Tromey <tom@tromey.com>
71 * expprint.c (dump_for_expression): New overload.
72 * expop.h (check_objfile, dump_for_expression): Declare new
74 * ada-lang.c (check_objfile): New overload.
75 (assign_component, ada_aggregate_component::uses_objfile)
76 (ada_aggregate_component::dump, ada_aggregate_component::assign)
77 (ada_aggregate_component::assign_aggregate)
78 (ada_positional_component::uses_objfile)
79 (ada_positional_component::dump, ada_positional_component::assign)
80 (ada_discrete_range_association::uses_objfile)
81 (ada_discrete_range_association::dump)
82 (ada_discrete_range_association::assign)
83 (ada_name_association::uses_objfile, ada_name_association::dump)
84 (ada_name_association::assign)
85 (ada_choices_component::uses_objfile, ada_choices_component::dump)
86 (ada_choices_component::assign)
87 (ada_others_component::uses_objfile, ada_others_component::dump)
88 (ada_others_component::assign, ada_assign_operation::evaluate):
90 * ada-exp.h (ada_string_operation) <get_name>: New method.
91 (class ada_assign_operation): New.
92 (class ada_component): New.
93 (ada_component_up): New typedef.
94 (class ada_aggregate_operation, class ada_aggregate_component)
95 (class ada_positional_component, class ada_others_component)
96 (class ada_association): New.
97 (ada_association_up): New typedef.
98 (class ada_choices_component)
99 (class ada_discrete_range_association)
100 (class ada_name_association): New.
102 2021-03-08 Tom Tromey <tom@tromey.com>
104 * ada-lang.c (ada_var_value_operation::resolve)
105 (ada_funcall_operation::resolve)
106 (ada_ternop_slice_operation::resolve): New methods.
107 * ada-exp.h (struct ada_resolvable): New.
108 (class ada_var_value_operation): Derive from ada_resolvable.
109 <get_block, resolve>: New methods.
110 (class ada_funcall_operation): Derive from ada_resolvable.
111 <resolve>: New method.
112 (class ada_ternop_slice_operation): Derive from ada_resolvable.
113 <resolve>: New method.
115 2021-03-08 Tom Tromey <tom@tromey.com>
117 * ada-lang.c (ada_funcall_operation::evaluate): New method.
118 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
120 (class ada_funcall_operation): New.
122 2021-03-08 Tom Tromey <tom@tromey.com>
124 * ada-lang.c (ada_structop_operation::evaluate): New method.
125 * ada-exp.h (class ada_structop_operation): New.
127 2021-03-08 Tom Tromey <tom@tromey.com>
129 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
130 * ada-exp.h (class ada_unop_ind_operation): New.
132 2021-03-08 Tom Tromey <tom@tromey.com>
134 * ada-lang.c (ada_binop_exp): No longer static.
135 * ada-exp.h (ada_binop_exp_operation): New typedef.
137 2021-03-08 Tom Tromey <tom@tromey.com>
139 * ada-lang.c (ada_val_atr): No longer static.
140 (ada_atr_val_operation::evaluate): New method.
141 * ada-exp.h (class ada_atr_val_operation): New.
143 2021-03-08 Tom Tromey <tom@tromey.com>
145 * ada-lang.c (ada_pos_atr): No longer static.
146 * ada-exp.h (ada_pos_operation): New typedef.
148 2021-03-08 Tom Tromey <tom@tromey.com>
150 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
152 (ada_evaluate_subexp): Use it.
154 2021-03-08 Tom Tromey <tom@tromey.com>
156 * ada-lang.c (ada_binop_minmax): No longer static.
157 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
160 2021-03-08 Tom Tromey <tom@tromey.com>
162 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
164 * ada-exp.h (class ada_var_msym_value_operation): New.
166 2021-03-08 Tom Tromey <tom@tromey.com>
168 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
169 (ada_var_value_operation::evaluate): New methods.
170 * ada-exp.h (class ada_var_value_operation): New.
172 2021-03-08 Tom Tromey <tom@tromey.com>
174 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
175 * ada-exp.h (class ada_unop_atr_operation): New.
177 2021-03-08 Tom Tromey <tom@tromey.com>
179 * ada-lang.c (ada_binop_in_bounds): No longer static.
180 * ada-exp.h (class ada_binop_in_bounds_operation): New.
182 2021-03-08 Tom Tromey <tom@tromey.com>
184 * ada-lang.c (ada_ternop_slice): No longer static.
185 * ada-exp.h (class ada_ternop_slice_operation): New.
187 2021-03-08 Tom Tromey <tom@tromey.com>
189 * ada-exp.h (ada_bitwise_operation): New template class.
190 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
191 (ada_bitwise_xor_operation): New typedefs.
193 2021-03-08 Tom Tromey <tom@tromey.com>
195 * ada-lang.c (ada_equal_binop): No longer static.
196 * ada-exp.h (class ada_binop_equal_operation): New.
198 2021-03-08 Tom Tromey <tom@tromey.com>
200 * ada-lang.c (ada_mult_binop): No longer static.
201 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
202 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
204 2021-03-08 Tom Tromey <tom@tromey.com>
206 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
207 * ada-exp.h (class ada_binop_addsub_operation): New.
209 2021-03-08 Tom Tromey <tom@tromey.com>
211 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
212 (ada_resolve_variable): Declare.
213 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
214 (ada_resolve_variable): New functions.
215 (resolve_subexp): Update.
217 2021-03-08 Tom Tromey <tom@tromey.com>
219 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
221 * c-exp.h (class opencl_ternop_cond_operation): New.
223 2021-03-08 Tom Tromey <tom@tromey.com>
225 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
227 * c-exp.h (class opencl_logical_binop_operation): New.
229 2021-03-08 Tom Tromey <tom@tromey.com>
231 * opencl-lang.c (opencl_structop_operation::evaluate): New
233 * c-exp.h (class opencl_structop_operation): New.
235 2021-03-08 Tom Tromey <tom@tromey.com>
237 * opencl-lang.c (opencl_logical_not): No longer static. Change
239 (evaluate_subexp_opencl): Update.
240 * c-exp.h (opencl_notequal_operation): New typedef.
242 2021-03-08 Tom Tromey <tom@tromey.com>
244 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
245 static. Change parameters.
246 (eval_opencl_assign): No longer static. Add "op" parameter.
247 (evaluate_subexp_opencl): Update.
248 * c-exp.h (opencl_binop_operation): New template class.
249 (opencl_assign_operation, opencl_equal_operation)
250 (opencl_notequal_operation, opencl_less_operation)
251 (opencl_gtr_operation, opencl_geq_operation)
252 (opencl_leq_operation): New typedefs.
254 2021-03-08 Tom Tromey <tom@tromey.com>
256 * opencl-lang.c (opencl_value_cast): No longer static.
257 * c-exp.h (opencl_cast_type_operation): New typedef.
259 2021-03-08 Tom Tromey <tom@tromey.com>
261 * f-exp.h (eval_op_f_allocated): Declare.
262 (fortran_allocated_operation): New typedef.
263 * f-lang.c (eval_op_f_allocated): No longer static.
265 2021-03-08 Tom Tromey <tom@tromey.com>
267 * f-lang.c (eval_op_f_associated): New functions.
268 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
271 2021-03-08 Tom Tromey <tom@tromey.com>
273 * f-lang.c (fortran_bound_1arg::evaluate)
274 (fortran_bound_2arg::evaluate): New methods.
275 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
278 2021-03-08 Tom Tromey <tom@tromey.com>
280 * expop.h (class unop_addr_operation) <get_expression>: New
282 * f-lang.c (fortran_undetermined::value_subarray)
283 (fortran_undetermined::evaluate): New methods.
284 (fortran_prepare_argument): New overload.
285 * f-exp.h (class fortran_range_operation)
286 (class fortran_undetermined): New classes.
288 2021-03-08 Tom Tromey <tom@tromey.com>
290 * rust-lang.c (rust_structop::evaluate_funcall): New method.
291 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
294 2021-03-08 Tom Tromey <tom@tromey.com>
296 * expression.h (class operation) <evaluate_funcall>: New methods.
297 * expop.h (class scope_operation) <evaluate_funcall>: New method.
298 (class var_value_operation) <evaluate_funcall>: New method.
299 (class structop_base_operation) <evaluate_funcall>: New method.
300 (class var_msym_value_operation) <evaluate_funcall>: New method.
301 (class structop_member_base): New class.
302 (class structop_member_operation): Derive from
303 structop_member_base.
304 (class structop_mptr_operation): Derive from
305 structop_member_base.
306 (class funcall_operation): New class.
307 * eval.c (operation::evaluate_funcall)
308 (var_value_operation::evaluate_funcall)
309 (scope_operation::evaluate_funcall)
310 (structop_member_base::evaluate_funcall)
311 (structop_base_operation::evaluate_funcall): New methods.
313 2021-03-08 Tom Tromey <tom@tromey.com>
315 * expop.h (class array_operation): New.
316 * eval.c (array_operation::evaluate_struct_tuple)
317 (array_operation::evaluate): New methods.
319 2021-03-08 Tom Tromey <tom@tromey.com>
321 * expop.h (class adl_func_operation): New.
322 * eval.c (adl_func_operation::evaluate): New method.
324 2021-03-08 Tom Tromey <tom@tromey.com>
326 * ada-lang.c (ada_unop_in_range): No longer static.
327 * ada-exp.h (class ada_unop_range_operation): New.
329 2021-03-08 Tom Tromey <tom@tromey.com>
331 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
333 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
334 (ada_atr_size_operation, ada_abs_operation): New typedefs.
336 2021-03-08 Tom Tromey <tom@tromey.com>
338 * expop.h (class logical_and_operation)
339 (class logical_or_operation): New.
340 * eval.c (logical_and_operation::evaluate)
341 (logical_or_operation::evaluate): New methods.
342 * ax-gdb.c (logical_and_operation::do_generate_ax)
343 (logical_or_operation::do_generate_ax): New methods.
345 2021-03-08 Tom Tromey <tom@tromey.com>
347 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
349 * m2-exp.h: New file.
351 2021-03-08 Tom Tromey <tom@tromey.com>
353 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
354 * rust-exp.h (class rust_aggregate_operation): New.
356 2021-03-08 Tom Tromey <tom@tromey.com>
358 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
360 * rust-exp.h (class rust_struct_anon): New.
361 (class rust_structop): New.
363 2021-03-08 Tom Tromey <tom@tromey.com>
365 * rust-lang.c (rust_range): No longer static.
366 * rust-exp.h (class rust_range_operation): New.
368 2021-03-08 Tom Tromey <tom@tromey.com>
370 * rust-lang.c (rust_subscript): No longer static.
371 * rust-exp.h (class rust_subscript_operation): New.
373 2021-03-08 Tom Tromey <tom@tromey.com>
375 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
377 (rust_evaluate_subexp): Update.
378 * rust-exp.h (class rust_unop_ind_operation): New.
380 2021-03-08 Tom Tromey <tom@tromey.com>
382 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
383 longer static. Add "opcode" parameter.
384 (rust_evaluate_subexp): Update.
385 * rust-exp.h: New file.
387 2021-03-08 Tom Tromey <tom@tromey.com>
389 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
390 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
391 (eval_op_f_kind): No longer static. Add "opcode" parameter.
392 (evaluate_subexp_f): Update.
395 2021-03-08 Tom Tromey <tom@tromey.com>
397 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
398 * ada-exp.h (class ada_ternop_range_operation): New.
400 2021-03-08 Tom Tromey <tom@tromey.com>
402 * ada-lang.c (ada_qual_operation::evaluate): New method.
403 * ada-exp.h (class ada_qual_operation): New.
405 2021-03-08 Tom Tromey <tom@tromey.com>
407 * ada-lang.c (ada_string_operation::evaluate): New method.
408 * ada-exp.h (class ada_string_operation): New.
410 2021-03-08 Tom Tromey <tom@tromey.com>
412 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
413 * ada-exp.h: New file.
415 2021-03-08 Tom Tromey <tom@tromey.com>
417 * expop.h (class multi_subscript_operation): New.
418 * eval.c (multi_subscript_operation::evaluate): New method.
420 2021-03-08 Tom Tromey <tom@tromey.com>
422 * eval.c (objc_msgcall_operation::evaluate): New method.
423 * c-exp.h (class objc_msgcall_operation): New.
425 2021-03-08 Tom Tromey <tom@tromey.com>
427 * expop.h (class var_value_operation): New.
428 * eval.c (var_value_operation::evaluate)
429 (var_value_operation::evaluate_for_address)
430 (var_value_operation::evaluate_with_coercion)
431 (var_value_operation::evaluate_for_sizeof)
432 (var_value_operation::evaluate_for_cast): New methods.
433 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
435 2021-03-08 Tom Tromey <tom@tromey.com>
437 * expop.h (cxx_cast_ftype): New typedef.
438 (cxx_cast_operation): New template.
439 (dynamic_cast_operation, reinterpret_cast_operation): New
442 2021-03-08 Tom Tromey <tom@tromey.com>
444 * expop.h (class unop_cast_type_operation): New.
445 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
448 2021-03-08 Tom Tromey <tom@tromey.com>
450 * expop.h (class unop_cast_operation): New.
451 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
453 2021-03-08 Tom Tromey <tom@tromey.com>
455 * expop.h (class assign_modify_operation): New.
456 * eval.c (eval_binop_assign_modify): No longer static.
457 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
459 2021-03-08 Tom Tromey <tom@tromey.com>
461 * expop.h (class assign_operation): New.
462 * ax-gdb.c (assign_operation::do_generate_ax): New method.
464 2021-03-08 Tom Tromey <tom@tromey.com>
466 * expop.h (class type_instance_operation): New.
467 * eval.c (type_instance_operation::evaluate): New method.
469 2021-03-08 Tom Tromey <tom@tromey.com>
471 * expop.h (class op_this_operation): New.
472 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
474 2021-03-08 Tom Tromey <tom@tromey.com>
476 * expop.h (class unop_memval_operation)
477 (class unop_memval_type_operation): New.
478 * eval.c (eval_op_memval): No longer static.
479 (unop_memval_operation::evaluate_for_address)
480 (unop_memval_type_operation::evaluate_for_address)
481 (unop_memval_operation::evaluate_for_sizeof)
482 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
483 * ax-gdb.c (unop_memval_operation::do_generate_ax)
484 (unop_memval_type_operation::do_generate_ax): New methods.
486 2021-03-08 Tom Tromey <tom@tromey.com>
488 * expop.h (class unop_alignof_operation): New.
489 * eval.c (eval_op_alignof): No longer static.
491 2021-03-08 Tom Tromey <tom@tromey.com>
493 * expop.h (class unop_sizeof_operation): New.
494 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
496 2021-03-08 Tom Tromey <tom@tromey.com>
498 * expop.h (class unop_addr_operation): New.
499 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
501 2021-03-08 Tom Tromey <tom@tromey.com>
503 * expop.h (class typeid_operation): New.
505 2021-03-08 Tom Tromey <tom@tromey.com>
507 * expop.h (class decltype_operation): New.
509 2021-03-08 Tom Tromey <tom@tromey.com>
511 * expop.h (class typeof_operation): New.
513 2021-03-08 Tom Tromey <tom@tromey.com>
515 * expop.h (class type_operation): New.
516 * eval.c (eval_op_type): No longer static.
518 2021-03-08 Tom Tromey <tom@tromey.com>
520 * expop.h (class unop_ind_base_operation)
521 (class unop_ind_operation): New.
522 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
523 (unop_ind_base_operation::evaluate_for_address)
524 (unop_ind_base_operation::evaluate_for_sizeof): New method.
525 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
527 2021-03-08 Tom Tromey <tom@tromey.com>
529 * expop.h (unop_incr_operation): New template.
530 (preinc_operation, predec_operation, postinc_operation)
531 (postdec_operation): New typedefs.
532 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
533 (eval_op_postdec): No longer static.
535 2021-03-08 Tom Tromey <tom@tromey.com>
537 * expop.h (unary_ftype): New typedef.
538 (unop_operation, usual_ax_binop_operation): New templates.
539 (unary_plus_operation, unary_neg_operation)
540 (unary_complement_operation, unary_logical_not_operation): New
542 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
543 (eval_op_lognot): No longer static.
544 * ax-gdb.c (gen_expr_unop): New function.
546 2021-03-08 Tom Tromey <tom@tromey.com>
548 * ax-gdb.c (comma_operation::do_generate_ax): New method.
550 2021-03-08 Tom Tromey <tom@tromey.com>
552 * expop.h (class repeat_operation): New.
553 * eval.c (eval_op_repeat): No longer static. Remove "op"
555 (evaluate_subexp_standard): Update.
556 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
558 2021-03-08 Tom Tromey <tom@tromey.com>
560 * expop.h (class comparison_operation): New.
561 (equal_operation, notequal_operation, less_operation)
562 (gtr_operation, geq_operation, leq_operation): New typedefs.
563 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
564 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
566 2021-03-08 Tom Tromey <tom@tromey.com>
568 * expop.h (class subscript_operation): New.
569 * eval.c (eval_op_subscript): No longer static.
571 2021-03-08 Tom Tromey <tom@tromey.com>
573 * expop.h (class binop_operation, class usual_ax_binop_operation):
575 (exp_operation, intdiv_operation, mod_operation, mul_operation)
576 (div_operation, rem_operation, lsh_operation, rsh_operation)
577 (bitwise_and_operation, bitwise_ior_operation)
578 (bitwise_xor_operation): New typedefs.
579 * eval.c (eval_op_binary): No longer static.
581 2021-03-08 Tom Tromey <tom@tromey.com>
583 * expop.h (class sub_operation): New.
584 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
585 (evaluate_subexp_standard): Update.
587 2021-03-08 Tom Tromey <tom@tromey.com>
589 * expop.h (class add_operation): New.
590 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
591 (evaluate_subexp_standard): Update.
593 2021-03-08 Tom Tromey <tom@tromey.com>
595 * expop.h (class concat_operation): New.
596 * eval.c (eval_op_concat): No longer static. Remove "op"
598 (evaluate_subexp_standard): Update.
600 2021-03-08 Tom Tromey <tom@tromey.com>
602 * expop.h (class structop_member_operation)
603 (class structop_mptr_operation): New.
604 * eval.c (eval_op_member): No longer static.
606 2021-03-08 Tom Tromey <tom@tromey.com>
608 * expop.h (class structop_ptr_operation): New.
609 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
612 2021-03-08 Tom Tromey <tom@tromey.com>
614 * expop.h (class structop_base_operation)
615 (class structop_operation): New.
616 * eval.c (eval_op_structop_struct): No longer static.
618 2021-03-08 Tom Tromey <tom@tromey.com>
620 * expop.h (class complex_operation): New.
622 2021-03-08 Tom Tromey <tom@tromey.com>
624 * eval.c (eval_op_objc_selector): No longer static.
625 * c-exp.h (class objc_selector_operation): New.
627 2021-03-08 Tom Tromey <tom@tromey.com>
629 * eval.c: Include c-exp.h.
630 * c-exp.h (class objc_nsstring_operation): New.
632 2021-03-08 Tom Tromey <tom@tromey.com>
634 * c-lang.c (c_string_operation::evaluate): New method.
637 2021-03-08 Tom Tromey <tom@tromey.com>
639 * expop.h (class ternop_cond_operation): New.
640 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
642 2021-03-08 Tom Tromey <tom@tromey.com>
644 * expop.h (class ternop_slice_operation): New.
645 * eval.c (eval_op_ternop): No longer static.
647 2021-03-08 Tom Tromey <tom@tromey.com>
649 * expop.h (class string_operation): New.
650 * eval.c (eval_op_string): No longer static.
652 2021-03-08 Tom Tromey <tom@tromey.com>
654 * expop.h (class internalvar_operation): New.
655 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
657 2021-03-08 Tom Tromey <tom@tromey.com>
659 * expop.h (class bool_operation): New.
661 2021-03-08 Tom Tromey <tom@tromey.com>
663 * expop.h (class register_operation): New.
664 * eval.c (eval_op_register): No longer static.
665 * ax-gdb.c (register_operation::do_generate_ax): New method.
667 2021-03-08 Tom Tromey <tom@tromey.com>
669 * expop.h (class last_operation): New.
671 2021-03-08 Tom Tromey <tom@tromey.com>
673 * expop.h (class func_static_var_operation): New.
674 * eval.c (eval_op_func_static_var): No longer static.
676 2021-03-08 Tom Tromey <tom@tromey.com>
678 * expop.h (class var_entry_value_operation): New.
679 * eval.c (eval_op_var_entry_value): No longer static.
681 2021-03-08 Tom Tromey <tom@tromey.com>
683 * expression.h (class operation) <set_outermost>: New method.
684 * expop.h (class var_msym_value_operation): New.
685 * eval.c (eval_op_var_msym_value): No longer static.
686 (var_msym_value_operation::evaluate_for_address)
687 (var_msym_value_operation::evaluate_for_sizeof)
688 (var_msym_value_operation::evaluate_for_cast): New methods.
689 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
692 2021-03-08 Tom Tromey <tom@tromey.com>
694 * expop.h (class long_const_operation): New.
695 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
697 2021-03-08 Tom Tromey <tom@tromey.com>
699 * expop.h (class scope_operation): New.
700 * eval.c (eval_op_scope): No longer static.
701 (scope_operation::evaluate_for_address): New method.
702 * ax-gdb.c (scope_operation::do_generate_ax): New method.
704 2021-03-08 Tom Tromey <tom@tromey.com>
706 * expprint.c (float_const_operation::dump): New method.
707 * expop.h (float_data): New typedef.
708 (class float_const_operation): New.
710 2021-03-08 Tom Tromey <tom@tromey.com>
712 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
713 * ax-gdb.c (gen_expr_binop): New function.
714 (gen_expr_structop): Likewise.
716 2021-03-08 Tom Tromey <tom@tromey.com>
718 * expprint.c (expr::dump_for_expression): New functions.
719 * expop.h (dump_for_expression): New overloads.
720 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
723 2021-03-08 Tom Tromey <tom@tromey.com>
725 * expression.h (expr::operation): New class.
726 (expr::make_operation): New function.
727 (expr::operation_up): New typedef.
729 * eval.c (operation::evaluate_for_cast)
730 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
732 * ax-gdb.c (operation::generate_ax): New method.
734 2021-03-08 Tom Tromey <tom@tromey.com>
736 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
737 (gen_expr_binop_rest): New overload.
739 2021-03-08 Tom Tromey <tom@tromey.com>
741 * eval.c (eval_multi_subscript): New function.
742 (evaluate_subexp_standard): Use it.
744 2021-03-08 Tom Tromey <tom@tromey.com>
746 * ada-lang.c (ada_binop_exp): New function.
747 (ada_evaluate_subexp): Use it.
749 2021-03-08 Tom Tromey <tom@tromey.com>
751 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
753 (ada_evaluate_subexp): Use it.
755 2021-03-08 Tom Tromey <tom@tromey.com>
757 * ada-lang.c (ada_binop_minmax): New function.
758 (ada_evaluate_subexp): Use it.
760 2021-03-08 Tom Tromey <tom@tromey.com>
762 * ada-lang.c (ada_unop_atr): New function.
763 (ada_evaluate_subexp): Use it.
765 2021-03-08 Tom Tromey <tom@tromey.com>
767 * ada-lang.c (ada_binop_in_bounds): New function.
768 (ada_evaluate_subexp): Use it.
770 2021-03-08 Tom Tromey <tom@tromey.com>
772 * ada-lang.c (ada_ternop_slice): New function.
773 (ada_evaluate_subexp): Use it.
775 2021-03-08 Tom Tromey <tom@tromey.com>
777 * ada-lang.c (ada_equal_binop): New function.
778 (ada_evaluate_subexp): Use it.
780 2021-03-08 Tom Tromey <tom@tromey.com>
782 * ada-lang.c (ada_mult_binop): New function.
783 (ada_evaluate_subexp): Use it.
785 2021-03-08 Tom Tromey <tom@tromey.com>
787 * ada-lang.c (ada_abs): New function.
788 (ada_evaluate_subexp): Use it.
790 2021-03-08 Tom Tromey <tom@tromey.com>
792 * ada-lang.c (ada_atr_size): New function.
793 (ada_evaluate_subexp): Use it.
795 2021-03-08 Tom Tromey <tom@tromey.com>
797 * ada-lang.c (ada_atr_tag): New function.
798 (ada_evaluate_subexp): Use it.
800 2021-03-08 Tom Tromey <tom@tromey.com>
802 * ada-lang.c (ada_unop_in_range): New function.
803 (ada_evaluate_subexp): Use it.
805 2021-03-08 Tom Tromey <tom@tromey.com>
807 * ada-lang.c (ada_unop_neg): New function.
808 (ada_evaluate_subexp): Use it.
810 2021-03-08 Tom Tromey <tom@tromey.com>
812 * ada-lang.c (eval_ternop_in_range): New function.
813 (ada_evaluate_subexp): Use it.
815 2021-03-08 Tom Tromey <tom@tromey.com>
817 * opencl-lang.c (eval_opencl_assign): New function.
818 (evaluate_subexp_opencl): Use it.
820 2021-03-08 Tom Tromey <tom@tromey.com>
822 * eval.c (eval_op_objc_msgcall): New function.
823 (evaluate_subexp_standard): Use it.
825 2021-03-08 Tom Tromey <tom@tromey.com>
827 * eval.c (eval_binop_assign_modify): New function.
828 (evaluate_subexp_standard): Use it.
830 2021-03-08 Tom Tromey <tom@tromey.com>
832 * m2-lang.c (eval_op_m2_subscript): New function.
833 (evaluate_subexp_modula2): Use it.
835 2021-03-08 Tom Tromey <tom@tromey.com>
837 * m2-lang.c (eval_op_m2_high): New function.
838 (evaluate_subexp_modula2): Use it.
840 2021-03-08 Tom Tromey <tom@tromey.com>
842 * eval.c (evaluate_subexp_for_address_base): New function.
843 (evaluate_subexp_for_address): Use it.
844 (evaluate_subexp_for_sizeof_base): New function.
845 (evaluate_subexp_for_sizeof): Use it.
847 2021-03-08 Tom Tromey <tom@tromey.com>
849 * rust-lang.c (eval_op_rust_structop): New function.
850 (rust_evaluate_subexp): Use it.
852 2021-03-08 Tom Tromey <tom@tromey.com>
854 * rust-lang.c (eval_op_rust_struct_anon): New function.
855 (rust_evaluate_subexp): Use it.
857 2021-03-08 Tom Tromey <tom@tromey.com>
859 * rust-lang.c (eval_op_rust_array): New function.
860 (rust_evaluate_subexp): Use it.
862 2021-03-08 Tom Tromey <tom@tromey.com>
864 * rust-lang.c (eval_op_rust_complement): New function.
865 (rust_evaluate_subexp): Use it.
867 2021-03-08 Tom Tromey <tom@tromey.com>
869 * rust-lang.c (eval_op_rust_ind): New function.
870 (rust_evaluate_subexp): Use it.
872 2021-03-08 Tom Tromey <tom@tromey.com>
874 * rust-lang.c (rust_subscript): Change parameters.
875 (rust_evaluate_subexp): Update.
877 2021-03-08 Tom Tromey <tom@tromey.com>
879 * rust-lang.c (rust_range): Change parameters.
880 (rust_evaluate_subexp): Update.
882 2021-03-08 Tom Tromey <tom@tromey.com>
884 * f-lang.c (eval_op_f_allocated): New function.
885 (evaluate_subexp_f): Use it.
887 2021-03-08 Tom Tromey <tom@tromey.com>
889 * f-lang.c (fortran_require_array): New function.
890 (evaluate_subexp_f): Use it.
892 2021-03-08 Tom Tromey <tom@tromey.com>
894 * f-lang.c (eval_op_f_kind): New function.
895 (evaluate_subexp_f): Use it.
897 2021-03-08 Tom Tromey <tom@tromey.com>
899 * f-lang.c (eval_op_f_cmplx): New function.
900 (evaluate_subexp_f): Use it.
902 2021-03-08 Tom Tromey <tom@tromey.com>
904 * f-lang.c (eval_op_f_modulo): New function.
905 (evaluate_subexp_f): Use it.
907 2021-03-08 Tom Tromey <tom@tromey.com>
909 * f-lang.c (eval_op_f_floor): New function.
910 (evaluate_subexp_f): Use it.
912 2021-03-08 Tom Tromey <tom@tromey.com>
914 * f-lang.c (eval_op_f_ceil): New function.
915 (evaluate_subexp_f): Use it.
917 2021-03-08 Tom Tromey <tom@tromey.com>
919 * f-lang.c (eval_op_f_mod): New function.
920 (evaluate_subexp_f): Use it.
922 2021-03-08 Tom Tromey <tom@tromey.com>
924 * f-lang.c (eval_op_f_abs): New function.
925 (evaluate_subexp_f): Use it.
927 2021-03-08 Tom Tromey <tom@tromey.com>
929 * eval.c (eval_op_type): New function.
930 (evaluate_subexp_standard): Use it.
932 2021-03-08 Tom Tromey <tom@tromey.com>
934 * eval.c (eval_op_postdec): New function.
935 (evaluate_subexp_standard): Use it.
937 2021-03-08 Tom Tromey <tom@tromey.com>
939 * eval.c (eval_op_postinc): New function.
940 (evaluate_subexp_standard): Use it.
942 2021-03-08 Tom Tromey <tom@tromey.com>
944 * eval.c (eval_op_predec): New file.
945 (evaluate_subexp_standard): Use it.
947 2021-03-08 Tom Tromey <tom@tromey.com>
949 * eval.c (eval_op_preinc): New function.
950 (evaluate_subexp_standard): Use it.
952 2021-03-08 Tom Tromey <tom@tromey.com>
954 * eval.c (eval_op_memval): New function.
955 (evaluate_subexp_standard): Use it.
957 2021-03-08 Tom Tromey <tom@tromey.com>
959 * eval.c (eval_op_alignof): New function.
960 (evaluate_subexp_standard): Use it.
962 2021-03-08 Tom Tromey <tom@tromey.com>
964 * eval.c (eval_op_ind): New function.
965 (evaluate_subexp_standard): Use it.
967 2021-03-08 Tom Tromey <tom@tromey.com>
969 * eval.c (eval_op_lognot): New function.
970 (evaluate_subexp_standard): Use it.
972 2021-03-08 Tom Tromey <tom@tromey.com>
974 * eval.c (eval_op_complement): New function.
975 (evaluate_subexp_standard): Use it.
977 2021-03-08 Tom Tromey <tom@tromey.com>
979 * eval.c (eval_op_neg): New function.
980 (evaluate_subexp_standard): Use it.
982 2021-03-08 Tom Tromey <tom@tromey.com>
984 * eval.c (eval_op_plus): New function.
985 (evaluate_subexp_standard): Use it.
987 2021-03-08 Tom Tromey <tom@tromey.com>
989 * eval.c (eval_op_repeat): New function.
990 (evaluate_subexp_standard): Use it.
992 2021-03-08 Tom Tromey <tom@tromey.com>
994 * eval.c (eval_op_leq): New function.
995 (evaluate_subexp_standard): Use it.
997 2021-03-08 Tom Tromey <tom@tromey.com>
999 * eval.c (eval_op_geq): New function.
1000 (evaluate_subexp_standard): Use it.
1002 2021-03-08 Tom Tromey <tom@tromey.com>
1004 * eval.c (eval_op_gtr): New function.
1005 (evaluate_subexp_standard): Use it.
1007 2021-03-08 Tom Tromey <tom@tromey.com>
1009 * eval.c (eval_op_less): New function.
1010 (evaluate_subexp_standard): Use it.
1012 2021-03-08 Tom Tromey <tom@tromey.com>
1014 * eval.c (eval_op_notequal): New function.
1015 (evaluate_subexp_standard): Use it.
1017 2021-03-08 Tom Tromey <tom@tromey.com>
1019 * eval.c (eval_op_equal): New function.
1020 (evaluate_subexp_standard): Use it.
1022 2021-03-08 Tom Tromey <tom@tromey.com>
1024 * eval.c (eval_op_subscript): New function.
1025 (evaluate_subexp_standard): Use it.
1027 2021-03-08 Tom Tromey <tom@tromey.com>
1029 * eval.c (eval_op_binary): New function.
1030 (evaluate_subexp_standard): Use it.
1032 2021-03-08 Tom Tromey <tom@tromey.com>
1034 * eval.c (eval_op_sub): New function.
1035 (evaluate_subexp_standard): Use it.
1037 2021-03-08 Tom Tromey <tom@tromey.com>
1039 * eval.c (eval_op_add): New function.
1040 (evaluate_subexp_standard): Use it.
1042 2021-03-08 Tom Tromey <tom@tromey.com>
1044 * eval.c (eval_op_member): New function.
1045 (evaluate_subexp_standard): Use it.
1047 2021-03-08 Tom Tromey <tom@tromey.com>
1049 * eval.c (eval_op_structop_ptr): New function.
1050 (evaluate_subexp_standard): Use it.
1052 2021-03-08 Tom Tromey <tom@tromey.com>
1054 * eval.c (eval_op_structop_struct): New function.
1055 (evaluate_subexp_standard): Use it.
1057 2021-03-08 Tom Tromey <tom@tromey.com>
1059 * eval.c (eval_op_ternop): New function.
1060 (evaluate_subexp_standard): Use it.
1062 2021-03-08 Tom Tromey <tom@tromey.com>
1064 * eval.c (eval_op_concat): New function.
1065 (evaluate_subexp_standard): Use it.
1067 2021-03-08 Tom Tromey <tom@tromey.com>
1069 * eval.c (eval_op_objc_selector): New function.
1070 (evaluate_subexp_standard): Use it.
1072 2021-03-08 Tom Tromey <tom@tromey.com>
1074 * eval.c (eval_op_string): New function.
1075 (evaluate_subexp_standard): Use it.
1077 2021-03-08 Tom Tromey <tom@tromey.com>
1079 * eval.c (eval_op_register): New function.
1080 (evaluate_subexp_standard): Use it.
1082 2021-03-08 Tom Tromey <tom@tromey.com>
1084 * eval.c (eval_op_func_static_var): New function.
1085 (evaluate_subexp_standard): Use it.
1087 2021-03-08 Tom Tromey <tom@tromey.com>
1089 * eval.c (eval_op_var_msym_value): New function.
1090 (evaluate_subexp_standard): Use it.
1092 2021-03-08 Tom Tromey <tom@tromey.com>
1094 * eval.c (eval_op_var_entry_value): New function.
1095 (evaluate_subexp_standard): Use it.
1097 2021-03-08 Tom Tromey <tom@tromey.com>
1099 * eval.c (eval_op_scope): New function.
1100 (evaluate_subexp_standard): Use it.
1102 2021-03-06 Chernov Sergey <klen_s@mail.ru>
1105 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1107 2021-03-06 Tom Tromey <tom@tromey.com>
1109 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1110 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1111 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1112 (locate_dwz_sections, dwz_search_other_debugdirs)
1113 (dwarf2_get_dwz_file): Move to dwz.c.
1114 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1116 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1117 (dwarf2_get_dwz_file): Move from read.c.
1119 2021-03-06 Tom Tromey <tom@tromey.com>
1121 * debuginfod-support.h: Include scoped_fd.h.
1123 2021-03-06 Tom Tromey <tom@tromey.com>
1125 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1126 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1127 (get_abbrev_section_for_cu, read_attribute_value)
1128 (get_debug_line_section): Update.
1129 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1131 2021-03-06 Tom Tromey <tom@tromey.com>
1133 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1135 * dwarf2/read.c (section_is_p): Remove.
1136 (dwarf2_per_bfd::locate_sections)
1137 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1138 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1139 (dwarf2_locate_common_dwp_sections)
1140 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1143 2021-03-06 Tom Tromey <tom@tromey.com>
1145 * xcoffread.c: Include sect-names.h.
1146 * symfile.h (struct dwarf2_section_names, struct
1147 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1148 * dwarf2/sect-names.h: New file, from symfile.h.
1149 * dwarf2/read.c: Include sect-names.h.
1151 2021-03-06 Tom Tromey <tom@tromey.com>
1153 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1154 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1155 (abbrev_table::read): Update.
1156 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1157 (struct abbrev_info): Reformat.
1158 <attrs>: Now an array.
1159 (struct abbrev_table) <alloc_abbrev>: Remove.
1161 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1163 * ctfread.c (ctf_psymtab_add_enums): New function.
1164 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1166 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1168 * ctfread.c (read_func_kind_type): Set up function arguments.
1170 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1171 Andrew Burgess <andrew.burgess@embecosm.com>
1173 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1175 (riscv_csrset): New static global.
1176 (riscv_update_csrmap): New function.
1177 (riscv_iterate_over_regset_sections): Process CSRs.
1179 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1181 * riscv-tdep.c (riscv_feature_name_csr): Define.
1182 (riscv_feature_name_cpu): Define.
1183 (riscv_feature_name_fpu): Define.
1184 (riscv_feature_name_virtual): Define.
1185 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1186 (riscv_freg_feature): Use riscv_feature_name_fpu.
1187 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1188 (riscv_csr_feature): Use riscv_feature_name_csr.
1189 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1191 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1192 Craig Blackmore <craig.blackmore@embecosm.com>
1194 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1195 (ALLDEPFILES): Add riscv-none-tdep.c.
1196 * configure: Regenerate.
1197 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1199 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1200 * elf-none-tdep.c: New file.
1201 * elf-none-tdep.h: New file.
1202 * riscv-none-tdep.c: New file.
1204 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1205 Andrew Burgess <andrew.burgess@embecosm.com>
1207 * corelow.c: Add 'xml-tdesc.h' include.
1208 (core_target::read_description): Load the target description from
1209 the core file when possible.
1210 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1212 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1213 (gcore_elf_make_tdesc_note): New function.
1214 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1215 * linux-tdep.c (linux_make_corefile_notes): Add target description
1218 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1220 * Makefile.in (SFILES): Add gcore-elf.c.
1221 (HFILES_NO_SRCDIR): Add gcore-elf.h
1222 * configure: Regenerate.
1223 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1225 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1226 (struct fbsd_collect_regset_section_cb_data): Delete.
1227 (fbsd_collect_regset_section_cb): Delete.
1228 (fbsd_collect_thread_registers): Delete.
1229 (struct fbsd_corefile_thread_data): Delete.
1230 (fbsd_corefile_thread): Delete.
1231 (fbsd_make_corefile_notes): Call
1232 gcore_elf_build_thread_register_notes instead of the now deleted
1234 * gcore-elf.c: New file, the content was moved here from
1235 linux-tdep.c, functions were renamed and given minor cleanup.
1236 * gcore-elf.h: New file.
1237 * gcore.c (gcore_find_signalled_thread): Moved here from
1238 linux-tdep.c and given a new name. Minor cleanups.
1239 * gcore.h (gcore_find_signalled_thread): Declare.
1240 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1241 (struct linux_collect_regset_section_cb_data): Delete.
1242 (linux_collect_regset_section_cb): Delete.
1243 (linux_collect_thread_registers): Delete.
1244 (linux_corefile_thread): Call
1245 gcore_elf_build_thread_register_notes.
1246 (find_signalled_thread): Delete.
1247 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1249 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1252 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1253 process_stratum_target parameter,
1254 sparc_store_inferior_registers): update callers.
1255 * sparc-nat.c (sparc_fetch_inferior_registers,
1256 sparc_store_inferior_registers): Add process_stratum_target
1257 parameter. Switch current thread before calling
1258 sparc_supply_gregset / sparc_collect_rwindow.
1259 (sparc_store_inferior_registers): Likewise.
1260 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1261 (sparc32obsd_collect_uthread): Likewise.
1262 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1264 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1265 sparc64obsd_supply_uthread): Add assertion.
1267 2021-03-04 Tom Tromey <tromey@adacore.com>
1269 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1270 (aux_add_nonlocal_symbols): Update.
1271 (ada_add_block_symbols): Change "found_sym" to bool.
1273 2021-03-03 Tom Tromey <tromey@adacore.com>
1275 * ada-lang.c (ada_resolve_function): Update comment.
1276 (is_nonfunction, add_symbols_from_enclosing_procs)
1277 (remove_extra_symbols): Likewise.
1278 (struct match_data): Add constructor, initializers.
1279 (add_nonlocal_symbols): Remove memset.
1280 (aux_add_nonlocal_symbols): Update comment.
1281 (ada_add_block_renamings, add_nonlocal_symbols)
1282 (ada_add_all_symbols): Likewise.
1283 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1285 2021-03-02 Tom Tromey <tromey@adacore.com>
1287 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1288 (cast_to_gnat_encoded_fixed_point_type): Remove.
1289 (ada_value_cast, ada_evaluate_subexp): Update.
1290 (gnat_encoded_fixed_point_type_info)
1291 (ada_is_gnat_encoded_fixed_point_type)
1292 (gnat_encoded_fixed_point_delta)
1293 (gnat_encoded_fixed_point_scaling_factor): Remove.
1294 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1295 (gnat_encoded_fixed_point_delta)
1296 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1297 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1298 (ada_print_type): Update.
1299 * ada-valprint.c (ada_value_print_num): Update.
1300 * dwarf2/read.c (ada_get_gnat_encoded_number)
1301 (ada_get_gnat_encoded_ratio): New functions.
1302 (finish_fixed_point_type): Use them. Add parameters.
1303 (GNAT_FIXED_POINT_SUFFIX): New define.
1304 (gnat_encoded_fixed_point_type_info): New function.
1305 (read_base_type): Handle gnat encodings.
1307 2021-03-02 Tom Tromey <tromey@adacore.com>
1309 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1310 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1312 (GROW_VECT): Remove.
1313 (grow_vect): Remove.
1315 2021-03-02 Tom Tromey <tromey@adacore.com>
1317 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1318 * ada-lang.c (resolve_subexp): Update.
1319 (ada_resolve_function): Accept a vector.
1320 (is_nonfunction, add_defn_to_vec)
1321 (add_symbols_from_enclosing_procs): Likewise.
1322 (num_defns_collected, defns_collected): Remove.
1323 (remove_extra_symbols): Return a vector.
1324 (remove_irrelevant_renamings): Return void.
1325 (ada_add_local_symbols): Accept a vector.
1326 (struct match_data) <obstackp>: Remove.
1327 <resultp>: New member.
1328 (aux_add_nonlocal_symbols): Update.
1329 (ada_add_block_renamings, add_nonlocal_symbols)
1330 (ada_add_all_symbols): Accept a vector.
1331 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1333 (ada_lookup_symbol): Update.
1334 (ada_add_block_symbols): Accept a vector.
1335 (get_var_value, iterate_over_symbols): Update.
1336 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1339 2021-03-02 Tom Tromey <tromey@adacore.com>
1341 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1343 2021-03-02 Tom Tromey <tromey@adacore.com>
1345 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1348 (ada_pspace_data): Remove destructor.
1349 <sym_cache>: Now a unique_ptr.
1350 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1351 (ada_get_symbol_cache): Use 'new'.
1352 (ada_clear_symbol_cache): Rewrite.
1354 2021-03-02 Tom Tromey <tromey@adacore.com>
1356 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1359 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
1362 * source.c (add_path): Skip empty dirnames.
1364 2021-02-25 Kevin Buettner <kevinb@redhat.com>
1366 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1367 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1369 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1372 * target.c (target_mourn_inferior): Only compare pids in
1373 target_mourn_inferior.
1375 2021-02-25 Jan Matyas <jmatyas@codasip.com>
1378 * remote.c (remote_target::start_remote): Ensure the single
1379 thread, automatically added for remote targets without the
1380 concept of threading, is initially in set to the "resumed"
1382 * remote.c (remote_target::add_current_inferior_and_thread):
1383 Add return value - return the main thread.
1385 2021-02-25 Jan Vrany <jan.vrany@labware.com>
1387 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1388 (mi_tsv_created): Likewise.
1389 (mi_tsv_deleted): Likewise.
1391 2021-02-25 Tom de Vries <tdevries@suse.de>
1394 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1395 section_kind for &dwo_file->sections.info.
1397 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1400 * f-lang.c (fortran_argument_convert): Delete declaration.
1401 (fortran_prepare_argument): New function.
1402 (evaluate_subexp_f): Move logic to new function
1403 fortran_prepare_argument.
1405 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1407 * f-exp.y (f77_keywords): Add 'associated'.
1408 * f-lang.c (fortran_associated): New function.
1409 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1410 (operator_length_f): Likewise.
1411 (print_unop_or_binop_subexp_f): New function.
1412 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1413 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1414 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1415 (operator_check_f): Likewise.
1416 * std-operator.def: Add FORTRAN_ASSOCIATED.
1418 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1420 * f-exp.y (fortran_operators): Add ".xor.".
1422 2021-02-24 Tom de Vries <tdevries@suse.de>
1425 * dwarf2/attribute.c (attribute::form_is_signed): New function
1427 * dwarf2/attribute.h (attribute::as_signed): ... here.
1428 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1429 (attribute::form_is_signed): Declare.
1430 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1431 for DW_AT_decl_file.
1433 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1435 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1436 order for <sys/ptrace.h> and <asm/ptrace.h>.
1438 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1440 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1443 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1445 * exec.c (set_section_command): Move variable declarations into
1446 the function body, and use std::string instead of a fixed size
1449 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1451 * exec.c (exec_target::get_section_table): Delete member function.
1452 (section_table_read_available_memory): Use current_top_target, not
1453 just the exec_ops target.
1454 * target-delegates.c: Regenerate.
1455 * target.c (default_get_section_table): New function.
1456 * target.h (target_ops::get_section_table): Change default
1457 behaviour to call default_get_section_table.
1458 (default_get_section_table): Declare.
1460 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1462 * exec.c (exec_target::close): Call new clear_target_sections
1464 (program_space::add_target_sections): Update name of member
1466 (program_space::add_target_sections): Update name of member
1468 (program_space::remove_target_sections): Likewise.
1469 (exec_one_fork): Use new target_sections member function.
1470 (exec_target::get_section_table): Likewise.
1471 (exec_target::files_info): Likewise.
1472 (set_section_command): Likewise.
1473 (exec_set_section_address): Likewise.
1474 (exec_target::has_memory): Use new target_sections member
1476 * progspace.h (program_space::clear_target_sections): New member
1478 (program_space::target_sections): Rename member variable to
1479 m_target_sections, replace with a new member function.
1480 (program_space::m_target_sections): New member variable.
1481 * solib-dsbt.c (scan_dyntag): Use new member function.
1482 * solib-svr4.c (scan_dyntag): Likewise.
1484 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1486 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1488 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1489 (section_table_read_available_memory): Make local const.
1490 (exec_target::xfer_partial): Make local const.
1491 (print_section_info): Make parameter const.
1492 * gdb/exec.h (print_section_info): Likewise.
1493 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1495 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1497 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1499 * gdb/s390-tdep.c (s390_load): Likewise.
1500 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1501 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1502 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1504 (target_debug_print_const_target_section_table_p): ...this.
1505 * gdb/target-delegates.c: Regenerate.
1506 * gdb/target.c (target_get_section_table): Make return type const.
1507 (target_section_by_addr): Likewise. Also make some locals const.
1508 (memory_xfer_partial_1): Make some locals const.
1509 * gdb/target.h (struct target_ops) <get_section_table>: Make
1511 (target_section_by_addr): Likewise.
1512 (target_get_section_table): Likewise.
1514 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1516 * NEWS: Mention new 'maint info target-sections' command.
1517 * maint.c (maintenance_info_target_sections): New function.
1518 (_initialize_maint_cmds): Register new command.
1520 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1522 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1523 (riscv_features_from_bfd): ...this. Change parameter type to
1524 'bfd*', and update as required.
1525 (riscv_find_default_target_description): Update call to
1526 riscv_features_from_bfd. Select a default xlen based on
1528 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1530 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1532 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1533 dynamic types in UNOP_IND.
1535 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1538 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1540 (~dwarf2_queue_guard): Clear queue.
1541 (queue_comp_unit): Assert that queue is
1543 (process_queue): Adjust.
1544 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1546 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1549 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1550 to decide whether or not to enqueue it for expansion.
1551 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1552 after calling maybe_queue_comp_unit.
1554 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1556 * linux-nat.c (linux_nat_filter_event): Return void.
1558 2021-02-22 Tom Tromey <tromey@adacore.com>
1560 * solib-svr4.c (enable_break): Update.
1561 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1563 (target_bfd_reopen): Change parameter type.
1564 * bfd-target.h (target_bfd_reopen): Change parameter type.
1566 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1568 * thread.c (add_thread_silent): Add assert.
1569 (find_thread_ptid): Add assert.
1571 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1574 * inf-ptrace.c (struct target_unpusher): Move to target.h.
1575 (target_unpush_up): Likewise.
1576 * procfs.c (procfs_target::attach): Push target early. Use
1577 target_unpush_up to unpush target in case of error.
1578 * target.h (struct target_unpusher): Move here.
1579 (target_unpush_up): Likewise.
1581 2021-02-19 Kevin Buettner <kevinb@redhat.com>
1583 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
1584 (which in turn includes <gnulib/config.h>) before include
1587 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
1590 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
1591 (decode_j_type_insn): Likewise.
1592 (decode_cj_type_insn): Likewise.
1593 (decode_b_type_insn): Likewise.
1596 2021-02-18 Tom Tromey <tom@tromey.com>
1598 * expression.h (struct expression) <evaluate>: Declare method.
1599 * eval.c (evaluate_subexp): Simplify.
1600 (expression::evaluate): New method.
1601 (evaluate_expression, evaluate_type): Use expression::evaluate.
1603 2021-02-17 Kevin Buettner <kevinb@redhat.com>
1605 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1607 (ada_lookup_name_info): Likewise.
1609 2021-02-13 Mike Frysinger <vapier@gentoo.org>
1611 * aclocal.m4: Regenerate.
1613 2021-02-12 Tom de Vries <tdevries@suse.de>
1616 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1617 (lin_thread_signals): New static var.
1618 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1620 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1621 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1623 * linux-thread-db.c (check_thread_signals): Use
1624 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1626 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1628 * f-exp.y (f77_keywords): Add allocated.
1629 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
1630 (operator_length_f): Likewise.
1631 (print_subexp_f): Likewise.
1632 (dump_subexp_body_f): Likewise.
1633 (operator_check_f): Likewise.
1634 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
1636 2021-02-11 Tom de Vries <tdevries@suse.de>
1639 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
1640 Return true for DW_FORM_strx.
1642 2021-02-11 Tom Tromey <tromey@adacore.com>
1645 * parse.c (write_exp_symbol_reference): Write sym.block.
1647 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1649 * NEWS: Mention changes to 'maint info sections'.
1650 * maint.c (match_substring): Return a bool, fix whitespace issue.
1651 (struct single_bfd_flag_info): New struct.
1652 (bfd_flag_info): New static global.
1653 (match_bfd_flags): Return a bool, use bfd_flag_info.
1654 (print_bfd_flags): Use bfd_flag_info.
1655 (maint_print_section_info): Delete trailing whitespace.
1656 (struct maint_info_sections_opts): New struct.
1657 (maint_info_sections_option_defs): New static global.
1658 (maint_info_sections_completer): New function.
1659 (maintenance_info_sections): Use option parsing mechanism.
1660 (_initialize_maint_cmds): Update command help text for 'maint info
1661 sections' and register a command completer.
1663 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1665 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
1666 functionality merged into...
1667 (maint_print_all_sections): ...this new function.
1668 (maintenance_info_sections): Make use of maint_print_all_sections,
1669 allow all objects to be printed even where there's no executable.
1671 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1673 * breakpoint.c (resolve_sal_pc): Make use of
1674 bound_minimal_symbol::obj_section.
1675 * maint.c (maintenance_translate_address): Likewise.
1676 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1677 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1679 * printcmd.c (info_address_command): Make use of
1680 bound_minimal_symbol::obj_section.
1682 2021-02-11 Alan Modra <amodra@gmail.com>
1684 * arm-symbian-tdep.c: Delete.
1685 * NEWS: Mention arm-symbian removal.
1686 * Makefile.in: Remove arm-symbian-tdep entries.
1687 * configure.tgt: Remove arm*-*-symbianelf*.
1688 * doc/gdb.texinfo: Remove mention of SymbianOS.
1689 * osabi.c (gdb_osabi_names): Remove "Symbian".
1690 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
1691 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
1692 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
1694 * testsuite/gdb.base/dup-sect.exp: Likewise.
1695 * testsuite/gdb.base/long_long.exp: Likewise.
1696 * testsuite/gdb.base/solib-weak.exp: Likewise.
1697 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
1698 * testsuite/gdb.python/py-section-script.exp: Likewise.
1699 * testsuite/lib/dwarf.exp: Likewise.
1700 * testsuite/lib/gdb.exp: Likewise.
1702 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1704 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
1705 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
1706 (one_or_two_args): New pattern.
1707 (f77_keywords): Add lbound and ubound.
1708 * f-lang.c (fortran_bounds_all_dims): New function.
1709 (fortran_bounds_for_dimension): New function.
1710 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
1711 (operator_length_f): Likewise.
1712 (print_subexp_f): Likewise.
1713 (dump_subexp_body_f): Likewise.
1714 (operator_check_f): Likewise.
1715 * std-operator.def (FORTRAN_LBOUND): Define.
1716 (FORTRAN_UBOUND): Define.
1718 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1720 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
1721 and set_section_index member functions where appropriate.
1722 * coffread.c (coff_symtab_read): Likewise.
1723 (process_coff_symbol): Likewise.
1724 * ctfread.c (set_symbol_address): Likewise.
1725 * dwarf2/read.c (add_partial_symbol): Likewise.
1726 (var_decode_location): Likewise.
1727 * language.c: Likewise.
1728 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
1729 (compact_minimal_symbols): Likewise.
1730 (minimal_symbol_upper_bound): Likewise.
1731 * objfiles.c (relocate_one_symbol): Likewise.
1732 * psympriv.h (partial_symbol::obj_section): Likewise.
1733 (partial_symbol::address): Likewise.
1734 * psymtab.c (partial_symtab::add_psymbol): Likewise.
1735 * stabsread.c (scan_file_globals): Likewise.
1736 * symmisc.c (dump_msymbols): Likewise.
1737 * symtab.c (general_symbol_info::obj_section): Likewise.
1738 (fixup_section): Likewise.
1739 (get_msymbol_address): Likewise.
1740 * symtab.h (general_symbol_info::section): Rename to...
1741 (general_symbol_info::m_section): ...this.
1742 (general_symbol_info::set_section_index): New member function.
1743 (general_symbol_info::section_index): Likewise.
1744 (SYMBOL_SECTION): Delete.
1745 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1746 set_section_index member functions where appropriate.
1747 (MSYMBOL_SECTION): Delete.
1748 (symbol::symbol): Update to initialize 'm_section'.
1749 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1750 (process_xcoff_symbol): Likewise.
1752 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1754 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1755 MSYMBOL_OBJ_SECTION.
1756 * findvar.c (language_defn::read_var_value): Likewise.
1757 * infcmd.c (jump_command): Likewise.
1758 * linespec.c (minsym_found): Likewise.
1759 * maint.c (maintenance_translate_address): Likewise.
1760 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1761 (minimal_symbol_upper_bound): Likewise.
1762 * parse.c (find_minsym_type_and_address): Likewise.
1763 (operator_check_standard): Likewise.
1764 * printcmd.c (info_address_command): Likewise.
1765 * symmisc.c (dump_msymbols): Likewise.
1766 (print_symbol): Likewise.
1767 * symtab.c (general_symbol_info::obj_section): Define new
1769 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1770 (find_pc_sect_compunit_symtab): Likewise.
1771 (find_function_start_sal): Likewise.
1772 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1773 MSYMBOL_OBJ_SECTION.
1774 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1776 (SYMBOL_OBJ_SECTION): Delete.
1777 (MSYMBOL_OBJ_SECTION): Delete.
1779 2021-02-09 Tom Tromey <tom@tromey.com>
1781 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1783 2021-02-09 Tom de Vries <tdevries@suse.de>
1786 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1787 construct an array type. Add assert to ensure that element_type is
1790 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1792 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1793 (gcore_collect_regset_section_cb): Delete.
1794 (gcore_collect_thread_registers): Delete.
1795 (gcore_build_thread_register_notes): Delete.
1796 (gcore_find_signalled_thread): Delete.
1797 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1798 'gdbarch' and 'thread_info' declarations.
1799 (gcore_build_thread_register_notes): Delete declaration.
1800 (gcore_find_signalled_thread): Likewise.
1801 * fbsd-tdep.c: Remove 'gcore.h' include.
1802 (struct fbsd_collect_regset_section_cb_data): New struct.
1803 (fbsd_collect_regset_section_cb): New function.
1804 (fbsd_collect_thread_registers): New function.
1805 (struct fbsd_corefile_thread_data): New struct.
1806 (fbsd_corefile_thread): New function.
1807 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1808 * linux-tdep.c: Remove 'gcore.h' include.
1809 (struct linux_collect_regset_section_cb_data): New struct.
1810 (linux_collect_regset_section_cb): New function.
1811 (linux_collect_thread_registers): New function.
1812 (linux_corefile_thread): Call Linux specific code.
1813 (find_signalled_thread): New function.
1814 (linux_make_corefile_notes): Call find_signalled_thread.
1816 2021-02-09 Tom Tromey <tromey@adacore.com>
1818 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1820 * value.c (value_contents_copy_raw): Now static.
1821 * value.h (value_contents_copy_raw): Don't declare.
1823 2021-02-09 Tom Tromey <tromey@adacore.com>
1825 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1828 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
1831 * arc-linux-tdep.c (handle_atomic_sequence): New.
1832 (arc_linux_software_single_step): Call handle_atomic_sequence().
1834 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1836 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1838 (REQUIRE_WINDOW): Call is_valid member function.
1839 (REQUIRE_WINDOW_FOR_SETTER): New define.
1840 (gdbpy_tui_is_valid): Call is_valid member function.
1841 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1842 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1844 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1845 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1848 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1850 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1851 for the title is not nullptr.
1853 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1855 * tui-layout.c (saved_tui_windows): Delete.
1856 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1857 call new get_windows member function instead.
1858 (tui_get_window_by_name): Check in tui_windows.
1859 (tui_layout_window::apply): Don't add to tui_windows.
1860 * tui-layout.h (tui_layout_base::get_windows): New member function.
1861 (tui_layout_window::get_windows): Likewise.
1862 (tui_layout_split::get_windows): Likewise.
1864 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1866 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1867 of the window objects.
1869 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1871 * python/python.c (gdbpy_print_stack): Reformat an error message.
1873 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1875 * tui/tui-interp.c (tui_command_line_handler): New function.
1876 (tui_interp::resume): Register tui_command_line_handler as the
1878 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1880 (tui_getc_1): Delete handling of '\n' and '\r'.
1881 * tui-io.h (tui_inject_newline_into_command_window): Declare.
1883 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1885 * tui/tui-regs.c (tui_data_window::display_registers_from):
1886 Mark invisible register sub windows.
1887 (tui_data_window::check_register_values): Ignore invisible
1888 register sub windows.
1890 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1892 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
1893 n_spaces with a negative value.
1895 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1897 * tui/tui-regs.c (tui_data_window::display_registers_from):
1898 Add refresh_window call.
1900 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
1902 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
1904 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
1906 * symmisc.c (std_in, std_out, std_err): Remove.
1907 (_initialize_symmisc): Don't set std_in, std_out and std_err.
1909 2021-02-05 Tom de Vries <tdevries@suse.de>
1911 PR breakpoints/27330
1912 * breakpoint.c (create_exception_master_breakpoint): Handle case that
1913 glibc object file has debug info.
1915 2021-02-05 Tom de Vries <tdevries@suse.de>
1918 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
1920 2021-02-05 Tom de Vries <tdevries@suse.de>
1922 PR breakpoints/27313
1923 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
1926 2021-02-05 Tom Tromey <tom@tromey.com>
1928 * compile/compile-c-support.c (get_compile_context)
1929 (c_get_compile_context, cplus_get_compile_context): Change return
1931 * language.c (language_defn::get_compile_instance): New method.
1932 * language.h (language_defn::get_compile_instance): Change return
1933 type. No longer inline.
1934 * c-lang.c (c_language::get_compile_instance): Change return type.
1935 (cplus_language::get_compile_instance): Change return type.
1936 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
1938 * compile/compile.c (compile_to_object): Update.
1940 2021-02-05 Tom Tromey <tom@tromey.com>
1942 * parser-defs.h (write_exp_symbol_reference): Declare.
1943 * parse.c (write_exp_symbol_reference): New function.
1944 * p-exp.y (variable): Use write_exp_symbol_reference.
1945 * m2-exp.y (variable): Use write_exp_symbol_reference.
1946 * f-exp.y (variable): Use write_exp_symbol_reference.
1947 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
1948 * c-exp.y (variable): Use write_exp_symbol_reference.
1950 2021-02-05 Tom de Vries <tdevries@suse.de>
1953 * valarith.c (complex_binop): Throw an error if complex type can't
1956 2021-02-05 Tom de Vries <tdevries@suse.de>
1959 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
1962 2021-02-05 Tom de Vries <tdevries@suse.de>
1964 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
1966 2021-02-04 Mike Frysinger <vapier@gentoo.org>
1968 * configure.tgt (riscv*-*-*): Set gdb_sim.
1970 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
1972 * target.c (target_is_non_stop_p): Return bool.
1973 * target.h (target_is_non_stop_p): Return bool.
1975 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1977 * record-full.c (record_full_async_inferior_event_handler):
1978 Don't clear async event handler.
1979 (record_full_base_target::wait): Clear async event handler at
1982 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1984 * record-btrace.c (record_btrace_handle_async_inferior_event):
1985 Don't clear async event handler.
1986 (record_btrace_target::wait): Clear async event handler at
1989 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1991 * remote.c (remote_target::wait): Clear async event handler at
1992 beginning, mark if needed at the end.
1993 (remote_async_inferior_event_handler): Don't set or clear async
1996 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
1998 * async-event.h (async_event_handler_func): Add documentation.
1999 * async-event.c (check_async_event_handlers): Don't clear
2000 async_event_handler ready flag.
2001 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2003 * record-btrace.c (record_btrace_handle_async_inferior_event):
2005 * record-full.c (record_full_async_inferior_event_handler):
2007 * remote-notif.c (remote_async_get_pending_events_handler):
2009 * remote.c (remote_async_inferior_event_handler): Likewise.
2011 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2013 * infrun.c (handle_inferior_event): Move stop_soon variable to
2016 2021-02-03 Pedro Alves <pedro@palves.net>
2018 * infcmd.c (detach_command): Hold strong reference to target, and
2019 if all-stop on entry, restart threads on exit.
2020 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2021 (restart_stepped_thread): ... this new function. Also handle
2023 (restart_after_all_stop_detach): New function.
2024 * infrun.h (restart_after_all_stop_detach): Declare.
2026 2021-02-03 Pedro Alves <pedro@palves.net>
2028 * infrun.c (struct step_over_info): Initialize fields.
2029 (prepare_for_detach): Handle ongoing in-line step over.
2031 2021-02-03 Pedro Alves <pedro@palves.net>
2033 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2035 * remote.c (remote_target::remote_detach_1): ... and here ...
2036 * target.c (target_detach): ... instead of here.
2037 * target.h (target_ops::detach): Add comment.
2039 2021-02-03 Pedro Alves <pedro@palves.net>
2041 * infrun.c (struct wait_one_event): Move higher up.
2042 (prepare_for_detach): Abort in-progress displaced steps instead of
2043 letting them complete.
2044 (handle_one): If the inferior is detaching, don't add the thread
2045 back to the global step-over chain.
2046 (restart_threads): Don't restart threads if detaching.
2047 (handle_signal_stop): Remove inferior::detaching reference.
2049 2021-02-03 Pedro Alves <pedro@palves.net>
2051 * infrun.c (prepare_for_detach): Don't release scoped_restore
2054 2021-02-03 Pedro Alves <pedro@palves.net>
2056 * infrun.c (handle_one): New function, factored out from ...
2057 (stop_all_threads): ... here.
2059 2021-02-03 Pedro Alves <pedro@palves.net>
2061 * remote.c (remote_notif_stop_ack): Don't error out on
2062 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2063 (remote_target::discard_pending_stop_replies): Don't delete
2064 in-flight notification; instead, clear its contents.
2066 2021-02-03 Pedro Alves <pedro@palves.net>
2068 * remote.c (extended_remote_target::attach): Set target async in
2069 the target-non-stop path too.
2071 2021-02-03 Pedro Alves <pedro@palves.net>
2074 * infrun.c (handle_signal_stop): Move main context_switch call
2075 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2077 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2079 * NEWS (Changed commands): Add entry for the behavior change of
2080 the inferior command.
2081 * inferior.c (inferior_command): When no argument is given to the
2082 inferior command, display info about the currently selected
2085 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2087 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2089 (read_attribute_reprocess): Adjust.
2091 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2093 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2094 <gnu_ranges_base>: ... this...
2095 <rnglists_base>: ... and this.
2096 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2097 <gnu_ranges_base>: ... this...
2098 <rnglists_base>: ... and this.
2099 (read_cutu_die_from_dwo): Adjust
2100 (dwarf2_get_pc_bounds): Adjust
2101 (dwarf2_record_block_ranges): Adjust.
2102 (read_full_die_1): Adjust
2103 (partial_die_info::read): Adjust.
2104 (read_rnglist_index): Adjust.
2106 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2109 * dwarf2/read.c (read_loclists_rnglists_header): Add
2110 header_offset parameter and use it.
2111 (read_loclist_index): Read header of the current contribution,
2112 not the one at the beginning of the section.
2113 (read_rnglist_index): Likewise.
2115 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2118 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2119 requires_reprocessing flag.
2120 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2122 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2123 and DW_FORM_loclistx.
2124 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2125 instead of set_address for DW_FORM_loclistx and
2128 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2130 * dwarf2/read.c (read_loclist_index): Remove bound check for
2132 (read_rnglist_index): Likewise.
2134 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2136 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2139 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2141 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2143 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2145 * dwarf2/read.c (read_loclist_index): Change complaints into
2148 2021-02-02 Tom de Vries <tdevries@suse.de>
2151 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2154 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2156 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2157 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2158 here from linux-tdep.c and given a new name. Minor cleanups.
2159 (gcore_collect_regset_section_cb): Likewise.
2160 (gcore_collect_thread_registers): Likewise.
2161 (gcore_build_thread_register_notes): Likewise.
2162 (gcore_find_signalled_thread): Likewise.
2163 * gcore.h (gcore_build_thread_register_notes): Declare.
2164 (gcore_find_signalled_thread): Declare.
2165 * fbsd-tdep.c: Add 'gcore.h' include.
2166 (struct fbsd_collect_regset_section_cb_data): Delete.
2167 (fbsd_collect_regset_section_cb): Delete.
2168 (fbsd_collect_thread_registers): Delete.
2169 (struct fbsd_corefile_thread_data): Delete.
2170 (fbsd_corefile_thread): Delete.
2171 (fbsd_make_corefile_notes): Call
2172 gcore_build_thread_register_notes instead of the now deleted
2174 * linux-tdep.c: Add 'gcore.h' include.
2175 (struct linux_collect_regset_section_cb_data): Delete.
2176 (linux_collect_regset_section_cb): Delete.
2177 (linux_collect_thread_registers): Delete.
2178 (linux_corefile_thread): Call
2179 gcore_build_thread_register_notes.
2180 (find_signalled_thread): Delete.
2181 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2183 2021-01-29 Tom de Vries <tdevries@suse.de>
2185 PR breakpoints/26063
2186 * infrun.c (process_event_stop_test): Reset
2187 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2190 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2192 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2193 assert. Extend the header comment.
2195 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2197 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2198 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2199 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2200 (tui_locator_win_info_ptr): Delete declaration.
2201 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2202 (tui_disasm_window::set_contents): Fetch state from tui_location
2204 (tui_get_begin_asm_address): Likewise.
2205 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2207 (get_locator_window): Delete.
2208 (initialize_known_windows): Treat locator window just like all the
2210 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2211 (tui_source_window::set_contents): Fetch state from tui_location
2213 (tui_source_window::showing_source_p): Likewise.
2214 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2216 (tui_locator_win_info_ptr): Delete.
2217 (tui_locator_window::make_status_line): Fetch state from
2218 tui_location global.
2219 (tui_locator_window::rerender): Remove check of 'handle',
2220 reindent function body.
2221 (tui_locator_window::set_locator_fullname): Delete.
2222 (tui_locator_window::set_locator_info): Delete.
2223 (tui_update_locator_fullname): Delete.
2224 (tui_show_frame_info): Likewise.
2225 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2226 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2227 tui/tui-location.h and renamed to
2228 tui_location_tracker::set_location.
2229 (tui_locator_window::set_locator_fullname): Moved to
2230 tui/tui-location.h and renamed to
2231 tui_location_tracker::set_fullname.
2232 (tui_locator_window::full_name): Delete.
2233 (tui_locator_window::proc_name): Delete.
2234 (tui_locator_window::line_no): Delete.
2235 (tui_locator_window::addr): Delete.
2236 (tui_locator_window::gdbarch): Delete.
2237 (tui_update_locator_fullname): Delete declaration.
2238 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2240 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2241 (tui_display_main): Call function on tui_location directly.
2242 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2243 * tui/tui-location.c: New file.
2244 * tui/tui-location.h: New file.
2246 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2248 * gdbtypes.h (get_type_arch): Rename to...
2249 (struct type) <arch>: ... this, update all users.
2251 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2253 * gdbtypes.h (struct type) <arch>: Rename to...
2254 <arch_owner>: ... this, update all users.
2255 <objfile>: Rename to...
2256 <objfile_owner>: ... this, update all users.
2258 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2260 * gdbcmd.h (execute_command_to_string): Update comment.
2261 * top.c (execute_command_to_string): Update header comment.
2263 2021-01-28 Tom de Vries <tdevries@suse.de>
2265 PR breakpoints/27205
2266 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2267 (create_longjmp_master_breakpoint_names): New function, factored out
2269 (create_longjmp_master_breakpoint): ... here. Only try to install
2270 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2271 breakpoint in libc.so failed.
2273 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2276 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2277 unique_ptr is released when the wrapped pointer is kept for later
2280 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2282 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2283 BLR and BR instructions.
2284 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2285 (enum aarch64_masks): New.
2287 2021-01-26 Tom Tromey <tromey@adacore.com>
2289 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2290 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2291 (windows_init_thread_list, windows_nat::handle_load_dll)
2292 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2293 (windows_nat_target::resume)
2294 (windows_nat_target::get_windows_debug_event)
2295 (windows_nat_target::interrupt, windows_xfer_memory)
2296 (windows_nat_target::close): Update.
2297 * nat/windows-nat.c (DEBUG_EVENTS): Use
2298 debug_prefixed_printf_cond.
2299 (matching_pending_stop, fetch_pending_stop)
2300 (continue_last_debug_event): Update.
2302 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2304 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2305 elfcore_write_file_note.
2307 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
2309 * arc-tdep.c (arc_add_reggroups): New function.
2310 (arc_gdbarch_init): Call arc_add_reggroups.
2312 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
2314 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2316 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2317 Simon Marchi <simon.marchi@polymtl.ca>
2318 Tom de Vries <tdevries@suse.de>
2320 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2323 2021-01-25 Tom Tromey <tromey@adacore.com>
2325 * dwarf2/read.c (get_mpz): New function.
2326 (get_dwarf2_rational_constant): Use it.
2328 2021-01-25 Tom Tromey <tromey@adacore.com>
2330 * ada-lang.c (resolve_subexp): Handle array context.
2332 2021-01-23 Tom Tromey <tom@tromey.com>
2335 * compile/compile-loc2c.c (note_register): New function.
2336 (pushf_register_address, pushf_register): Use it.
2338 2021-01-23 Tom Tromey <tom@tromey.com>
2340 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2341 Change type of "registers_used".
2342 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2343 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2344 (locexpr_generate_c_location, loclist_generate_c_location): Change
2345 type of "registers_used".
2346 * compile/compile.h (compile_dwarf_expr_to_c)
2347 (compile_dwarf_bounds_to_c): Update.
2348 * compile/compile-loc2c.c (pushf_register_address)
2349 (pushf_register, do_compile_dwarf_expr_to_c)
2350 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2351 of "registers_used".
2352 * compile/compile-c.h (generate_c_for_variable_locations):
2354 * compile/compile-c-symbols.c (generate_vla_size)
2355 (generate_c_for_for_one_variable): Change type of
2357 (generate_c_for_variable_locations): Return std::vector.
2358 * compile/compile-c-support.c (generate_register_struct): Change
2359 type of "registers_used".
2362 2021-01-23 Tom Tromey <tom@tromey.com>
2364 * compile/compile-internal.h (class compile_instance)
2365 <set_arguments>: Change return type.
2366 * compile/compile.c (compile_to_object): Remove call to reset.
2367 (compile_instance::set_arguments): Change return type.
2369 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2371 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2372 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2374 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2376 * Makefile.in (SELFTESTS_SRCS): Add
2377 unittests/gdb_tilde_expand-selftests.c.
2378 * unittests/gdb_tilde_expand-selftests.c: New file.
2380 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2383 * NEWS: Mention new command.
2384 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2385 (version_style): Define.
2386 (cli_style_option::cli_style_option): Add intensity parameter, and
2388 (_initialize_cli_style): Register version style set/show commands.
2389 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2390 (version_style): Declare.
2391 * top.c (print_gdb_version): Use version_stype, and styled_string
2392 to print the GDB version string.
2394 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2396 * utils.c (emit_style_escape): Only emit an escape sequence if the
2397 requested style is different than the current applied style.
2398 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2399 current applied_style.
2400 (fputs_styled): Remove is_default check.
2401 (fputs_styled_unfiltered): Likewise.
2402 (vfprintf_styled_no_gdbfmt): Likewise.
2404 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2406 * remote.h (remote_debug_printf): New.
2407 (remote_debug_printf_nofunc): New.
2408 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2409 * remote.c: Use above macros throughout file.
2411 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2413 * remote.h (remote_debug): Change to bool.
2414 * remote.c (remote_debug): Change to bool.
2415 (_initialize_remote): Adjust.
2417 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2419 * target.h (remote_debug): Move to...
2420 * remote.h (remote_debug): ... here.
2421 * top.c (remote_debug): Move to...
2422 * remote.c (remote_debug): ... here.
2423 * remote-sim.c: Include remote.h.
2425 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2427 * cli/cli-cmds.c (show_remote_debug): Remove.
2428 (show_remote_timeout): Remove.
2429 (_initialize_cli_cmds): Don't register commands.
2430 * remote.c (show_remote_debug): Move here.
2431 (show_remote_timeout): Move here.
2432 (_initialize_remote): Register commands.
2434 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2436 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2437 type::objfile method instead.
2439 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2441 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2442 use the type::is_objfile_owned method.
2444 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
2446 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2447 (TYPE_OWNER): Remove.
2448 (TYPE_OBJFILE): Adjust.
2449 (struct main_type) <flag_objfile_owned>: Rename to...
2450 <m_flag_objfile_owned>: ... this.
2451 <owner>: Rename to...
2452 <m_owner>: ... this.
2453 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2455 (TYPE_ALLOC): Adjust.
2456 * gdbtypes.c (alloc_type): Adjust.
2457 (alloc_type_arch): Adjust.
2458 (alloc_type_copy): Adjust.
2459 (get_type_arch): Adjust.
2460 (smash_type): Adjust.
2461 (lookup_array_range_type): Adjust.
2462 (recursive_dump_type): Adjust.
2463 (copy_type_recursive): Adjust.
2464 * compile/compile-c-types.c (convert_func): Adjust.
2465 (convert_type_basic): Adjust.
2466 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2469 (language_arch_info::type_and_symbol::alloc_type_symbol):
2472 2021-01-21 Luis Machado <luis.machado@linaro.org>
2474 * coffread.c (enter_linenos): Passing string to complaint.
2475 * valops.c (value_assign): Make array view.
2477 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2479 * auto-load.h (debug_auto_load): Move here.
2480 (auto_load_debug_printf): New.
2481 * auto-load.c: Use auto_load_debug_printf.
2482 (debug_auto_load): Move to header.
2483 * linux-thread-db.c (try_thread_db_load): Use
2484 auto_load_debug_printf.
2485 * main.c (captured_main_1): Likewise.
2487 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2489 * f-valprint.c (f77_array_offset_tbl): Remove.
2491 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2493 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2495 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2497 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2500 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
2503 * python/py-breakpoint.c (bppy_get_location): Handle
2504 bp_hardware_breakpoint.
2505 (bppy_init): Likewise.
2506 (gdbpy_breakpoint_created): Likewise.
2508 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2510 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2512 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2514 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2515 (_initialize_gdb_bfd): Adjust.
2517 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2520 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2522 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2524 * dwarf2/read.c (follow_die_offset): Add logging.
2525 (dwarf2_per_objfile::age_comp_units): Add logging.
2527 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2529 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2530 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2531 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2532 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2533 * arm-tdep.c (struct frame_unwind): Make static.
2534 * auto-load.c (auto_load_safe_path_vec): Make static.
2535 * csky-tdep.c (csky_stub_unwind): Make static.
2536 * gdbarch.c (gdbarch_data_registry): Make static.
2537 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2538 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2539 * i386-tdep.c (i386_frame_setup_skip_insns,
2540 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2542 * infrun.c (observer_mode): Make static.
2543 * linux-nat.c (sigchld_action): Make static.
2544 * linux-thread-db.c (thread_db_list): Make static.
2545 * maint-test-options.c (maintenance_test_options_list):
2546 * mep-tdep.c (mep_csr_registers): Make static.
2547 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2548 (stats): Make static.
2549 * nat/linux-osdata.c (struct osdata_type): Make static.
2550 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2551 * progspace.c (last_program_space_num): Make static.
2552 * python/py-param.c (struct parm_constant): Remove struct type
2554 (parm_constants): Make static.
2555 * python/py-record-btrace.c (btpy_list_methods): Make static.
2556 * python/py-record.c (recpy_gap_type): Make static.
2557 * record.c (record_goto_cmdlist): Make static.
2558 * regcache.c (regcache_descr_handle): Make static.
2559 * registry.h (DEFINE_REGISTRY): Make definition static.
2560 * symmisc.c (std_in, std_out, std_err): Make static.
2561 * top.c (previous_saved_command_line): Make static.
2562 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2564 * unittests/command-def-selftests.c (nr_duplicates,
2565 nr_invalid_prefixcmd, lists): Make static.
2566 * unittests/observable-selftests.c (test_notification): Make
2568 * unittests/optional/assignment/1.cc (counter): Make static.
2569 * unittests/optional/assignment/2.cc (counter): Make static.
2570 * unittests/optional/assignment/3.cc (counter): Make static.
2571 * unittests/optional/assignment/4.cc (counter): Make static.
2572 * unittests/optional/assignment/5.cc (counter): Make static.
2573 * unittests/optional/assignment/6.cc (counter): Make static.
2575 2021-01-20 Joel Sherrill <joel@rtems.org>
2578 * remote.c (struct remote_thread_info) <resume_state>: Rename
2580 <get_resume_state>: ... this.
2581 (remote_target::resume): Adjust.
2582 (remote_target::commit_resume): Adjust.
2583 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
2585 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
2586 Tom Tromey <tom@tromey.com>
2588 * stap-probe.c (stap_parse_single_operand): Handle '!'
2590 (stap_parse_argument_conditionally): Likewise.
2591 Skip spaces after processing open-parenthesis sub-expression.
2592 (stap_parse_argument_1): Skip spaces after call to
2593 stap_parse_argument_conditionally.
2594 Handle case when right-side expression is a parenthesized
2596 Skip spaces after call to stap_parse_argument_1.
2598 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2600 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2602 2021-01-19 Luis Machado <luis.machado@linaro.org>
2604 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2605 memory and save data.
2606 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2607 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2608 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2609 (trad_frame_value_bytes_p): Remove.
2610 (trad_frame_reset_saved_regs): Adjust documentation.
2611 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2612 constructor and reset the state of the registers.
2613 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2614 (trad_frame_value_bytes_p, trad_frame_set_value)
2615 (trad_frame_set_realreg, trad_frame_set_addr)
2616 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2617 (trad_frame_set_reg_realreg): Update to call member function.
2618 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2619 (trad_frame_get_prev_register): Likewise.
2621 * aarch64-tdep.c (aarch64_analyze_prologue)
2622 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2623 (aarch64_prologue_prev_register): Update to use member functions.
2624 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2625 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
2626 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
2627 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
2628 (arm_make_epilogue_frame_cache): Likewise.
2629 * avr-tdep.c (avr_frame_unwind_cache)
2630 (avr_frame_prev_register): Likewise.
2631 * cris-tdep.c (cris_scan_prologue): Likewise.
2632 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
2633 * frv-tdep.c (frv_analyze_prologue): Likewise.
2634 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
2635 * lm32-tdep.c (lm32_frame_cache): Likewise.
2636 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2637 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2638 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
2639 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
2640 (reset_saved_regs): Adjust to set realreg.
2641 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
2642 call member functions.
2643 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
2644 * s390-tdep.c (s390_prologue_frame_unwind_cache)
2645 (s390_backchain_frame_unwind_cache): Likewise.
2646 * score-tdep.c (score7_analyze_prologue)
2647 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
2648 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
2649 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2650 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
2651 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2652 * tilegx-tdep.c (tilegx_analyze_prologue)
2653 (tilegx_frame_cache): Likewise.
2654 * v850-tdep.c (v850_frame_cache): Likewise.
2655 * vax-tdep.c (vax_frame_cache): Likewise.
2657 2021-01-19 Luis Machado <luis.machado@linaro.org>
2659 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
2661 (put_frame_register_bytes): Likewise.
2662 Adjust documentation.
2663 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
2664 (safe_frame_unwind_memory): Likewise.
2665 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
2666 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
2668 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
2669 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
2670 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2671 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
2672 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
2673 * dwarf2/loc.c (rw_pieced_value): Likewise.
2674 * hppa-tdep.c (hppa_frame_cache): Likewise.
2675 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2676 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2677 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2678 (i386_linux_rt_sigtramp_start): Likewise.
2679 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2680 * i386-tdep.c (i386_register_to_value): Likewise.
2681 * i387-tdep.c (i387_register_to_value): Likewise.
2682 * ia64-tdep.c (ia64_register_to_value): Likewise.
2683 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2684 (m32r_linux_rt_sigtramp_start): Likewise.
2685 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2686 * m68k-tdep.c (m68k_register_to_value): Likewise.
2687 * mips-tdep.c (mips_register_to_value)
2688 (mips_value_to_register): Likewise.
2689 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
2690 (ppcfbsd_sigtramp_frame_cache): Likewise.
2691 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
2692 (ppcobsd_sigtramp_frame_cache): Likewise.
2693 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
2694 (rs6000_register_to_value): Likewise.
2695 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2696 * tramp-frame.c (tramp_frame_start): Likewise.
2697 * valops.c (value_assign): Likewise.
2699 2021-01-19 Luis Machado <luis.machado@linaro.org>
2701 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
2703 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
2704 instead of buffer and size.
2705 (trad_frame_set_reg_value_bytes): Likewise.
2706 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
2707 (trad_frame_set_value_bytes): Likewise.
2709 2021-01-18 Mike Frysinger <vapier@gentoo.org>
2711 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
2713 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
2715 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
2716 (riscv_fbsd_gregset): Use riscv_supply_regset.
2717 (riscv_fbsd_fpregset): Likewise.
2718 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
2719 (riscv_linux_fregset): Likewise.
2720 * riscv-tdep.c (riscv_supply_regset): Define new function.
2721 * riscv-tdep.h (riscv_supply_regset): Declare new function.
2723 2021-01-18 Tom de Vries <tdevries@suse.de>
2726 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
2728 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
2731 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2733 * remote.c (class remote_target) <remote_hostio_send_command,
2734 remote_hostio_parse_result>: Constify parameter.
2735 (remote_hostio_parse_result): Likewise.
2736 (remote_target::remote_hostio_send_command): Adjust.
2737 (remote_target::remote_hostio_pread_vFile): Adjust.
2738 (remote_target::fileio_readlink): Adjust.
2739 (remote_target::fileio_fstat): Adjust.
2741 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2743 * remote.c (remote_target::start_remote): Move wait_status to
2746 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2748 * remote.c (class remote_target):
2749 <add_current_inferior_and_thread>: Constify parameter.
2750 (stop_reply_extract_thread): Likewise.
2751 (remote_target::get_current_thread): Likewise.
2752 (remote_target::add_current_inferior_and_thread): Likewise.
2754 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2756 * remote.c (class remote_target)
2757 <remote_unpack_thread_info_response,
2758 parse_threadlist_response>: Constify parameter and/or return
2759 value and or local variable.
2760 (stub_unpack_int): Likewise.
2761 (unpack_nibble): Likewise.
2762 (unpack_byte): Likewise.
2763 (unpack_int): Likewise.
2764 (unpack_string): Likewise.
2765 (unpack_threadid): Likewise.
2766 (remote_target::remote_unpack_thread_info_response): Likewise.
2767 (remote_target::parse_threadlist_response): Likewise.
2769 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2771 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2773 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
2775 * MAINTAINERS (Write After Approval): Add myself.
2777 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2779 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2780 because is_trivially_default_constructible was first implemented with
2783 2021-01-14 Tom de Vries <tdevries@suse.de>
2785 PR breakpoints/27151
2786 * objfiles.h (in_plt_section): Handle .plt.sec.
2788 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2792 (remote_target::select_thread_for_ambiguous_stop_reply): New
2794 (remote_target::process_stop_reply): Call
2795 select_thread_for_ambiguous_stop_reply.
2797 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
2799 * record-btrace.c (class record_btrace_target): Remove.
2800 (record_btrace_target::commit_resume): Remove.
2801 * record-full.c (class record_full_target): Remove.
2802 (record_full_target::commit_resume): Remove.
2804 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
2806 * remote.c (enum class resume_state): New.
2807 (struct resumed_pending_vcont_info): New.
2808 (struct remote_thread_info) <resume_state, set_not_resumed,
2809 set_resumed_pending_vcont, resumed_pending_vcont_info,
2810 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2812 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2813 (remote_target::remote_add_thread): Adjust.
2814 (remote_target::process_initial_stop_replies): Adjust.
2815 (remote_target::resume): Adjust.
2816 (remote_target::commit_resume): Rely on state in
2817 remote_thread_info and not on tp->executing.
2818 (remote_target::process_stop_reply): Adjust.
2820 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2822 * arc-tdep.h (arc_debug_printf): New.
2823 * arc-tdep.c: Use arc_debug_printf.
2824 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2825 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2826 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2828 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2830 * arc-tdep.h (arc_debug): Change type to bool.
2831 * arc-tdep.c (arc_debug): Change type to bool.
2832 (arc_analyze_prologue): Adjust.
2833 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2834 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2836 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2838 * auto-load.c (auto_load_objfile_script_1): Use bool.
2839 (execute_script_contents): Use bool.
2841 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2843 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2845 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2847 * extension-priv.h (struct extension_language_script_ops)
2848 <auto_load_enabled>: Return bool.
2849 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2851 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2853 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2855 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2856 move comment to header.
2857 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2859 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2860 move comment to header.
2862 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2864 * auto-load.h (file_is_auto_load_safe): Change return type to
2865 bool, move comment here.
2866 * auto-load.c (file_is_auto_load_safe): Change return type and
2867 advice_printed to bool. Move comment to header.
2869 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2871 * jit.c (jit_debug_printf): New, use throughout file.
2873 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2875 * infrun.c (normal_stop): Fix indentation.
2877 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2879 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2881 * symfile.h: ... here.
2882 * symfile.c: Update doc.
2884 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2886 * target.h (baud_rate, serial_parity): Move declarations...
2887 * serial.h: ... here.
2888 * main.c: Include serial.h.
2889 * serial.c (baud_rate, serial_parity): Update doc.
2891 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2893 * top.c (pre_init_ui_hook): Remove.
2895 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
2897 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
2898 (aarch64_vnv_type): Add "bf" type in h field of v registers.
2899 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
2900 * features/aarch64-fpu.xml: Add bfloat16 type.
2902 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2904 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
2906 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
2908 * f-exp.y (dot_ops): Rename to...
2909 (fortran_operators): ...this. Add a header comment. Add symbol
2911 (yylex): Update to use fortran_operators not dot_ops. Remove
2912 special handling for '**', this is now included in
2915 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2917 * arch/aarch64-insn.h (aarch64_debug_printf): New.
2918 * arch/aarch64-insn.c: Use aarch64_debug_printf.
2919 * aarch64-tdep.c: Use aarch64_debug_printf.
2921 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2923 * solib-aix.c (solib_aix_debug_printf): New, use throughout
2926 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
2928 * jit.c (jit_debug): Change type to bool.
2929 (_initialize_jit): Adjust.
2931 2021-01-09 Tom Tromey <tom@tromey.com>
2934 * compile/compile.c (compile_to_object): Avoid crash when
2935 osabi_triplet_regexp returns NULL.
2937 2021-01-09 Tom Tromey <tom@tromey.com>
2939 * tracepoint.h (class collection_list) <append_exp>: Take a
2941 * tracepoint.c (collection_list::append_exp): Take a std::string.
2942 (encode_actions_1): Update.
2944 2021-01-08 Tom Tromey <tromey@adacore.com>
2946 * parse.c (parse_expression): Add void_context_p parameter. Use
2947 parse_exp_in_context.
2948 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
2950 (print_command, call_command): Update.
2951 * expression.h (parse_expression): Add void_context_p parameter.
2953 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2955 * value.c (set_value_component_location): Adjust the VALUE_LVAL
2956 for internalvar components that have a dynamic location.
2958 2021-01-08 Tom de Vries <tdevries@suse.de>
2961 * breakpoint.c (create_exception_master_breakpoint_probe)
2962 (create_exception_master_breakpoint_hook): Factor out
2964 (create_exception_master_breakpoint): ... here. Only try to install
2965 the master exception breakpoint in objfile.debug using the
2966 _Unwind_DebugHook method, if the install using probes in objfile
2969 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
2971 * f-lang.c (fortran_value_subarray): Call value_from_component.
2973 2021-01-07 Mike Frysinger <vapier@gentoo.org>
2975 * remote-sim.c: Include memory-map.h.
2976 (gdbsim_target): Define memory_map override.
2977 (gdbsim_target::memory_map): Define.
2979 2021-01-07 Tom Tromey <tromey@adacore.com>
2981 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
2983 2021-01-07 Tom Tromey <tromey@adacore.com>
2985 * ada-lang.c (add_component_interval): Start loop using vector's
2988 2021-01-06 Tom Tromey <tromey@adacore.com>
2990 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
2992 * valarith.c (fixed_point_binop): Handle multiplication
2993 and division specially.
2994 * valops.c (value_to_gdb_mpq): New function.
2995 (value_cast_to_fixed_point): Use it.
2997 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
2999 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3000 Call wnoutrefresh instead of tui_win_info::refresh_window.
3002 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3004 * tui/tui-source.c (tui_source_window::show_line_number):
3005 Redraw second space after line number.
3007 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3010 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3011 Fix source pad size in prefresh.
3012 (tui_source_window_base::show_source_content): Grow source pad
3015 2021-01-04 Mike Frysinger <vapier@gentoo.org>
3017 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3018 (bfin_frame_align): Use align_down.
3020 2021-01-04 Tom de Vries <tdevries@suse.de>
3022 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3023 terminators that do not terminate anything.
3025 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3027 * debug.c (debug_print_depth): New.
3028 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3029 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3030 * infrun.c (start_step_over): Use
3031 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3032 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3033 INFRUN_SCOPED_DEBUG_START_END.
3034 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3036 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3038 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3040 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3042 * utils.c (vfprintf_unfiltered): Print timestamp only when
3043 previous debug output ended with a newline.
3045 2021-01-04 Luis Machado <luis.machado@linaro.org>
3047 Update all users of trad_frame_saved_reg to use the new member
3050 Remote all struct keywords from declarations of trad_frame_saved_reg
3051 types, except on forward declarations.
3053 * aarch64-tdep.c: Update.
3054 * alpha-mdebug-tdep.c: Update.
3055 * alpha-tdep.c: Update.
3056 * arc-tdep.c: Update.
3057 * arm-tdep.c: Update.
3058 * avr-tdep.c: Update.
3059 * cris-tdep.c: Update.
3060 * csky-tdep.c: Update.
3061 * frv-tdep.c: Update.
3062 * hppa-linux-tdep.c: Update.
3063 * hppa-tdep.c: Update.
3064 * hppa-tdep.h: Update.
3065 * lm32-tdep.c: Update.
3066 * m32r-linux-tdep.c: Update.
3067 * m32r-tdep.c: Update.
3068 * m68hc11-tdep.c: Update.
3069 * mips-tdep.c: Update.
3070 * moxie-tdep.c: Update.
3071 * riscv-tdep.c: Update.
3072 * rs6000-tdep.c: Update.
3073 * s390-linux-tdep.c: Update.
3074 * s390-tdep.c: Update.
3075 * score-tdep.c: Update.
3076 * sparc-netbsd-tdep.c: Update.
3077 * sparc-sol2-tdep.c: Update.
3078 * sparc64-fbsd-tdep.c: Update.
3079 * sparc64-netbsd-tdep.c: Update.
3080 * sparc64-obsd-tdep.c: Update.
3081 * sparc64-sol2-tdep.c: Update.
3082 * tilegx-tdep.c: Update.
3083 * v850-tdep.c: Update.
3084 * vax-tdep.c: Update.
3086 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3087 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3089 * trad-frame.c: Update.
3090 Remove TF_REG_* enum.
3091 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3092 a trivially-constructible struct.
3093 (trad_frame_reset_saved_regs): Adjust to use member function.
3094 (trad_frame_value_p): Likewise.
3095 (trad_frame_addr_p): Likewise.
3096 (trad_frame_realreg_p): Likewise.
3097 (trad_frame_value_bytes_p): Likewise.
3098 (trad_frame_set_value): Likewise.
3099 (trad_frame_set_realreg): Likewise.
3100 (trad_frame_set_addr): Likewise.
3101 (trad_frame_set_unknown): Likewise.
3102 (trad_frame_set_value_bytes): Likewise.
3103 (trad_frame_get_prev_register): Likewise.
3104 * trad-frame.h: Update.
3105 (trad_frame_saved_reg_kind): New enum.
3106 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3107 <m_kind, m_reg>: New member fields.
3108 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3109 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3110 <is_addr, is_unknown, is_value_bytes>: New member functions.
3112 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3114 * target-float.c: Fix typos.
3116 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
3118 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3120 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3122 * gdbarch.sh: Update copyright year range.
3124 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3126 Update copyright year range in copyright header of all GDB files.
3128 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3130 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3131 to the list of directories to update.
3133 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3135 * top.c (print_gdb_version): Update copyright year.
3137 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3139 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
3141 For older changes see ChangeLog-2020.
3147 version-control: never