1 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
3 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
5 (expr::fortran_array_size_1arg): New type.
6 (expr::fortran_array_size_2arg): Likewise.
7 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
8 UNOP_OR_BINOP_INTRINSIC.
9 (f77_keywords): Add "size" keyword.
10 * f-lang.c (fortran_array_size): New function.
11 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
12 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
14 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
16 * f-exp.h (eval_op_f_rank): Declare.
17 (expr::fortran_rank_operation): New typedef.
18 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
20 (f77_keywords): Add "rank" keyword.
21 * f-lang.c (eval_op_f_rank): New function.
22 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
24 2021-03-08 Tom Tromey <tom@tromey.com>
26 * printcmd.c (set_command): Remove null check.
27 * value.c (init_if_undefined_command): Remove null check.
29 2021-03-08 Tom Tromey <tom@tromey.com>
31 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
33 * p-exp.y (variable): Update.
34 * go-exp.y (variable): Update.
35 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
36 Remove overload for objfile.
37 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
39 (check_objfile): Likewise.
40 (dump_for_expression): Likewise. Remove overload for objfile.
41 (class var_msym_value_operation): Use bound_minimal_symbol.
42 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
44 (var_msym_value_operation::evaluate_for_address)
45 (var_msym_value_operation::evaluate_for_sizeof)
46 (var_msym_value_operation::evaluate_for_cast): Update.
47 * d-exp.y (PrimaryExpression): Update.
48 * c-exp.y (variable): Update.
49 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
50 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
52 * ada-exp.y (write_var_or_type): Update.
54 2021-03-08 Tom Tromey <tom@tromey.com>
56 * parser-defs.h (exp_uses_objfile): Return bool.
57 * parse.c (exp_uses_objfile): Return bool.
59 2021-03-08 Tom Tromey <tom@tromey.com>
61 * value.h (eval_skip_value): Don't declare.
62 * opencl-lang.c (eval_opencl_assign): Update.
63 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
64 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
65 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
66 * expression.h (enum noside) <EVAL_SKIP>: Remove.
67 * expop.h (typeof_operation::evaluate)
68 (decltype_operation::evaluate, unop_addr_operation::evaluate)
69 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
70 (cxx_cast_operation::evaluate): Update.
71 * eval.c (eval_skip_value): Remove.
72 (eval_op_scope, eval_op_var_entry_value)
73 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
74 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
75 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
76 (eval_op_binary, eval_op_subscript, eval_op_equal)
77 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
78 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
79 (eval_op_complement, eval_op_lognot, eval_op_ind)
80 (eval_op_memval, eval_op_preinc, eval_op_predec)
81 (eval_op_postinc, eval_op_postdec, eval_op_type)
82 (eval_binop_assign_modify, eval_op_objc_msgcall)
83 (eval_multi_subscript, logical_and_operation::evaluate)
84 (logical_or_operation::evaluate, array_operation::evaluate)
85 (operation::evaluate_for_cast)
86 (var_msym_value_operation::evaluate_for_cast)
87 (var_value_operation::evaluate_for_cast): Update.
88 * c-lang.c (c_string_operation::evaluate): Update.
89 * c-exp.h (objc_nsstring_operation::evaluate)
90 (objc_selector_operation::evaluate): Update.
91 * ada-lang.c (ada_assign_operation::evaluate)
92 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
93 (ada_atr_size): Update.
95 2021-03-08 Tom Tromey <tom@tromey.com>
97 * eval.c: Merge "namespace" scopes.
99 2021-03-08 Tom Tromey <tom@tromey.com>
101 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
103 * parse.c (expr_builder::expr_builder, expr_builder::release):
106 2021-03-08 Tom Tromey <tom@tromey.com>
108 * parse.c (expression::expression, expression::~expression):
110 * expression.h (struct expression): Inline constructor. Remove
113 2021-03-08 Tom Tromey <tom@tromey.com>
115 * std-operator.def (BINOP_END): Remove.
116 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
117 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
118 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
119 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
120 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
123 2021-03-08 Tom Tromey <tom@tromey.com>
125 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
127 2021-03-08 Tom Tromey <tom@tromey.com>
129 * std-operator.def (OP_EXTENDED0): Remove.
131 2021-03-08 Tom Tromey <tom@tromey.com>
133 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
134 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
137 2021-03-08 Tom Tromey <tom@tromey.com>
139 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
140 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
142 2021-03-08 Tom Tromey <tom@tromey.com>
144 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
145 * ada-lang.c (ada_binop_minmax): Update.
146 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
147 Use BINOP_MIN and BINOP_MAX.
149 2021-03-08 Tom Tromey <tom@tromey.com>
151 * value.h (evaluate_subexp_with_coercion): Don't declare.
152 * parse.c (exp_descriptor_standard): Remove.
153 (expr_builder::expr_builder, expr_builder::release): Update.
154 (expression::expression): Remove size_t parameter.
155 (expression::~expression): Simplify.
156 (expression::resize): Remove.
157 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
158 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
159 (write_exp_elt_longcst, write_exp_elt_floatcst)
160 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
161 (write_exp_string_vector, write_exp_bitstring): Remove.
162 * p-lang.h (class pascal_language) <opcode_print_table,
163 op_print_tab>: Remove.
164 * p-lang.c (pascal_language::op_print_tab): Remove.
165 * opencl-lang.c (class opencl_language) <opcode_print_table>:
167 * objc-lang.c (objc_op_print_tab): Remove.
168 (class objc_language) <opcode_print_table>: Remove.
169 * m2-lang.h (class m2_language) <opcode_print_table,
170 op_print_tab>: Remove.
171 * m2-lang.c (m2_language::op_print_tab): Remove.
172 * language.h (struct language_defn) <post_parser, expression_ops,
173 opcode_print_table>: Remove.
174 * language.c (language_defn::expression_ops)
175 (auto_or_unknown_language::opcode_print_table): Remove.
176 * go-lang.h (class go_language) <opcode_print_table,
177 op_print_tab>: Remove.
178 * go-lang.c (go_language::op_print_tab): Remove.
179 * f-lang.h (class f_language) <opcode_print_table>: Remove
180 <op_print_tab>: Remove.
181 * f-lang.c (f_language::op_print_tab): Remove.
182 * expression.h (union exp_element): Remove.
183 (struct expression): Remove size_t parameter from constructor.
185 <first_opcode>: Update.
186 <nelts, elts>: Remove.
187 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
188 (evaluate_subexp_standard, print_expression, op_string)
189 (dump_raw_expression): Don't declare.
190 * expprint.c (print_expression, print_subexp)
191 (print_subexp_funcall, print_subexp_standard, op_string)
192 (dump_raw_expression, dump_subexp, dump_subexp_body)
193 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
194 (dump_prefix_expression): Update.
195 * eval.c (evaluate_subexp): Remove.
196 (evaluate_expression, evaluate_type): Update.
197 (evaluate_subexpression_type): Remove.
198 (fetch_subexp_value): Remove "pc" parameter. Update.
199 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
200 (evaluate_subexp_standard, evaluate_subexp_for_address)
201 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
202 (evaluate_subexp_for_cast): Remove.
203 (parse_and_eval_type): Update.
204 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
205 * d-lang.c (d_op_print_tab): Remove.
206 (class d_language) <opcode_print_table>: Remove.
207 * c-lang.h (c_op_print_tab): Don't declare.
208 * c-lang.c (c_op_print_tab): Remove.
209 (class c_language, class cplus_language, class asm_language, class
210 minimal_language) <opcode_print_table>: Remove.
211 * breakpoint.c (update_watchpoint, watchpoint_check)
212 (watchpoint_exp_is_const, watch_command_1): Update.
213 * ax-gdb.h (union exp_element): Don't declare.
214 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
215 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
216 (gen_expr_binop_rest): Remove.
217 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
218 * ada-lang.c (ada_op_print_tab): Remove.
219 (class ada_language) <post_parser, opcode_print_table>: Remove.
221 2021-03-08 Tom Tromey <tom@tromey.com>
223 * go-lang.c (go_language::expression_ops): Don't declare.
224 * go-lang.h (class go_language) <expression_ops>: Remove.
225 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
227 (class opencl_language) <expression_ops>: Remove.
228 * d-lang.c (class d_language) <expression_ops>: Remove.
229 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
230 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
231 (class c_language, class cplus_language, class asm_language)
232 (class minimal_language) <expression_ops>: Remove.
234 2021-03-08 Tom Tromey <tom@tromey.com>
236 * ada-lang.c (resolve_subexp, replace_operator_with_call)
237 (evaluate_subexp_type, assign_aggregate)
238 (aggregate_assign_positional, aggregate_assign_from_choices)
239 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
240 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
241 (ada_operator_check, ada_forward_operator_length)
242 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
244 (post_parser): Update.
245 (class ada_language) <expresssion_ops>: Remove.
247 2021-03-08 Tom Tromey <tom@tromey.com>
249 * m2-lang.h (class m2_language) <expresssion_ops,
250 exp_descriptor_modula2>: Remove.
251 * m2-lang.c (evaluate_subexp_modula2)
252 (m2_language::exp_descriptor_modula2): Remove.
254 2021-03-08 Tom Tromey <tom@tromey.com>
256 * f-lang.h (class f_language) <expresssion_ops>: Remove.
257 <exp_descriptor_tab>: Remove.
258 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
259 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
260 (print_subexp_f, dump_subexp_body_f, operator_check_f)
261 (f_language::exp_descriptor_tab, fortran_prepare_argument):
264 2021-03-08 Tom Tromey <tom@tromey.com>
266 * rust-lang.h (class rust_language) <expression_ops,
267 exp_descriptor_tab>: Remove.
268 * rust-lang.c (rust_evaluate_funcall): Remove.
269 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
271 (rust_evaluate_subexp): Remove.
272 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
273 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
274 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
276 2021-03-08 Tom Tromey <tom@tromey.com>
278 * ada-exp.y: Create operations.
279 (empty_stoken): Remove.
280 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
281 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
282 (components): New global.
283 (push_component, choice_component, pop_component, pop_components):
285 (associations): New global
286 (push_association, pop_association, pop_associations): New
289 (write_var_from_sym, write_int): Create operations.
290 (write_exp_op_with_string): Remove.
291 (write_object_renaming, write_selectors, write_ambiguous_var)
292 (write_var_or_type, write_name_assoc): Create operations.
293 * ada-lang.h (ada_index_type): Declare.
294 * ada-lang.c (ada_index_type): No longer static.
296 2021-03-08 Tom Tromey <tom@tromey.com>
298 * f-exp.y: Create operations.
299 (f_language::parser): Update.
301 2021-03-08 Tom Tromey <tom@tromey.com>
303 * m2-exp.y: Create operations.
304 (m2_language::parser): Update.
306 2021-03-08 Tom Tromey <tom@tromey.com>
308 * p-exp.y: Create operations.
309 (pascal_language::parser): Update.
311 2021-03-08 Tom Tromey <tom@tromey.com>
313 * d-exp.y: Create operations.
316 2021-03-08 Tom Tromey <tom@tromey.com>
318 * go-exp.y: Create operations.
319 (go_language::parser): Update.
321 2021-03-08 Tom Tromey <tom@tromey.com>
323 * objc-lang.c (end_msglist): Create operations.
324 * c-exp.y: Change parser to create operations.
325 (write_destructor_name): Remove.
328 2021-03-08 Tom Tromey <tom@tromey.com>
330 * rust-exp.y: Create operations.
331 (rust_parser::convert_params_to_expression): Change return type.
332 (binop_maker_ftype): New typedef.
333 (maker_map): New global.
334 (rust_parser::convert_ast_to_expression): Change return type.
335 (rust_language::parser): Update.
336 (_initialize_rust_exp): Initialize maker_map.
338 2021-03-08 Tom Tromey <tom@tromey.com>
340 * stap-probe.c (binop_maker_ftype): New typedef.
341 (stap_maker_map): New global.
342 (stap_make_binop): New function.
343 (stap_parse_register_operand): Return operation_up.
344 (stap_parse_single_operand, stap_parse_argument_conditionally)
345 (stap_parse_argument_1): Likewise.
346 (stap_parse_argument): Create operations.
347 (stap_probe::parse_arguments): Update.
348 (_initialize_stap_probe): Initialize stap_maker_map.
349 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
351 * i386-tdep.h (i386_stap_parse_special_token): Change return
353 * i386-tdep.c (i386_stap_parse_special_token_triplet)
354 (i386_stap_parse_special_token_three_arg_disp)
355 (i386_stap_parse_special_token): Change return type.
356 * gdbarch.sh (stap_parse_special_token): Change return type.
357 * gdbarch.c: Rebuild.
358 * gdbarch.h: Rebuild.
359 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
361 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
364 2021-03-08 Tom Tromey <tom@tromey.com>
366 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
367 * gdbarch.h: Rebuild.
368 * gdbarch.c: Rebuild.
369 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
370 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
372 (amd64_dtrace_parse_probe_argument): Update.
374 2021-03-08 Tom Tromey <tom@tromey.com>
376 * parser-defs.h (struct parser_state) <push, push_new,
377 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
379 <m_operations>: New member.
380 * parse.c (parser_state::push_c_string)
381 (parser_state::push_symbol, parser_state::push_dollar): New
384 2021-03-08 Tom Tromey <tom@tromey.com>
386 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
388 (struct parser_state) <mark_struct_expression>: New method.
389 * parse.c (parser_state::mark_struct_expression): Update assert.
390 (parser_state::mark_struct_expression): New method.
391 (parser_state::mark_completion_tag): Update assert.
392 (parse_expression_for_completion): Handle expout_last_op.
394 2021-03-08 Tom Tromey <tom@tromey.com>
396 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
398 * value.h (fetch_subexp_value): Add "op" parameter.
399 * value.c (init_if_undefined_command): Update.
400 * tracepoint.c (validate_actionline, encode_actions_1): Update.
401 * stap-probe.c (stap_probe::compile_to_ax): Update.
402 * printcmd.c (set_command): Update.
403 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
405 * parser-defs.h (struct expr_builder) <set_operation>: New
407 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
408 * expression.h (struct expression) <first_opcode>: Update.
410 * expprint.c (dump_raw_expression, dump_prefix_expression):
412 * expop.h (class var_value_operation) <get_symbol>: New method.
413 (class register_operation) <get_name>: New method.
414 (class equal_operation): No longer a typedef, now a subclass.
415 (class unop_memval_operation) <get_type>: New method.
416 (class assign_operation) <get_lhs>: New method.
417 (class unop_cast_operation) <get_type>: New method.
418 * eval.c (evaluate_expression, evaluate_type)
419 (evaluate_subexpression_type): Update.
420 (fetch_subexp_value): Add "op" parameter.
421 (parse_and_eval_type): Update.
422 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
423 * breakpoint.c (update_watchpoint, watchpoint_check)
424 (watchpoint_exp_is_const, watch_command_1): Update.
425 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
428 2021-03-08 Tom Tromey <tom@tromey.com>
430 * ada-lang.c (ada_value_binop): Do not use op_string.
432 2021-03-08 Tom Tromey <tom@tromey.com>
434 * expprint.c (dump_for_expression): New overload.
435 * expop.h (check_objfile, dump_for_expression): Declare new
437 * ada-lang.c (check_objfile): New overload.
438 (assign_component, ada_aggregate_component::uses_objfile)
439 (ada_aggregate_component::dump, ada_aggregate_component::assign)
440 (ada_aggregate_component::assign_aggregate)
441 (ada_positional_component::uses_objfile)
442 (ada_positional_component::dump, ada_positional_component::assign)
443 (ada_discrete_range_association::uses_objfile)
444 (ada_discrete_range_association::dump)
445 (ada_discrete_range_association::assign)
446 (ada_name_association::uses_objfile, ada_name_association::dump)
447 (ada_name_association::assign)
448 (ada_choices_component::uses_objfile, ada_choices_component::dump)
449 (ada_choices_component::assign)
450 (ada_others_component::uses_objfile, ada_others_component::dump)
451 (ada_others_component::assign, ada_assign_operation::evaluate):
453 * ada-exp.h (ada_string_operation) <get_name>: New method.
454 (class ada_assign_operation): New.
455 (class ada_component): New.
456 (ada_component_up): New typedef.
457 (class ada_aggregate_operation, class ada_aggregate_component)
458 (class ada_positional_component, class ada_others_component)
459 (class ada_association): New.
460 (ada_association_up): New typedef.
461 (class ada_choices_component)
462 (class ada_discrete_range_association)
463 (class ada_name_association): New.
465 2021-03-08 Tom Tromey <tom@tromey.com>
467 * ada-lang.c (ada_var_value_operation::resolve)
468 (ada_funcall_operation::resolve)
469 (ada_ternop_slice_operation::resolve): New methods.
470 * ada-exp.h (struct ada_resolvable): New.
471 (class ada_var_value_operation): Derive from ada_resolvable.
472 <get_block, resolve>: New methods.
473 (class ada_funcall_operation): Derive from ada_resolvable.
474 <resolve>: New method.
475 (class ada_ternop_slice_operation): Derive from ada_resolvable.
476 <resolve>: New method.
478 2021-03-08 Tom Tromey <tom@tromey.com>
480 * ada-lang.c (ada_funcall_operation::evaluate): New method.
481 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
483 (class ada_funcall_operation): New.
485 2021-03-08 Tom Tromey <tom@tromey.com>
487 * ada-lang.c (ada_structop_operation::evaluate): New method.
488 * ada-exp.h (class ada_structop_operation): New.
490 2021-03-08 Tom Tromey <tom@tromey.com>
492 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
493 * ada-exp.h (class ada_unop_ind_operation): New.
495 2021-03-08 Tom Tromey <tom@tromey.com>
497 * ada-lang.c (ada_binop_exp): No longer static.
498 * ada-exp.h (ada_binop_exp_operation): New typedef.
500 2021-03-08 Tom Tromey <tom@tromey.com>
502 * ada-lang.c (ada_val_atr): No longer static.
503 (ada_atr_val_operation::evaluate): New method.
504 * ada-exp.h (class ada_atr_val_operation): New.
506 2021-03-08 Tom Tromey <tom@tromey.com>
508 * ada-lang.c (ada_pos_atr): No longer static.
509 * ada-exp.h (ada_pos_operation): New typedef.
511 2021-03-08 Tom Tromey <tom@tromey.com>
513 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
515 (ada_evaluate_subexp): Use it.
517 2021-03-08 Tom Tromey <tom@tromey.com>
519 * ada-lang.c (ada_binop_minmax): No longer static.
520 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
523 2021-03-08 Tom Tromey <tom@tromey.com>
525 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
527 * ada-exp.h (class ada_var_msym_value_operation): New.
529 2021-03-08 Tom Tromey <tom@tromey.com>
531 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
532 (ada_var_value_operation::evaluate): New methods.
533 * ada-exp.h (class ada_var_value_operation): New.
535 2021-03-08 Tom Tromey <tom@tromey.com>
537 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
538 * ada-exp.h (class ada_unop_atr_operation): New.
540 2021-03-08 Tom Tromey <tom@tromey.com>
542 * ada-lang.c (ada_binop_in_bounds): No longer static.
543 * ada-exp.h (class ada_binop_in_bounds_operation): New.
545 2021-03-08 Tom Tromey <tom@tromey.com>
547 * ada-lang.c (ada_ternop_slice): No longer static.
548 * ada-exp.h (class ada_ternop_slice_operation): New.
550 2021-03-08 Tom Tromey <tom@tromey.com>
552 * ada-exp.h (ada_bitwise_operation): New template class.
553 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
554 (ada_bitwise_xor_operation): New typedefs.
556 2021-03-08 Tom Tromey <tom@tromey.com>
558 * ada-lang.c (ada_equal_binop): No longer static.
559 * ada-exp.h (class ada_binop_equal_operation): New.
561 2021-03-08 Tom Tromey <tom@tromey.com>
563 * ada-lang.c (ada_mult_binop): No longer static.
564 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
565 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
567 2021-03-08 Tom Tromey <tom@tromey.com>
569 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
570 * ada-exp.h (class ada_binop_addsub_operation): New.
572 2021-03-08 Tom Tromey <tom@tromey.com>
574 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
575 (ada_resolve_variable): Declare.
576 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
577 (ada_resolve_variable): New functions.
578 (resolve_subexp): Update.
580 2021-03-08 Tom Tromey <tom@tromey.com>
582 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
584 * c-exp.h (class opencl_ternop_cond_operation): New.
586 2021-03-08 Tom Tromey <tom@tromey.com>
588 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
590 * c-exp.h (class opencl_logical_binop_operation): New.
592 2021-03-08 Tom Tromey <tom@tromey.com>
594 * opencl-lang.c (opencl_structop_operation::evaluate): New
596 * c-exp.h (class opencl_structop_operation): New.
598 2021-03-08 Tom Tromey <tom@tromey.com>
600 * opencl-lang.c (opencl_logical_not): No longer static. Change
602 (evaluate_subexp_opencl): Update.
603 * c-exp.h (opencl_notequal_operation): New typedef.
605 2021-03-08 Tom Tromey <tom@tromey.com>
607 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
608 static. Change parameters.
609 (eval_opencl_assign): No longer static. Add "op" parameter.
610 (evaluate_subexp_opencl): Update.
611 * c-exp.h (opencl_binop_operation): New template class.
612 (opencl_assign_operation, opencl_equal_operation)
613 (opencl_notequal_operation, opencl_less_operation)
614 (opencl_gtr_operation, opencl_geq_operation)
615 (opencl_leq_operation): New typedefs.
617 2021-03-08 Tom Tromey <tom@tromey.com>
619 * opencl-lang.c (opencl_value_cast): No longer static.
620 * c-exp.h (opencl_cast_type_operation): New typedef.
622 2021-03-08 Tom Tromey <tom@tromey.com>
624 * f-exp.h (eval_op_f_allocated): Declare.
625 (fortran_allocated_operation): New typedef.
626 * f-lang.c (eval_op_f_allocated): No longer static.
628 2021-03-08 Tom Tromey <tom@tromey.com>
630 * f-lang.c (eval_op_f_associated): New functions.
631 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
634 2021-03-08 Tom Tromey <tom@tromey.com>
636 * f-lang.c (fortran_bound_1arg::evaluate)
637 (fortran_bound_2arg::evaluate): New methods.
638 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
641 2021-03-08 Tom Tromey <tom@tromey.com>
643 * expop.h (class unop_addr_operation) <get_expression>: New
645 * f-lang.c (fortran_undetermined::value_subarray)
646 (fortran_undetermined::evaluate): New methods.
647 (fortran_prepare_argument): New overload.
648 * f-exp.h (class fortran_range_operation)
649 (class fortran_undetermined): New classes.
651 2021-03-08 Tom Tromey <tom@tromey.com>
653 * rust-lang.c (rust_structop::evaluate_funcall): New method.
654 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
657 2021-03-08 Tom Tromey <tom@tromey.com>
659 * expression.h (class operation) <evaluate_funcall>: New methods.
660 * expop.h (class scope_operation) <evaluate_funcall>: New method.
661 (class var_value_operation) <evaluate_funcall>: New method.
662 (class structop_base_operation) <evaluate_funcall>: New method.
663 (class var_msym_value_operation) <evaluate_funcall>: New method.
664 (class structop_member_base): New class.
665 (class structop_member_operation): Derive from
666 structop_member_base.
667 (class structop_mptr_operation): Derive from
668 structop_member_base.
669 (class funcall_operation): New class.
670 * eval.c (operation::evaluate_funcall)
671 (var_value_operation::evaluate_funcall)
672 (scope_operation::evaluate_funcall)
673 (structop_member_base::evaluate_funcall)
674 (structop_base_operation::evaluate_funcall): New methods.
676 2021-03-08 Tom Tromey <tom@tromey.com>
678 * expop.h (class array_operation): New.
679 * eval.c (array_operation::evaluate_struct_tuple)
680 (array_operation::evaluate): New methods.
682 2021-03-08 Tom Tromey <tom@tromey.com>
684 * expop.h (class adl_func_operation): New.
685 * eval.c (adl_func_operation::evaluate): New method.
687 2021-03-08 Tom Tromey <tom@tromey.com>
689 * ada-lang.c (ada_unop_in_range): No longer static.
690 * ada-exp.h (class ada_unop_range_operation): New.
692 2021-03-08 Tom Tromey <tom@tromey.com>
694 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
696 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
697 (ada_atr_size_operation, ada_abs_operation): New typedefs.
699 2021-03-08 Tom Tromey <tom@tromey.com>
701 * expop.h (class logical_and_operation)
702 (class logical_or_operation): New.
703 * eval.c (logical_and_operation::evaluate)
704 (logical_or_operation::evaluate): New methods.
705 * ax-gdb.c (logical_and_operation::do_generate_ax)
706 (logical_or_operation::do_generate_ax): New methods.
708 2021-03-08 Tom Tromey <tom@tromey.com>
710 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
712 * m2-exp.h: New file.
714 2021-03-08 Tom Tromey <tom@tromey.com>
716 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
717 * rust-exp.h (class rust_aggregate_operation): New.
719 2021-03-08 Tom Tromey <tom@tromey.com>
721 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
723 * rust-exp.h (class rust_struct_anon): New.
724 (class rust_structop): New.
726 2021-03-08 Tom Tromey <tom@tromey.com>
728 * rust-lang.c (rust_range): No longer static.
729 * rust-exp.h (class rust_range_operation): New.
731 2021-03-08 Tom Tromey <tom@tromey.com>
733 * rust-lang.c (rust_subscript): No longer static.
734 * rust-exp.h (class rust_subscript_operation): New.
736 2021-03-08 Tom Tromey <tom@tromey.com>
738 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
740 (rust_evaluate_subexp): Update.
741 * rust-exp.h (class rust_unop_ind_operation): New.
743 2021-03-08 Tom Tromey <tom@tromey.com>
745 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
746 longer static. Add "opcode" parameter.
747 (rust_evaluate_subexp): Update.
748 * rust-exp.h: New file.
750 2021-03-08 Tom Tromey <tom@tromey.com>
752 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
753 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
754 (eval_op_f_kind): No longer static. Add "opcode" parameter.
755 (evaluate_subexp_f): Update.
758 2021-03-08 Tom Tromey <tom@tromey.com>
760 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
761 * ada-exp.h (class ada_ternop_range_operation): New.
763 2021-03-08 Tom Tromey <tom@tromey.com>
765 * ada-lang.c (ada_qual_operation::evaluate): New method.
766 * ada-exp.h (class ada_qual_operation): New.
768 2021-03-08 Tom Tromey <tom@tromey.com>
770 * ada-lang.c (ada_string_operation::evaluate): New method.
771 * ada-exp.h (class ada_string_operation): New.
773 2021-03-08 Tom Tromey <tom@tromey.com>
775 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
776 * ada-exp.h: New file.
778 2021-03-08 Tom Tromey <tom@tromey.com>
780 * expop.h (class multi_subscript_operation): New.
781 * eval.c (multi_subscript_operation::evaluate): New method.
783 2021-03-08 Tom Tromey <tom@tromey.com>
785 * eval.c (objc_msgcall_operation::evaluate): New method.
786 * c-exp.h (class objc_msgcall_operation): New.
788 2021-03-08 Tom Tromey <tom@tromey.com>
790 * expop.h (class var_value_operation): New.
791 * eval.c (var_value_operation::evaluate)
792 (var_value_operation::evaluate_for_address)
793 (var_value_operation::evaluate_with_coercion)
794 (var_value_operation::evaluate_for_sizeof)
795 (var_value_operation::evaluate_for_cast): New methods.
796 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
798 2021-03-08 Tom Tromey <tom@tromey.com>
800 * expop.h (cxx_cast_ftype): New typedef.
801 (cxx_cast_operation): New template.
802 (dynamic_cast_operation, reinterpret_cast_operation): New
805 2021-03-08 Tom Tromey <tom@tromey.com>
807 * expop.h (class unop_cast_type_operation): New.
808 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
811 2021-03-08 Tom Tromey <tom@tromey.com>
813 * expop.h (class unop_cast_operation): New.
814 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
816 2021-03-08 Tom Tromey <tom@tromey.com>
818 * expop.h (class assign_modify_operation): New.
819 * eval.c (eval_binop_assign_modify): No longer static.
820 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
822 2021-03-08 Tom Tromey <tom@tromey.com>
824 * expop.h (class assign_operation): New.
825 * ax-gdb.c (assign_operation::do_generate_ax): New method.
827 2021-03-08 Tom Tromey <tom@tromey.com>
829 * expop.h (class type_instance_operation): New.
830 * eval.c (type_instance_operation::evaluate): New method.
832 2021-03-08 Tom Tromey <tom@tromey.com>
834 * expop.h (class op_this_operation): New.
835 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
837 2021-03-08 Tom Tromey <tom@tromey.com>
839 * expop.h (class unop_memval_operation)
840 (class unop_memval_type_operation): New.
841 * eval.c (eval_op_memval): No longer static.
842 (unop_memval_operation::evaluate_for_address)
843 (unop_memval_type_operation::evaluate_for_address)
844 (unop_memval_operation::evaluate_for_sizeof)
845 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
846 * ax-gdb.c (unop_memval_operation::do_generate_ax)
847 (unop_memval_type_operation::do_generate_ax): New methods.
849 2021-03-08 Tom Tromey <tom@tromey.com>
851 * expop.h (class unop_alignof_operation): New.
852 * eval.c (eval_op_alignof): No longer static.
854 2021-03-08 Tom Tromey <tom@tromey.com>
856 * expop.h (class unop_sizeof_operation): New.
857 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
859 2021-03-08 Tom Tromey <tom@tromey.com>
861 * expop.h (class unop_addr_operation): New.
862 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
864 2021-03-08 Tom Tromey <tom@tromey.com>
866 * expop.h (class typeid_operation): New.
868 2021-03-08 Tom Tromey <tom@tromey.com>
870 * expop.h (class decltype_operation): New.
872 2021-03-08 Tom Tromey <tom@tromey.com>
874 * expop.h (class typeof_operation): New.
876 2021-03-08 Tom Tromey <tom@tromey.com>
878 * expop.h (class type_operation): New.
879 * eval.c (eval_op_type): No longer static.
881 2021-03-08 Tom Tromey <tom@tromey.com>
883 * expop.h (class unop_ind_base_operation)
884 (class unop_ind_operation): New.
885 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
886 (unop_ind_base_operation::evaluate_for_address)
887 (unop_ind_base_operation::evaluate_for_sizeof): New method.
888 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
890 2021-03-08 Tom Tromey <tom@tromey.com>
892 * expop.h (unop_incr_operation): New template.
893 (preinc_operation, predec_operation, postinc_operation)
894 (postdec_operation): New typedefs.
895 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
896 (eval_op_postdec): No longer static.
898 2021-03-08 Tom Tromey <tom@tromey.com>
900 * expop.h (unary_ftype): New typedef.
901 (unop_operation, usual_ax_binop_operation): New templates.
902 (unary_plus_operation, unary_neg_operation)
903 (unary_complement_operation, unary_logical_not_operation): New
905 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
906 (eval_op_lognot): No longer static.
907 * ax-gdb.c (gen_expr_unop): New function.
909 2021-03-08 Tom Tromey <tom@tromey.com>
911 * ax-gdb.c (comma_operation::do_generate_ax): New method.
913 2021-03-08 Tom Tromey <tom@tromey.com>
915 * expop.h (class repeat_operation): New.
916 * eval.c (eval_op_repeat): No longer static. Remove "op"
918 (evaluate_subexp_standard): Update.
919 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
921 2021-03-08 Tom Tromey <tom@tromey.com>
923 * expop.h (class comparison_operation): New.
924 (equal_operation, notequal_operation, less_operation)
925 (gtr_operation, geq_operation, leq_operation): New typedefs.
926 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
927 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
929 2021-03-08 Tom Tromey <tom@tromey.com>
931 * expop.h (class subscript_operation): New.
932 * eval.c (eval_op_subscript): No longer static.
934 2021-03-08 Tom Tromey <tom@tromey.com>
936 * expop.h (class binop_operation, class usual_ax_binop_operation):
938 (exp_operation, intdiv_operation, mod_operation, mul_operation)
939 (div_operation, rem_operation, lsh_operation, rsh_operation)
940 (bitwise_and_operation, bitwise_ior_operation)
941 (bitwise_xor_operation): New typedefs.
942 * eval.c (eval_op_binary): No longer static.
944 2021-03-08 Tom Tromey <tom@tromey.com>
946 * expop.h (class sub_operation): New.
947 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
948 (evaluate_subexp_standard): Update.
950 2021-03-08 Tom Tromey <tom@tromey.com>
952 * expop.h (class add_operation): New.
953 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
954 (evaluate_subexp_standard): Update.
956 2021-03-08 Tom Tromey <tom@tromey.com>
958 * expop.h (class concat_operation): New.
959 * eval.c (eval_op_concat): No longer static. Remove "op"
961 (evaluate_subexp_standard): Update.
963 2021-03-08 Tom Tromey <tom@tromey.com>
965 * expop.h (class structop_member_operation)
966 (class structop_mptr_operation): New.
967 * eval.c (eval_op_member): No longer static.
969 2021-03-08 Tom Tromey <tom@tromey.com>
971 * expop.h (class structop_ptr_operation): New.
972 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
975 2021-03-08 Tom Tromey <tom@tromey.com>
977 * expop.h (class structop_base_operation)
978 (class structop_operation): New.
979 * eval.c (eval_op_structop_struct): No longer static.
981 2021-03-08 Tom Tromey <tom@tromey.com>
983 * expop.h (class complex_operation): New.
985 2021-03-08 Tom Tromey <tom@tromey.com>
987 * eval.c (eval_op_objc_selector): No longer static.
988 * c-exp.h (class objc_selector_operation): New.
990 2021-03-08 Tom Tromey <tom@tromey.com>
992 * eval.c: Include c-exp.h.
993 * c-exp.h (class objc_nsstring_operation): New.
995 2021-03-08 Tom Tromey <tom@tromey.com>
997 * c-lang.c (c_string_operation::evaluate): New method.
1000 2021-03-08 Tom Tromey <tom@tromey.com>
1002 * expop.h (class ternop_cond_operation): New.
1003 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1005 2021-03-08 Tom Tromey <tom@tromey.com>
1007 * expop.h (class ternop_slice_operation): New.
1008 * eval.c (eval_op_ternop): No longer static.
1010 2021-03-08 Tom Tromey <tom@tromey.com>
1012 * expop.h (class string_operation): New.
1013 * eval.c (eval_op_string): No longer static.
1015 2021-03-08 Tom Tromey <tom@tromey.com>
1017 * expop.h (class internalvar_operation): New.
1018 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1020 2021-03-08 Tom Tromey <tom@tromey.com>
1022 * expop.h (class bool_operation): New.
1024 2021-03-08 Tom Tromey <tom@tromey.com>
1026 * expop.h (class register_operation): New.
1027 * eval.c (eval_op_register): No longer static.
1028 * ax-gdb.c (register_operation::do_generate_ax): New method.
1030 2021-03-08 Tom Tromey <tom@tromey.com>
1032 * expop.h (class last_operation): New.
1034 2021-03-08 Tom Tromey <tom@tromey.com>
1036 * expop.h (class func_static_var_operation): New.
1037 * eval.c (eval_op_func_static_var): No longer static.
1039 2021-03-08 Tom Tromey <tom@tromey.com>
1041 * expop.h (class var_entry_value_operation): New.
1042 * eval.c (eval_op_var_entry_value): No longer static.
1044 2021-03-08 Tom Tromey <tom@tromey.com>
1046 * expression.h (class operation) <set_outermost>: New method.
1047 * expop.h (class var_msym_value_operation): New.
1048 * eval.c (eval_op_var_msym_value): No longer static.
1049 (var_msym_value_operation::evaluate_for_address)
1050 (var_msym_value_operation::evaluate_for_sizeof)
1051 (var_msym_value_operation::evaluate_for_cast): New methods.
1052 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1055 2021-03-08 Tom Tromey <tom@tromey.com>
1057 * expop.h (class long_const_operation): New.
1058 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1060 2021-03-08 Tom Tromey <tom@tromey.com>
1062 * expop.h (class scope_operation): New.
1063 * eval.c (eval_op_scope): No longer static.
1064 (scope_operation::evaluate_for_address): New method.
1065 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1067 2021-03-08 Tom Tromey <tom@tromey.com>
1069 * expprint.c (float_const_operation::dump): New method.
1070 * expop.h (float_data): New typedef.
1071 (class float_const_operation): New.
1073 2021-03-08 Tom Tromey <tom@tromey.com>
1075 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1076 * ax-gdb.c (gen_expr_binop): New function.
1077 (gen_expr_structop): Likewise.
1079 2021-03-08 Tom Tromey <tom@tromey.com>
1081 * expprint.c (expr::dump_for_expression): New functions.
1082 * expop.h (dump_for_expression): New overloads.
1083 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1086 2021-03-08 Tom Tromey <tom@tromey.com>
1088 * expression.h (expr::operation): New class.
1089 (expr::make_operation): New function.
1090 (expr::operation_up): New typedef.
1091 * expop.h: New file.
1092 * eval.c (operation::evaluate_for_cast)
1093 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1095 * ax-gdb.c (operation::generate_ax): New method.
1097 2021-03-08 Tom Tromey <tom@tromey.com>
1099 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1100 (gen_expr_binop_rest): New overload.
1102 2021-03-08 Tom Tromey <tom@tromey.com>
1104 * eval.c (eval_multi_subscript): New function.
1105 (evaluate_subexp_standard): Use it.
1107 2021-03-08 Tom Tromey <tom@tromey.com>
1109 * ada-lang.c (ada_binop_exp): New function.
1110 (ada_evaluate_subexp): Use it.
1112 2021-03-08 Tom Tromey <tom@tromey.com>
1114 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1116 (ada_evaluate_subexp): Use it.
1118 2021-03-08 Tom Tromey <tom@tromey.com>
1120 * ada-lang.c (ada_binop_minmax): New function.
1121 (ada_evaluate_subexp): Use it.
1123 2021-03-08 Tom Tromey <tom@tromey.com>
1125 * ada-lang.c (ada_unop_atr): New function.
1126 (ada_evaluate_subexp): Use it.
1128 2021-03-08 Tom Tromey <tom@tromey.com>
1130 * ada-lang.c (ada_binop_in_bounds): New function.
1131 (ada_evaluate_subexp): Use it.
1133 2021-03-08 Tom Tromey <tom@tromey.com>
1135 * ada-lang.c (ada_ternop_slice): New function.
1136 (ada_evaluate_subexp): Use it.
1138 2021-03-08 Tom Tromey <tom@tromey.com>
1140 * ada-lang.c (ada_equal_binop): New function.
1141 (ada_evaluate_subexp): Use it.
1143 2021-03-08 Tom Tromey <tom@tromey.com>
1145 * ada-lang.c (ada_mult_binop): New function.
1146 (ada_evaluate_subexp): Use it.
1148 2021-03-08 Tom Tromey <tom@tromey.com>
1150 * ada-lang.c (ada_abs): New function.
1151 (ada_evaluate_subexp): Use it.
1153 2021-03-08 Tom Tromey <tom@tromey.com>
1155 * ada-lang.c (ada_atr_size): New function.
1156 (ada_evaluate_subexp): Use it.
1158 2021-03-08 Tom Tromey <tom@tromey.com>
1160 * ada-lang.c (ada_atr_tag): New function.
1161 (ada_evaluate_subexp): Use it.
1163 2021-03-08 Tom Tromey <tom@tromey.com>
1165 * ada-lang.c (ada_unop_in_range): New function.
1166 (ada_evaluate_subexp): Use it.
1168 2021-03-08 Tom Tromey <tom@tromey.com>
1170 * ada-lang.c (ada_unop_neg): New function.
1171 (ada_evaluate_subexp): Use it.
1173 2021-03-08 Tom Tromey <tom@tromey.com>
1175 * ada-lang.c (eval_ternop_in_range): New function.
1176 (ada_evaluate_subexp): Use it.
1178 2021-03-08 Tom Tromey <tom@tromey.com>
1180 * opencl-lang.c (eval_opencl_assign): New function.
1181 (evaluate_subexp_opencl): Use it.
1183 2021-03-08 Tom Tromey <tom@tromey.com>
1185 * eval.c (eval_op_objc_msgcall): New function.
1186 (evaluate_subexp_standard): Use it.
1188 2021-03-08 Tom Tromey <tom@tromey.com>
1190 * eval.c (eval_binop_assign_modify): New function.
1191 (evaluate_subexp_standard): Use it.
1193 2021-03-08 Tom Tromey <tom@tromey.com>
1195 * m2-lang.c (eval_op_m2_subscript): New function.
1196 (evaluate_subexp_modula2): Use it.
1198 2021-03-08 Tom Tromey <tom@tromey.com>
1200 * m2-lang.c (eval_op_m2_high): New function.
1201 (evaluate_subexp_modula2): Use it.
1203 2021-03-08 Tom Tromey <tom@tromey.com>
1205 * eval.c (evaluate_subexp_for_address_base): New function.
1206 (evaluate_subexp_for_address): Use it.
1207 (evaluate_subexp_for_sizeof_base): New function.
1208 (evaluate_subexp_for_sizeof): Use it.
1210 2021-03-08 Tom Tromey <tom@tromey.com>
1212 * rust-lang.c (eval_op_rust_structop): New function.
1213 (rust_evaluate_subexp): Use it.
1215 2021-03-08 Tom Tromey <tom@tromey.com>
1217 * rust-lang.c (eval_op_rust_struct_anon): New function.
1218 (rust_evaluate_subexp): Use it.
1220 2021-03-08 Tom Tromey <tom@tromey.com>
1222 * rust-lang.c (eval_op_rust_array): New function.
1223 (rust_evaluate_subexp): Use it.
1225 2021-03-08 Tom Tromey <tom@tromey.com>
1227 * rust-lang.c (eval_op_rust_complement): New function.
1228 (rust_evaluate_subexp): Use it.
1230 2021-03-08 Tom Tromey <tom@tromey.com>
1232 * rust-lang.c (eval_op_rust_ind): New function.
1233 (rust_evaluate_subexp): Use it.
1235 2021-03-08 Tom Tromey <tom@tromey.com>
1237 * rust-lang.c (rust_subscript): Change parameters.
1238 (rust_evaluate_subexp): Update.
1240 2021-03-08 Tom Tromey <tom@tromey.com>
1242 * rust-lang.c (rust_range): Change parameters.
1243 (rust_evaluate_subexp): Update.
1245 2021-03-08 Tom Tromey <tom@tromey.com>
1247 * f-lang.c (eval_op_f_allocated): New function.
1248 (evaluate_subexp_f): Use it.
1250 2021-03-08 Tom Tromey <tom@tromey.com>
1252 * f-lang.c (fortran_require_array): New function.
1253 (evaluate_subexp_f): Use it.
1255 2021-03-08 Tom Tromey <tom@tromey.com>
1257 * f-lang.c (eval_op_f_kind): New function.
1258 (evaluate_subexp_f): Use it.
1260 2021-03-08 Tom Tromey <tom@tromey.com>
1262 * f-lang.c (eval_op_f_cmplx): New function.
1263 (evaluate_subexp_f): Use it.
1265 2021-03-08 Tom Tromey <tom@tromey.com>
1267 * f-lang.c (eval_op_f_modulo): New function.
1268 (evaluate_subexp_f): Use it.
1270 2021-03-08 Tom Tromey <tom@tromey.com>
1272 * f-lang.c (eval_op_f_floor): New function.
1273 (evaluate_subexp_f): Use it.
1275 2021-03-08 Tom Tromey <tom@tromey.com>
1277 * f-lang.c (eval_op_f_ceil): New function.
1278 (evaluate_subexp_f): Use it.
1280 2021-03-08 Tom Tromey <tom@tromey.com>
1282 * f-lang.c (eval_op_f_mod): New function.
1283 (evaluate_subexp_f): Use it.
1285 2021-03-08 Tom Tromey <tom@tromey.com>
1287 * f-lang.c (eval_op_f_abs): New function.
1288 (evaluate_subexp_f): Use it.
1290 2021-03-08 Tom Tromey <tom@tromey.com>
1292 * eval.c (eval_op_type): New function.
1293 (evaluate_subexp_standard): Use it.
1295 2021-03-08 Tom Tromey <tom@tromey.com>
1297 * eval.c (eval_op_postdec): New function.
1298 (evaluate_subexp_standard): Use it.
1300 2021-03-08 Tom Tromey <tom@tromey.com>
1302 * eval.c (eval_op_postinc): New function.
1303 (evaluate_subexp_standard): Use it.
1305 2021-03-08 Tom Tromey <tom@tromey.com>
1307 * eval.c (eval_op_predec): New file.
1308 (evaluate_subexp_standard): Use it.
1310 2021-03-08 Tom Tromey <tom@tromey.com>
1312 * eval.c (eval_op_preinc): New function.
1313 (evaluate_subexp_standard): Use it.
1315 2021-03-08 Tom Tromey <tom@tromey.com>
1317 * eval.c (eval_op_memval): New function.
1318 (evaluate_subexp_standard): Use it.
1320 2021-03-08 Tom Tromey <tom@tromey.com>
1322 * eval.c (eval_op_alignof): New function.
1323 (evaluate_subexp_standard): Use it.
1325 2021-03-08 Tom Tromey <tom@tromey.com>
1327 * eval.c (eval_op_ind): New function.
1328 (evaluate_subexp_standard): Use it.
1330 2021-03-08 Tom Tromey <tom@tromey.com>
1332 * eval.c (eval_op_lognot): New function.
1333 (evaluate_subexp_standard): Use it.
1335 2021-03-08 Tom Tromey <tom@tromey.com>
1337 * eval.c (eval_op_complement): New function.
1338 (evaluate_subexp_standard): Use it.
1340 2021-03-08 Tom Tromey <tom@tromey.com>
1342 * eval.c (eval_op_neg): New function.
1343 (evaluate_subexp_standard): Use it.
1345 2021-03-08 Tom Tromey <tom@tromey.com>
1347 * eval.c (eval_op_plus): New function.
1348 (evaluate_subexp_standard): Use it.
1350 2021-03-08 Tom Tromey <tom@tromey.com>
1352 * eval.c (eval_op_repeat): New function.
1353 (evaluate_subexp_standard): Use it.
1355 2021-03-08 Tom Tromey <tom@tromey.com>
1357 * eval.c (eval_op_leq): New function.
1358 (evaluate_subexp_standard): Use it.
1360 2021-03-08 Tom Tromey <tom@tromey.com>
1362 * eval.c (eval_op_geq): New function.
1363 (evaluate_subexp_standard): Use it.
1365 2021-03-08 Tom Tromey <tom@tromey.com>
1367 * eval.c (eval_op_gtr): New function.
1368 (evaluate_subexp_standard): Use it.
1370 2021-03-08 Tom Tromey <tom@tromey.com>
1372 * eval.c (eval_op_less): New function.
1373 (evaluate_subexp_standard): Use it.
1375 2021-03-08 Tom Tromey <tom@tromey.com>
1377 * eval.c (eval_op_notequal): New function.
1378 (evaluate_subexp_standard): Use it.
1380 2021-03-08 Tom Tromey <tom@tromey.com>
1382 * eval.c (eval_op_equal): New function.
1383 (evaluate_subexp_standard): Use it.
1385 2021-03-08 Tom Tromey <tom@tromey.com>
1387 * eval.c (eval_op_subscript): New function.
1388 (evaluate_subexp_standard): Use it.
1390 2021-03-08 Tom Tromey <tom@tromey.com>
1392 * eval.c (eval_op_binary): New function.
1393 (evaluate_subexp_standard): Use it.
1395 2021-03-08 Tom Tromey <tom@tromey.com>
1397 * eval.c (eval_op_sub): New function.
1398 (evaluate_subexp_standard): Use it.
1400 2021-03-08 Tom Tromey <tom@tromey.com>
1402 * eval.c (eval_op_add): New function.
1403 (evaluate_subexp_standard): Use it.
1405 2021-03-08 Tom Tromey <tom@tromey.com>
1407 * eval.c (eval_op_member): New function.
1408 (evaluate_subexp_standard): Use it.
1410 2021-03-08 Tom Tromey <tom@tromey.com>
1412 * eval.c (eval_op_structop_ptr): New function.
1413 (evaluate_subexp_standard): Use it.
1415 2021-03-08 Tom Tromey <tom@tromey.com>
1417 * eval.c (eval_op_structop_struct): New function.
1418 (evaluate_subexp_standard): Use it.
1420 2021-03-08 Tom Tromey <tom@tromey.com>
1422 * eval.c (eval_op_ternop): New function.
1423 (evaluate_subexp_standard): Use it.
1425 2021-03-08 Tom Tromey <tom@tromey.com>
1427 * eval.c (eval_op_concat): New function.
1428 (evaluate_subexp_standard): Use it.
1430 2021-03-08 Tom Tromey <tom@tromey.com>
1432 * eval.c (eval_op_objc_selector): New function.
1433 (evaluate_subexp_standard): Use it.
1435 2021-03-08 Tom Tromey <tom@tromey.com>
1437 * eval.c (eval_op_string): New function.
1438 (evaluate_subexp_standard): Use it.
1440 2021-03-08 Tom Tromey <tom@tromey.com>
1442 * eval.c (eval_op_register): New function.
1443 (evaluate_subexp_standard): Use it.
1445 2021-03-08 Tom Tromey <tom@tromey.com>
1447 * eval.c (eval_op_func_static_var): New function.
1448 (evaluate_subexp_standard): Use it.
1450 2021-03-08 Tom Tromey <tom@tromey.com>
1452 * eval.c (eval_op_var_msym_value): New function.
1453 (evaluate_subexp_standard): Use it.
1455 2021-03-08 Tom Tromey <tom@tromey.com>
1457 * eval.c (eval_op_var_entry_value): New function.
1458 (evaluate_subexp_standard): Use it.
1460 2021-03-08 Tom Tromey <tom@tromey.com>
1462 * eval.c (eval_op_scope): New function.
1463 (evaluate_subexp_standard): Use it.
1465 2021-03-06 Chernov Sergey <klen_s@mail.ru>
1468 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1470 2021-03-06 Tom Tromey <tom@tromey.com>
1472 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1473 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1474 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1475 (locate_dwz_sections, dwz_search_other_debugdirs)
1476 (dwarf2_get_dwz_file): Move to dwz.c.
1477 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1479 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1480 (dwarf2_get_dwz_file): Move from read.c.
1482 2021-03-06 Tom Tromey <tom@tromey.com>
1484 * debuginfod-support.h: Include scoped_fd.h.
1486 2021-03-06 Tom Tromey <tom@tromey.com>
1488 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1489 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1490 (get_abbrev_section_for_cu, read_attribute_value)
1491 (get_debug_line_section): Update.
1492 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1494 2021-03-06 Tom Tromey <tom@tromey.com>
1496 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1498 * dwarf2/read.c (section_is_p): Remove.
1499 (dwarf2_per_bfd::locate_sections)
1500 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1501 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1502 (dwarf2_locate_common_dwp_sections)
1503 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1506 2021-03-06 Tom Tromey <tom@tromey.com>
1508 * xcoffread.c: Include sect-names.h.
1509 * symfile.h (struct dwarf2_section_names, struct
1510 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1511 * dwarf2/sect-names.h: New file, from symfile.h.
1512 * dwarf2/read.c: Include sect-names.h.
1514 2021-03-06 Tom Tromey <tom@tromey.com>
1516 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1517 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1518 (abbrev_table::read): Update.
1519 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1520 (struct abbrev_info): Reformat.
1521 <attrs>: Now an array.
1522 (struct abbrev_table) <alloc_abbrev>: Remove.
1524 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1526 * ctfread.c (ctf_psymtab_add_enums): New function.
1527 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1529 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1531 * ctfread.c (read_func_kind_type): Set up function arguments.
1533 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1534 Andrew Burgess <andrew.burgess@embecosm.com>
1536 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1538 (riscv_csrset): New static global.
1539 (riscv_update_csrmap): New function.
1540 (riscv_iterate_over_regset_sections): Process CSRs.
1542 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1544 * riscv-tdep.c (riscv_feature_name_csr): Define.
1545 (riscv_feature_name_cpu): Define.
1546 (riscv_feature_name_fpu): Define.
1547 (riscv_feature_name_virtual): Define.
1548 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1549 (riscv_freg_feature): Use riscv_feature_name_fpu.
1550 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1551 (riscv_csr_feature): Use riscv_feature_name_csr.
1552 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1554 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1555 Craig Blackmore <craig.blackmore@embecosm.com>
1557 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1558 (ALLDEPFILES): Add riscv-none-tdep.c.
1559 * configure: Regenerate.
1560 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1562 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1563 * elf-none-tdep.c: New file.
1564 * elf-none-tdep.h: New file.
1565 * riscv-none-tdep.c: New file.
1567 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1568 Andrew Burgess <andrew.burgess@embecosm.com>
1570 * corelow.c: Add 'xml-tdesc.h' include.
1571 (core_target::read_description): Load the target description from
1572 the core file when possible.
1573 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1575 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1576 (gcore_elf_make_tdesc_note): New function.
1577 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1578 * linux-tdep.c (linux_make_corefile_notes): Add target description
1581 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1583 * Makefile.in (SFILES): Add gcore-elf.c.
1584 (HFILES_NO_SRCDIR): Add gcore-elf.h
1585 * configure: Regenerate.
1586 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1588 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1589 (struct fbsd_collect_regset_section_cb_data): Delete.
1590 (fbsd_collect_regset_section_cb): Delete.
1591 (fbsd_collect_thread_registers): Delete.
1592 (struct fbsd_corefile_thread_data): Delete.
1593 (fbsd_corefile_thread): Delete.
1594 (fbsd_make_corefile_notes): Call
1595 gcore_elf_build_thread_register_notes instead of the now deleted
1597 * gcore-elf.c: New file, the content was moved here from
1598 linux-tdep.c, functions were renamed and given minor cleanup.
1599 * gcore-elf.h: New file.
1600 * gcore.c (gcore_find_signalled_thread): Moved here from
1601 linux-tdep.c and given a new name. Minor cleanups.
1602 * gcore.h (gcore_find_signalled_thread): Declare.
1603 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1604 (struct linux_collect_regset_section_cb_data): Delete.
1605 (linux_collect_regset_section_cb): Delete.
1606 (linux_collect_thread_registers): Delete.
1607 (linux_corefile_thread): Call
1608 gcore_elf_build_thread_register_notes.
1609 (find_signalled_thread): Delete.
1610 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1612 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1615 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1616 process_stratum_target parameter,
1617 sparc_store_inferior_registers): update callers.
1618 * sparc-nat.c (sparc_fetch_inferior_registers,
1619 sparc_store_inferior_registers): Add process_stratum_target
1620 parameter. Switch current thread before calling
1621 sparc_supply_gregset / sparc_collect_rwindow.
1622 (sparc_store_inferior_registers): Likewise.
1623 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1624 (sparc32obsd_collect_uthread): Likewise.
1625 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1627 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1628 sparc64obsd_supply_uthread): Add assertion.
1630 2021-03-04 Tom Tromey <tromey@adacore.com>
1632 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1633 (aux_add_nonlocal_symbols): Update.
1634 (ada_add_block_symbols): Change "found_sym" to bool.
1636 2021-03-03 Tom Tromey <tromey@adacore.com>
1638 * ada-lang.c (ada_resolve_function): Update comment.
1639 (is_nonfunction, add_symbols_from_enclosing_procs)
1640 (remove_extra_symbols): Likewise.
1641 (struct match_data): Add constructor, initializers.
1642 (add_nonlocal_symbols): Remove memset.
1643 (aux_add_nonlocal_symbols): Update comment.
1644 (ada_add_block_renamings, add_nonlocal_symbols)
1645 (ada_add_all_symbols): Likewise.
1646 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1648 2021-03-02 Tom Tromey <tromey@adacore.com>
1650 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1651 (cast_to_gnat_encoded_fixed_point_type): Remove.
1652 (ada_value_cast, ada_evaluate_subexp): Update.
1653 (gnat_encoded_fixed_point_type_info)
1654 (ada_is_gnat_encoded_fixed_point_type)
1655 (gnat_encoded_fixed_point_delta)
1656 (gnat_encoded_fixed_point_scaling_factor): Remove.
1657 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1658 (gnat_encoded_fixed_point_delta)
1659 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1660 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1661 (ada_print_type): Update.
1662 * ada-valprint.c (ada_value_print_num): Update.
1663 * dwarf2/read.c (ada_get_gnat_encoded_number)
1664 (ada_get_gnat_encoded_ratio): New functions.
1665 (finish_fixed_point_type): Use them. Add parameters.
1666 (GNAT_FIXED_POINT_SUFFIX): New define.
1667 (gnat_encoded_fixed_point_type_info): New function.
1668 (read_base_type): Handle gnat encodings.
1670 2021-03-02 Tom Tromey <tromey@adacore.com>
1672 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1673 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1675 (GROW_VECT): Remove.
1676 (grow_vect): Remove.
1678 2021-03-02 Tom Tromey <tromey@adacore.com>
1680 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1681 * ada-lang.c (resolve_subexp): Update.
1682 (ada_resolve_function): Accept a vector.
1683 (is_nonfunction, add_defn_to_vec)
1684 (add_symbols_from_enclosing_procs): Likewise.
1685 (num_defns_collected, defns_collected): Remove.
1686 (remove_extra_symbols): Return a vector.
1687 (remove_irrelevant_renamings): Return void.
1688 (ada_add_local_symbols): Accept a vector.
1689 (struct match_data) <obstackp>: Remove.
1690 <resultp>: New member.
1691 (aux_add_nonlocal_symbols): Update.
1692 (ada_add_block_renamings, add_nonlocal_symbols)
1693 (ada_add_all_symbols): Accept a vector.
1694 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1696 (ada_lookup_symbol): Update.
1697 (ada_add_block_symbols): Accept a vector.
1698 (get_var_value, iterate_over_symbols): Update.
1699 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1702 2021-03-02 Tom Tromey <tromey@adacore.com>
1704 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1706 2021-03-02 Tom Tromey <tromey@adacore.com>
1708 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1711 (ada_pspace_data): Remove destructor.
1712 <sym_cache>: Now a unique_ptr.
1713 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1714 (ada_get_symbol_cache): Use 'new'.
1715 (ada_clear_symbol_cache): Rewrite.
1717 2021-03-02 Tom Tromey <tromey@adacore.com>
1719 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1722 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
1725 * source.c (add_path): Skip empty dirnames.
1727 2021-02-25 Kevin Buettner <kevinb@redhat.com>
1729 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1730 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1732 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1735 * target.c (target_mourn_inferior): Only compare pids in
1736 target_mourn_inferior.
1738 2021-02-25 Jan Matyas <jmatyas@codasip.com>
1741 * remote.c (remote_target::start_remote): Ensure the single
1742 thread, automatically added for remote targets without the
1743 concept of threading, is initially in set to the "resumed"
1745 * remote.c (remote_target::add_current_inferior_and_thread):
1746 Add return value - return the main thread.
1748 2021-02-25 Jan Vrany <jan.vrany@labware.com>
1750 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1751 (mi_tsv_created): Likewise.
1752 (mi_tsv_deleted): Likewise.
1754 2021-02-25 Tom de Vries <tdevries@suse.de>
1757 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1758 section_kind for &dwo_file->sections.info.
1760 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1763 * f-lang.c (fortran_argument_convert): Delete declaration.
1764 (fortran_prepare_argument): New function.
1765 (evaluate_subexp_f): Move logic to new function
1766 fortran_prepare_argument.
1768 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1770 * f-exp.y (f77_keywords): Add 'associated'.
1771 * f-lang.c (fortran_associated): New function.
1772 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1773 (operator_length_f): Likewise.
1774 (print_unop_or_binop_subexp_f): New function.
1775 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1776 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1777 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1778 (operator_check_f): Likewise.
1779 * std-operator.def: Add FORTRAN_ASSOCIATED.
1781 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1783 * f-exp.y (fortran_operators): Add ".xor.".
1785 2021-02-24 Tom de Vries <tdevries@suse.de>
1788 * dwarf2/attribute.c (attribute::form_is_signed): New function
1790 * dwarf2/attribute.h (attribute::as_signed): ... here.
1791 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1792 (attribute::form_is_signed): Declare.
1793 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1794 for DW_AT_decl_file.
1796 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1798 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1799 order for <sys/ptrace.h> and <asm/ptrace.h>.
1801 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1803 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1806 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1808 * exec.c (set_section_command): Move variable declarations into
1809 the function body, and use std::string instead of a fixed size
1812 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1814 * exec.c (exec_target::get_section_table): Delete member function.
1815 (section_table_read_available_memory): Use current_top_target, not
1816 just the exec_ops target.
1817 * target-delegates.c: Regenerate.
1818 * target.c (default_get_section_table): New function.
1819 * target.h (target_ops::get_section_table): Change default
1820 behaviour to call default_get_section_table.
1821 (default_get_section_table): Declare.
1823 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1825 * exec.c (exec_target::close): Call new clear_target_sections
1827 (program_space::add_target_sections): Update name of member
1829 (program_space::add_target_sections): Update name of member
1831 (program_space::remove_target_sections): Likewise.
1832 (exec_one_fork): Use new target_sections member function.
1833 (exec_target::get_section_table): Likewise.
1834 (exec_target::files_info): Likewise.
1835 (set_section_command): Likewise.
1836 (exec_set_section_address): Likewise.
1837 (exec_target::has_memory): Use new target_sections member
1839 * progspace.h (program_space::clear_target_sections): New member
1841 (program_space::target_sections): Rename member variable to
1842 m_target_sections, replace with a new member function.
1843 (program_space::m_target_sections): New member variable.
1844 * solib-dsbt.c (scan_dyntag): Use new member function.
1845 * solib-svr4.c (scan_dyntag): Likewise.
1847 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1849 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1851 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1852 (section_table_read_available_memory): Make local const.
1853 (exec_target::xfer_partial): Make local const.
1854 (print_section_info): Make parameter const.
1855 * gdb/exec.h (print_section_info): Likewise.
1856 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1858 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1860 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1862 * gdb/s390-tdep.c (s390_load): Likewise.
1863 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1864 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1865 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1867 (target_debug_print_const_target_section_table_p): ...this.
1868 * gdb/target-delegates.c: Regenerate.
1869 * gdb/target.c (target_get_section_table): Make return type const.
1870 (target_section_by_addr): Likewise. Also make some locals const.
1871 (memory_xfer_partial_1): Make some locals const.
1872 * gdb/target.h (struct target_ops) <get_section_table>: Make
1874 (target_section_by_addr): Likewise.
1875 (target_get_section_table): Likewise.
1877 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1879 * NEWS: Mention new 'maint info target-sections' command.
1880 * maint.c (maintenance_info_target_sections): New function.
1881 (_initialize_maint_cmds): Register new command.
1883 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1885 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1886 (riscv_features_from_bfd): ...this. Change parameter type to
1887 'bfd*', and update as required.
1888 (riscv_find_default_target_description): Update call to
1889 riscv_features_from_bfd. Select a default xlen based on
1891 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1893 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1895 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1896 dynamic types in UNOP_IND.
1898 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1901 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1903 (~dwarf2_queue_guard): Clear queue.
1904 (queue_comp_unit): Assert that queue is
1906 (process_queue): Adjust.
1907 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1909 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1912 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1913 to decide whether or not to enqueue it for expansion.
1914 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1915 after calling maybe_queue_comp_unit.
1917 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1919 * linux-nat.c (linux_nat_filter_event): Return void.
1921 2021-02-22 Tom Tromey <tromey@adacore.com>
1923 * solib-svr4.c (enable_break): Update.
1924 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1926 (target_bfd_reopen): Change parameter type.
1927 * bfd-target.h (target_bfd_reopen): Change parameter type.
1929 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1931 * thread.c (add_thread_silent): Add assert.
1932 (find_thread_ptid): Add assert.
1934 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1937 * inf-ptrace.c (struct target_unpusher): Move to target.h.
1938 (target_unpush_up): Likewise.
1939 * procfs.c (procfs_target::attach): Push target early. Use
1940 target_unpush_up to unpush target in case of error.
1941 * target.h (struct target_unpusher): Move here.
1942 (target_unpush_up): Likewise.
1944 2021-02-19 Kevin Buettner <kevinb@redhat.com>
1946 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
1947 (which in turn includes <gnulib/config.h>) before include
1950 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
1953 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
1954 (decode_j_type_insn): Likewise.
1955 (decode_cj_type_insn): Likewise.
1956 (decode_b_type_insn): Likewise.
1959 2021-02-18 Tom Tromey <tom@tromey.com>
1961 * expression.h (struct expression) <evaluate>: Declare method.
1962 * eval.c (evaluate_subexp): Simplify.
1963 (expression::evaluate): New method.
1964 (evaluate_expression, evaluate_type): Use expression::evaluate.
1966 2021-02-17 Kevin Buettner <kevinb@redhat.com>
1968 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1970 (ada_lookup_name_info): Likewise.
1972 2021-02-13 Mike Frysinger <vapier@gentoo.org>
1974 * aclocal.m4: Regenerate.
1976 2021-02-12 Tom de Vries <tdevries@suse.de>
1979 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1980 (lin_thread_signals): New static var.
1981 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1983 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1984 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1986 * linux-thread-db.c (check_thread_signals): Use
1987 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1989 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1991 * f-exp.y (f77_keywords): Add allocated.
1992 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
1993 (operator_length_f): Likewise.
1994 (print_subexp_f): Likewise.
1995 (dump_subexp_body_f): Likewise.
1996 (operator_check_f): Likewise.
1997 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
1999 2021-02-11 Tom de Vries <tdevries@suse.de>
2002 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2003 Return true for DW_FORM_strx.
2005 2021-02-11 Tom Tromey <tromey@adacore.com>
2008 * parse.c (write_exp_symbol_reference): Write sym.block.
2010 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2012 * NEWS: Mention changes to 'maint info sections'.
2013 * maint.c (match_substring): Return a bool, fix whitespace issue.
2014 (struct single_bfd_flag_info): New struct.
2015 (bfd_flag_info): New static global.
2016 (match_bfd_flags): Return a bool, use bfd_flag_info.
2017 (print_bfd_flags): Use bfd_flag_info.
2018 (maint_print_section_info): Delete trailing whitespace.
2019 (struct maint_info_sections_opts): New struct.
2020 (maint_info_sections_option_defs): New static global.
2021 (maint_info_sections_completer): New function.
2022 (maintenance_info_sections): Use option parsing mechanism.
2023 (_initialize_maint_cmds): Update command help text for 'maint info
2024 sections' and register a command completer.
2026 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2028 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2029 functionality merged into...
2030 (maint_print_all_sections): ...this new function.
2031 (maintenance_info_sections): Make use of maint_print_all_sections,
2032 allow all objects to be printed even where there's no executable.
2034 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2036 * breakpoint.c (resolve_sal_pc): Make use of
2037 bound_minimal_symbol::obj_section.
2038 * maint.c (maintenance_translate_address): Likewise.
2039 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2040 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2042 * printcmd.c (info_address_command): Make use of
2043 bound_minimal_symbol::obj_section.
2045 2021-02-11 Alan Modra <amodra@gmail.com>
2047 * arm-symbian-tdep.c: Delete.
2048 * NEWS: Mention arm-symbian removal.
2049 * Makefile.in: Remove arm-symbian-tdep entries.
2050 * configure.tgt: Remove arm*-*-symbianelf*.
2051 * doc/gdb.texinfo: Remove mention of SymbianOS.
2052 * osabi.c (gdb_osabi_names): Remove "Symbian".
2053 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2054 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2055 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2057 * testsuite/gdb.base/dup-sect.exp: Likewise.
2058 * testsuite/gdb.base/long_long.exp: Likewise.
2059 * testsuite/gdb.base/solib-weak.exp: Likewise.
2060 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2061 * testsuite/gdb.python/py-section-script.exp: Likewise.
2062 * testsuite/lib/dwarf.exp: Likewise.
2063 * testsuite/lib/gdb.exp: Likewise.
2065 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2067 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2068 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2069 (one_or_two_args): New pattern.
2070 (f77_keywords): Add lbound and ubound.
2071 * f-lang.c (fortran_bounds_all_dims): New function.
2072 (fortran_bounds_for_dimension): New function.
2073 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2074 (operator_length_f): Likewise.
2075 (print_subexp_f): Likewise.
2076 (dump_subexp_body_f): Likewise.
2077 (operator_check_f): Likewise.
2078 * std-operator.def (FORTRAN_LBOUND): Define.
2079 (FORTRAN_UBOUND): Define.
2081 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2083 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2084 and set_section_index member functions where appropriate.
2085 * coffread.c (coff_symtab_read): Likewise.
2086 (process_coff_symbol): Likewise.
2087 * ctfread.c (set_symbol_address): Likewise.
2088 * dwarf2/read.c (add_partial_symbol): Likewise.
2089 (var_decode_location): Likewise.
2090 * language.c: Likewise.
2091 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2092 (compact_minimal_symbols): Likewise.
2093 (minimal_symbol_upper_bound): Likewise.
2094 * objfiles.c (relocate_one_symbol): Likewise.
2095 * psympriv.h (partial_symbol::obj_section): Likewise.
2096 (partial_symbol::address): Likewise.
2097 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2098 * stabsread.c (scan_file_globals): Likewise.
2099 * symmisc.c (dump_msymbols): Likewise.
2100 * symtab.c (general_symbol_info::obj_section): Likewise.
2101 (fixup_section): Likewise.
2102 (get_msymbol_address): Likewise.
2103 * symtab.h (general_symbol_info::section): Rename to...
2104 (general_symbol_info::m_section): ...this.
2105 (general_symbol_info::set_section_index): New member function.
2106 (general_symbol_info::section_index): Likewise.
2107 (SYMBOL_SECTION): Delete.
2108 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2109 set_section_index member functions where appropriate.
2110 (MSYMBOL_SECTION): Delete.
2111 (symbol::symbol): Update to initialize 'm_section'.
2112 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2113 (process_xcoff_symbol): Likewise.
2115 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2117 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2118 MSYMBOL_OBJ_SECTION.
2119 * findvar.c (language_defn::read_var_value): Likewise.
2120 * infcmd.c (jump_command): Likewise.
2121 * linespec.c (minsym_found): Likewise.
2122 * maint.c (maintenance_translate_address): Likewise.
2123 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2124 (minimal_symbol_upper_bound): Likewise.
2125 * parse.c (find_minsym_type_and_address): Likewise.
2126 (operator_check_standard): Likewise.
2127 * printcmd.c (info_address_command): Likewise.
2128 * symmisc.c (dump_msymbols): Likewise.
2129 (print_symbol): Likewise.
2130 * symtab.c (general_symbol_info::obj_section): Define new
2132 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2133 (find_pc_sect_compunit_symtab): Likewise.
2134 (find_function_start_sal): Likewise.
2135 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2136 MSYMBOL_OBJ_SECTION.
2137 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2139 (SYMBOL_OBJ_SECTION): Delete.
2140 (MSYMBOL_OBJ_SECTION): Delete.
2142 2021-02-09 Tom Tromey <tom@tromey.com>
2144 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2146 2021-02-09 Tom de Vries <tdevries@suse.de>
2149 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2150 construct an array type. Add assert to ensure that element_type is
2153 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2155 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2156 (gcore_collect_regset_section_cb): Delete.
2157 (gcore_collect_thread_registers): Delete.
2158 (gcore_build_thread_register_notes): Delete.
2159 (gcore_find_signalled_thread): Delete.
2160 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2161 'gdbarch' and 'thread_info' declarations.
2162 (gcore_build_thread_register_notes): Delete declaration.
2163 (gcore_find_signalled_thread): Likewise.
2164 * fbsd-tdep.c: Remove 'gcore.h' include.
2165 (struct fbsd_collect_regset_section_cb_data): New struct.
2166 (fbsd_collect_regset_section_cb): New function.
2167 (fbsd_collect_thread_registers): New function.
2168 (struct fbsd_corefile_thread_data): New struct.
2169 (fbsd_corefile_thread): New function.
2170 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2171 * linux-tdep.c: Remove 'gcore.h' include.
2172 (struct linux_collect_regset_section_cb_data): New struct.
2173 (linux_collect_regset_section_cb): New function.
2174 (linux_collect_thread_registers): New function.
2175 (linux_corefile_thread): Call Linux specific code.
2176 (find_signalled_thread): New function.
2177 (linux_make_corefile_notes): Call find_signalled_thread.
2179 2021-02-09 Tom Tromey <tromey@adacore.com>
2181 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2183 * value.c (value_contents_copy_raw): Now static.
2184 * value.h (value_contents_copy_raw): Don't declare.
2186 2021-02-09 Tom Tromey <tromey@adacore.com>
2188 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2191 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
2194 * arc-linux-tdep.c (handle_atomic_sequence): New.
2195 (arc_linux_software_single_step): Call handle_atomic_sequence().
2197 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2199 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2201 (REQUIRE_WINDOW): Call is_valid member function.
2202 (REQUIRE_WINDOW_FOR_SETTER): New define.
2203 (gdbpy_tui_is_valid): Call is_valid member function.
2204 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2205 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2207 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2208 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2211 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2213 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2214 for the title is not nullptr.
2216 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2218 * tui-layout.c (saved_tui_windows): Delete.
2219 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2220 call new get_windows member function instead.
2221 (tui_get_window_by_name): Check in tui_windows.
2222 (tui_layout_window::apply): Don't add to tui_windows.
2223 * tui-layout.h (tui_layout_base::get_windows): New member function.
2224 (tui_layout_window::get_windows): Likewise.
2225 (tui_layout_split::get_windows): Likewise.
2227 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2229 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2230 of the window objects.
2232 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2234 * python/python.c (gdbpy_print_stack): Reformat an error message.
2236 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2238 * tui/tui-interp.c (tui_command_line_handler): New function.
2239 (tui_interp::resume): Register tui_command_line_handler as the
2241 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2243 (tui_getc_1): Delete handling of '\n' and '\r'.
2244 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2246 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2248 * tui/tui-regs.c (tui_data_window::display_registers_from):
2249 Mark invisible register sub windows.
2250 (tui_data_window::check_register_values): Ignore invisible
2251 register sub windows.
2253 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2255 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2256 n_spaces with a negative value.
2258 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2260 * tui/tui-regs.c (tui_data_window::display_registers_from):
2261 Add refresh_window call.
2263 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2265 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2267 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2269 * symmisc.c (std_in, std_out, std_err): Remove.
2270 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2272 2021-02-05 Tom de Vries <tdevries@suse.de>
2274 PR breakpoints/27330
2275 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2276 glibc object file has debug info.
2278 2021-02-05 Tom de Vries <tdevries@suse.de>
2281 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2283 2021-02-05 Tom de Vries <tdevries@suse.de>
2285 PR breakpoints/27313
2286 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2289 2021-02-05 Tom Tromey <tom@tromey.com>
2291 * compile/compile-c-support.c (get_compile_context)
2292 (c_get_compile_context, cplus_get_compile_context): Change return
2294 * language.c (language_defn::get_compile_instance): New method.
2295 * language.h (language_defn::get_compile_instance): Change return
2296 type. No longer inline.
2297 * c-lang.c (c_language::get_compile_instance): Change return type.
2298 (cplus_language::get_compile_instance): Change return type.
2299 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2301 * compile/compile.c (compile_to_object): Update.
2303 2021-02-05 Tom Tromey <tom@tromey.com>
2305 * parser-defs.h (write_exp_symbol_reference): Declare.
2306 * parse.c (write_exp_symbol_reference): New function.
2307 * p-exp.y (variable): Use write_exp_symbol_reference.
2308 * m2-exp.y (variable): Use write_exp_symbol_reference.
2309 * f-exp.y (variable): Use write_exp_symbol_reference.
2310 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2311 * c-exp.y (variable): Use write_exp_symbol_reference.
2313 2021-02-05 Tom de Vries <tdevries@suse.de>
2316 * valarith.c (complex_binop): Throw an error if complex type can't
2319 2021-02-05 Tom de Vries <tdevries@suse.de>
2322 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2325 2021-02-05 Tom de Vries <tdevries@suse.de>
2327 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2329 2021-02-04 Mike Frysinger <vapier@gentoo.org>
2331 * configure.tgt (riscv*-*-*): Set gdb_sim.
2333 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2335 * target.c (target_is_non_stop_p): Return bool.
2336 * target.h (target_is_non_stop_p): Return bool.
2338 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2340 * record-full.c (record_full_async_inferior_event_handler):
2341 Don't clear async event handler.
2342 (record_full_base_target::wait): Clear async event handler at
2345 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2347 * record-btrace.c (record_btrace_handle_async_inferior_event):
2348 Don't clear async event handler.
2349 (record_btrace_target::wait): Clear async event handler at
2352 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2354 * remote.c (remote_target::wait): Clear async event handler at
2355 beginning, mark if needed at the end.
2356 (remote_async_inferior_event_handler): Don't set or clear async
2359 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2361 * async-event.h (async_event_handler_func): Add documentation.
2362 * async-event.c (check_async_event_handlers): Don't clear
2363 async_event_handler ready flag.
2364 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2366 * record-btrace.c (record_btrace_handle_async_inferior_event):
2368 * record-full.c (record_full_async_inferior_event_handler):
2370 * remote-notif.c (remote_async_get_pending_events_handler):
2372 * remote.c (remote_async_inferior_event_handler): Likewise.
2374 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2376 * infrun.c (handle_inferior_event): Move stop_soon variable to
2379 2021-02-03 Pedro Alves <pedro@palves.net>
2381 * infcmd.c (detach_command): Hold strong reference to target, and
2382 if all-stop on entry, restart threads on exit.
2383 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2384 (restart_stepped_thread): ... this new function. Also handle
2386 (restart_after_all_stop_detach): New function.
2387 * infrun.h (restart_after_all_stop_detach): Declare.
2389 2021-02-03 Pedro Alves <pedro@palves.net>
2391 * infrun.c (struct step_over_info): Initialize fields.
2392 (prepare_for_detach): Handle ongoing in-line step over.
2394 2021-02-03 Pedro Alves <pedro@palves.net>
2396 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2398 * remote.c (remote_target::remote_detach_1): ... and here ...
2399 * target.c (target_detach): ... instead of here.
2400 * target.h (target_ops::detach): Add comment.
2402 2021-02-03 Pedro Alves <pedro@palves.net>
2404 * infrun.c (struct wait_one_event): Move higher up.
2405 (prepare_for_detach): Abort in-progress displaced steps instead of
2406 letting them complete.
2407 (handle_one): If the inferior is detaching, don't add the thread
2408 back to the global step-over chain.
2409 (restart_threads): Don't restart threads if detaching.
2410 (handle_signal_stop): Remove inferior::detaching reference.
2412 2021-02-03 Pedro Alves <pedro@palves.net>
2414 * infrun.c (prepare_for_detach): Don't release scoped_restore
2417 2021-02-03 Pedro Alves <pedro@palves.net>
2419 * infrun.c (handle_one): New function, factored out from ...
2420 (stop_all_threads): ... here.
2422 2021-02-03 Pedro Alves <pedro@palves.net>
2424 * remote.c (remote_notif_stop_ack): Don't error out on
2425 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2426 (remote_target::discard_pending_stop_replies): Don't delete
2427 in-flight notification; instead, clear its contents.
2429 2021-02-03 Pedro Alves <pedro@palves.net>
2431 * remote.c (extended_remote_target::attach): Set target async in
2432 the target-non-stop path too.
2434 2021-02-03 Pedro Alves <pedro@palves.net>
2437 * infrun.c (handle_signal_stop): Move main context_switch call
2438 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2440 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2442 * NEWS (Changed commands): Add entry for the behavior change of
2443 the inferior command.
2444 * inferior.c (inferior_command): When no argument is given to the
2445 inferior command, display info about the currently selected
2448 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2450 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2452 (read_attribute_reprocess): Adjust.
2454 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2456 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2457 <gnu_ranges_base>: ... this...
2458 <rnglists_base>: ... and this.
2459 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2460 <gnu_ranges_base>: ... this...
2461 <rnglists_base>: ... and this.
2462 (read_cutu_die_from_dwo): Adjust
2463 (dwarf2_get_pc_bounds): Adjust
2464 (dwarf2_record_block_ranges): Adjust.
2465 (read_full_die_1): Adjust
2466 (partial_die_info::read): Adjust.
2467 (read_rnglist_index): Adjust.
2469 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2472 * dwarf2/read.c (read_loclists_rnglists_header): Add
2473 header_offset parameter and use it.
2474 (read_loclist_index): Read header of the current contribution,
2475 not the one at the beginning of the section.
2476 (read_rnglist_index): Likewise.
2478 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2481 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2482 requires_reprocessing flag.
2483 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2485 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2486 and DW_FORM_loclistx.
2487 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2488 instead of set_address for DW_FORM_loclistx and
2491 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2493 * dwarf2/read.c (read_loclist_index): Remove bound check for
2495 (read_rnglist_index): Likewise.
2497 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2499 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2502 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2504 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2506 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2508 * dwarf2/read.c (read_loclist_index): Change complaints into
2511 2021-02-02 Tom de Vries <tdevries@suse.de>
2514 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2517 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2519 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2520 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2521 here from linux-tdep.c and given a new name. Minor cleanups.
2522 (gcore_collect_regset_section_cb): Likewise.
2523 (gcore_collect_thread_registers): Likewise.
2524 (gcore_build_thread_register_notes): Likewise.
2525 (gcore_find_signalled_thread): Likewise.
2526 * gcore.h (gcore_build_thread_register_notes): Declare.
2527 (gcore_find_signalled_thread): Declare.
2528 * fbsd-tdep.c: Add 'gcore.h' include.
2529 (struct fbsd_collect_regset_section_cb_data): Delete.
2530 (fbsd_collect_regset_section_cb): Delete.
2531 (fbsd_collect_thread_registers): Delete.
2532 (struct fbsd_corefile_thread_data): Delete.
2533 (fbsd_corefile_thread): Delete.
2534 (fbsd_make_corefile_notes): Call
2535 gcore_build_thread_register_notes instead of the now deleted
2537 * linux-tdep.c: Add 'gcore.h' include.
2538 (struct linux_collect_regset_section_cb_data): Delete.
2539 (linux_collect_regset_section_cb): Delete.
2540 (linux_collect_thread_registers): Delete.
2541 (linux_corefile_thread): Call
2542 gcore_build_thread_register_notes.
2543 (find_signalled_thread): Delete.
2544 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2546 2021-01-29 Tom de Vries <tdevries@suse.de>
2548 PR breakpoints/26063
2549 * infrun.c (process_event_stop_test): Reset
2550 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2553 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2555 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2556 assert. Extend the header comment.
2558 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2560 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2561 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2562 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2563 (tui_locator_win_info_ptr): Delete declaration.
2564 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2565 (tui_disasm_window::set_contents): Fetch state from tui_location
2567 (tui_get_begin_asm_address): Likewise.
2568 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2570 (get_locator_window): Delete.
2571 (initialize_known_windows): Treat locator window just like all the
2573 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2574 (tui_source_window::set_contents): Fetch state from tui_location
2576 (tui_source_window::showing_source_p): Likewise.
2577 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2579 (tui_locator_win_info_ptr): Delete.
2580 (tui_locator_window::make_status_line): Fetch state from
2581 tui_location global.
2582 (tui_locator_window::rerender): Remove check of 'handle',
2583 reindent function body.
2584 (tui_locator_window::set_locator_fullname): Delete.
2585 (tui_locator_window::set_locator_info): Delete.
2586 (tui_update_locator_fullname): Delete.
2587 (tui_show_frame_info): Likewise.
2588 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2589 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2590 tui/tui-location.h and renamed to
2591 tui_location_tracker::set_location.
2592 (tui_locator_window::set_locator_fullname): Moved to
2593 tui/tui-location.h and renamed to
2594 tui_location_tracker::set_fullname.
2595 (tui_locator_window::full_name): Delete.
2596 (tui_locator_window::proc_name): Delete.
2597 (tui_locator_window::line_no): Delete.
2598 (tui_locator_window::addr): Delete.
2599 (tui_locator_window::gdbarch): Delete.
2600 (tui_update_locator_fullname): Delete declaration.
2601 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2603 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2604 (tui_display_main): Call function on tui_location directly.
2605 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2606 * tui/tui-location.c: New file.
2607 * tui/tui-location.h: New file.
2609 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2611 * gdbtypes.h (get_type_arch): Rename to...
2612 (struct type) <arch>: ... this, update all users.
2614 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2616 * gdbtypes.h (struct type) <arch>: Rename to...
2617 <arch_owner>: ... this, update all users.
2618 <objfile>: Rename to...
2619 <objfile_owner>: ... this, update all users.
2621 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2623 * gdbcmd.h (execute_command_to_string): Update comment.
2624 * top.c (execute_command_to_string): Update header comment.
2626 2021-01-28 Tom de Vries <tdevries@suse.de>
2628 PR breakpoints/27205
2629 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2630 (create_longjmp_master_breakpoint_names): New function, factored out
2632 (create_longjmp_master_breakpoint): ... here. Only try to install
2633 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2634 breakpoint in libc.so failed.
2636 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2639 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2640 unique_ptr is released when the wrapped pointer is kept for later
2643 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2645 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2646 BLR and BR instructions.
2647 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2648 (enum aarch64_masks): New.
2650 2021-01-26 Tom Tromey <tromey@adacore.com>
2652 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2653 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2654 (windows_init_thread_list, windows_nat::handle_load_dll)
2655 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2656 (windows_nat_target::resume)
2657 (windows_nat_target::get_windows_debug_event)
2658 (windows_nat_target::interrupt, windows_xfer_memory)
2659 (windows_nat_target::close): Update.
2660 * nat/windows-nat.c (DEBUG_EVENTS): Use
2661 debug_prefixed_printf_cond.
2662 (matching_pending_stop, fetch_pending_stop)
2663 (continue_last_debug_event): Update.
2665 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2667 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2668 elfcore_write_file_note.
2670 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
2672 * arc-tdep.c (arc_add_reggroups): New function.
2673 (arc_gdbarch_init): Call arc_add_reggroups.
2675 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
2677 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2679 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2680 Simon Marchi <simon.marchi@polymtl.ca>
2681 Tom de Vries <tdevries@suse.de>
2683 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2686 2021-01-25 Tom Tromey <tromey@adacore.com>
2688 * dwarf2/read.c (get_mpz): New function.
2689 (get_dwarf2_rational_constant): Use it.
2691 2021-01-25 Tom Tromey <tromey@adacore.com>
2693 * ada-lang.c (resolve_subexp): Handle array context.
2695 2021-01-23 Tom Tromey <tom@tromey.com>
2698 * compile/compile-loc2c.c (note_register): New function.
2699 (pushf_register_address, pushf_register): Use it.
2701 2021-01-23 Tom Tromey <tom@tromey.com>
2703 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2704 Change type of "registers_used".
2705 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2706 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2707 (locexpr_generate_c_location, loclist_generate_c_location): Change
2708 type of "registers_used".
2709 * compile/compile.h (compile_dwarf_expr_to_c)
2710 (compile_dwarf_bounds_to_c): Update.
2711 * compile/compile-loc2c.c (pushf_register_address)
2712 (pushf_register, do_compile_dwarf_expr_to_c)
2713 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2714 of "registers_used".
2715 * compile/compile-c.h (generate_c_for_variable_locations):
2717 * compile/compile-c-symbols.c (generate_vla_size)
2718 (generate_c_for_for_one_variable): Change type of
2720 (generate_c_for_variable_locations): Return std::vector.
2721 * compile/compile-c-support.c (generate_register_struct): Change
2722 type of "registers_used".
2725 2021-01-23 Tom Tromey <tom@tromey.com>
2727 * compile/compile-internal.h (class compile_instance)
2728 <set_arguments>: Change return type.
2729 * compile/compile.c (compile_to_object): Remove call to reset.
2730 (compile_instance::set_arguments): Change return type.
2732 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2734 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2735 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2737 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2739 * Makefile.in (SELFTESTS_SRCS): Add
2740 unittests/gdb_tilde_expand-selftests.c.
2741 * unittests/gdb_tilde_expand-selftests.c: New file.
2743 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2746 * NEWS: Mention new command.
2747 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2748 (version_style): Define.
2749 (cli_style_option::cli_style_option): Add intensity parameter, and
2751 (_initialize_cli_style): Register version style set/show commands.
2752 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2753 (version_style): Declare.
2754 * top.c (print_gdb_version): Use version_stype, and styled_string
2755 to print the GDB version string.
2757 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2759 * utils.c (emit_style_escape): Only emit an escape sequence if the
2760 requested style is different than the current applied style.
2761 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2762 current applied_style.
2763 (fputs_styled): Remove is_default check.
2764 (fputs_styled_unfiltered): Likewise.
2765 (vfprintf_styled_no_gdbfmt): Likewise.
2767 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2769 * remote.h (remote_debug_printf): New.
2770 (remote_debug_printf_nofunc): New.
2771 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2772 * remote.c: Use above macros throughout file.
2774 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2776 * remote.h (remote_debug): Change to bool.
2777 * remote.c (remote_debug): Change to bool.
2778 (_initialize_remote): Adjust.
2780 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2782 * target.h (remote_debug): Move to...
2783 * remote.h (remote_debug): ... here.
2784 * top.c (remote_debug): Move to...
2785 * remote.c (remote_debug): ... here.
2786 * remote-sim.c: Include remote.h.
2788 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2790 * cli/cli-cmds.c (show_remote_debug): Remove.
2791 (show_remote_timeout): Remove.
2792 (_initialize_cli_cmds): Don't register commands.
2793 * remote.c (show_remote_debug): Move here.
2794 (show_remote_timeout): Move here.
2795 (_initialize_remote): Register commands.
2797 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2799 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2800 type::objfile method instead.
2802 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2804 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2805 use the type::is_objfile_owned method.
2807 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
2809 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2810 (TYPE_OWNER): Remove.
2811 (TYPE_OBJFILE): Adjust.
2812 (struct main_type) <flag_objfile_owned>: Rename to...
2813 <m_flag_objfile_owned>: ... this.
2814 <owner>: Rename to...
2815 <m_owner>: ... this.
2816 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2818 (TYPE_ALLOC): Adjust.
2819 * gdbtypes.c (alloc_type): Adjust.
2820 (alloc_type_arch): Adjust.
2821 (alloc_type_copy): Adjust.
2822 (get_type_arch): Adjust.
2823 (smash_type): Adjust.
2824 (lookup_array_range_type): Adjust.
2825 (recursive_dump_type): Adjust.
2826 (copy_type_recursive): Adjust.
2827 * compile/compile-c-types.c (convert_func): Adjust.
2828 (convert_type_basic): Adjust.
2829 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2832 (language_arch_info::type_and_symbol::alloc_type_symbol):
2835 2021-01-21 Luis Machado <luis.machado@linaro.org>
2837 * coffread.c (enter_linenos): Passing string to complaint.
2838 * valops.c (value_assign): Make array view.
2840 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2842 * auto-load.h (debug_auto_load): Move here.
2843 (auto_load_debug_printf): New.
2844 * auto-load.c: Use auto_load_debug_printf.
2845 (debug_auto_load): Move to header.
2846 * linux-thread-db.c (try_thread_db_load): Use
2847 auto_load_debug_printf.
2848 * main.c (captured_main_1): Likewise.
2850 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2852 * f-valprint.c (f77_array_offset_tbl): Remove.
2854 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2856 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2858 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2860 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2863 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
2866 * python/py-breakpoint.c (bppy_get_location): Handle
2867 bp_hardware_breakpoint.
2868 (bppy_init): Likewise.
2869 (gdbpy_breakpoint_created): Likewise.
2871 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2873 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2875 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2877 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2878 (_initialize_gdb_bfd): Adjust.
2880 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2883 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2885 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2887 * dwarf2/read.c (follow_die_offset): Add logging.
2888 (dwarf2_per_objfile::age_comp_units): Add logging.
2890 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2892 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2893 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2894 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2895 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2896 * arm-tdep.c (struct frame_unwind): Make static.
2897 * auto-load.c (auto_load_safe_path_vec): Make static.
2898 * csky-tdep.c (csky_stub_unwind): Make static.
2899 * gdbarch.c (gdbarch_data_registry): Make static.
2900 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2901 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2902 * i386-tdep.c (i386_frame_setup_skip_insns,
2903 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2905 * infrun.c (observer_mode): Make static.
2906 * linux-nat.c (sigchld_action): Make static.
2907 * linux-thread-db.c (thread_db_list): Make static.
2908 * maint-test-options.c (maintenance_test_options_list):
2909 * mep-tdep.c (mep_csr_registers): Make static.
2910 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2911 (stats): Make static.
2912 * nat/linux-osdata.c (struct osdata_type): Make static.
2913 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2914 * progspace.c (last_program_space_num): Make static.
2915 * python/py-param.c (struct parm_constant): Remove struct type
2917 (parm_constants): Make static.
2918 * python/py-record-btrace.c (btpy_list_methods): Make static.
2919 * python/py-record.c (recpy_gap_type): Make static.
2920 * record.c (record_goto_cmdlist): Make static.
2921 * regcache.c (regcache_descr_handle): Make static.
2922 * registry.h (DEFINE_REGISTRY): Make definition static.
2923 * symmisc.c (std_in, std_out, std_err): Make static.
2924 * top.c (previous_saved_command_line): Make static.
2925 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2927 * unittests/command-def-selftests.c (nr_duplicates,
2928 nr_invalid_prefixcmd, lists): Make static.
2929 * unittests/observable-selftests.c (test_notification): Make
2931 * unittests/optional/assignment/1.cc (counter): Make static.
2932 * unittests/optional/assignment/2.cc (counter): Make static.
2933 * unittests/optional/assignment/3.cc (counter): Make static.
2934 * unittests/optional/assignment/4.cc (counter): Make static.
2935 * unittests/optional/assignment/5.cc (counter): Make static.
2936 * unittests/optional/assignment/6.cc (counter): Make static.
2938 2021-01-20 Joel Sherrill <joel@rtems.org>
2941 * remote.c (struct remote_thread_info) <resume_state>: Rename
2943 <get_resume_state>: ... this.
2944 (remote_target::resume): Adjust.
2945 (remote_target::commit_resume): Adjust.
2946 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
2948 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
2949 Tom Tromey <tom@tromey.com>
2951 * stap-probe.c (stap_parse_single_operand): Handle '!'
2953 (stap_parse_argument_conditionally): Likewise.
2954 Skip spaces after processing open-parenthesis sub-expression.
2955 (stap_parse_argument_1): Skip spaces after call to
2956 stap_parse_argument_conditionally.
2957 Handle case when right-side expression is a parenthesized
2959 Skip spaces after call to stap_parse_argument_1.
2961 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2963 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2965 2021-01-19 Luis Machado <luis.machado@linaro.org>
2967 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2968 memory and save data.
2969 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2970 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2971 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2972 (trad_frame_value_bytes_p): Remove.
2973 (trad_frame_reset_saved_regs): Adjust documentation.
2974 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2975 constructor and reset the state of the registers.
2976 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2977 (trad_frame_value_bytes_p, trad_frame_set_value)
2978 (trad_frame_set_realreg, trad_frame_set_addr)
2979 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2980 (trad_frame_set_reg_realreg): Update to call member function.
2981 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2982 (trad_frame_get_prev_register): Likewise.
2984 * aarch64-tdep.c (aarch64_analyze_prologue)
2985 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2986 (aarch64_prologue_prev_register): Update to use member functions.
2987 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2988 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
2989 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
2990 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
2991 (arm_make_epilogue_frame_cache): Likewise.
2992 * avr-tdep.c (avr_frame_unwind_cache)
2993 (avr_frame_prev_register): Likewise.
2994 * cris-tdep.c (cris_scan_prologue): Likewise.
2995 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
2996 * frv-tdep.c (frv_analyze_prologue): Likewise.
2997 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
2998 * lm32-tdep.c (lm32_frame_cache): Likewise.
2999 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3000 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3001 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3002 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3003 (reset_saved_regs): Adjust to set realreg.
3004 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3005 call member functions.
3006 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3007 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3008 (s390_backchain_frame_unwind_cache): Likewise.
3009 * score-tdep.c (score7_analyze_prologue)
3010 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3011 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3012 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3013 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3014 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3015 * tilegx-tdep.c (tilegx_analyze_prologue)
3016 (tilegx_frame_cache): Likewise.
3017 * v850-tdep.c (v850_frame_cache): Likewise.
3018 * vax-tdep.c (vax_frame_cache): Likewise.
3020 2021-01-19 Luis Machado <luis.machado@linaro.org>
3022 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3024 (put_frame_register_bytes): Likewise.
3025 Adjust documentation.
3026 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3027 (safe_frame_unwind_memory): Likewise.
3028 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3029 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3031 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3032 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3033 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3034 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3035 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3036 * dwarf2/loc.c (rw_pieced_value): Likewise.
3037 * hppa-tdep.c (hppa_frame_cache): Likewise.
3038 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3039 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3040 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3041 (i386_linux_rt_sigtramp_start): Likewise.
3042 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3043 * i386-tdep.c (i386_register_to_value): Likewise.
3044 * i387-tdep.c (i387_register_to_value): Likewise.
3045 * ia64-tdep.c (ia64_register_to_value): Likewise.
3046 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3047 (m32r_linux_rt_sigtramp_start): Likewise.
3048 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3049 * m68k-tdep.c (m68k_register_to_value): Likewise.
3050 * mips-tdep.c (mips_register_to_value)
3051 (mips_value_to_register): Likewise.
3052 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3053 (ppcfbsd_sigtramp_frame_cache): Likewise.
3054 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3055 (ppcobsd_sigtramp_frame_cache): Likewise.
3056 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3057 (rs6000_register_to_value): Likewise.
3058 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3059 * tramp-frame.c (tramp_frame_start): Likewise.
3060 * valops.c (value_assign): Likewise.
3062 2021-01-19 Luis Machado <luis.machado@linaro.org>
3064 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3066 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3067 instead of buffer and size.
3068 (trad_frame_set_reg_value_bytes): Likewise.
3069 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3070 (trad_frame_set_value_bytes): Likewise.
3072 2021-01-18 Mike Frysinger <vapier@gentoo.org>
3074 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3076 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3078 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3079 (riscv_fbsd_gregset): Use riscv_supply_regset.
3080 (riscv_fbsd_fpregset): Likewise.
3081 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3082 (riscv_linux_fregset): Likewise.
3083 * riscv-tdep.c (riscv_supply_regset): Define new function.
3084 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3086 2021-01-18 Tom de Vries <tdevries@suse.de>
3089 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3091 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3094 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3096 * remote.c (class remote_target) <remote_hostio_send_command,
3097 remote_hostio_parse_result>: Constify parameter.
3098 (remote_hostio_parse_result): Likewise.
3099 (remote_target::remote_hostio_send_command): Adjust.
3100 (remote_target::remote_hostio_pread_vFile): Adjust.
3101 (remote_target::fileio_readlink): Adjust.
3102 (remote_target::fileio_fstat): Adjust.
3104 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3106 * remote.c (remote_target::start_remote): Move wait_status to
3109 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3111 * remote.c (class remote_target):
3112 <add_current_inferior_and_thread>: Constify parameter.
3113 (stop_reply_extract_thread): Likewise.
3114 (remote_target::get_current_thread): Likewise.
3115 (remote_target::add_current_inferior_and_thread): Likewise.
3117 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3119 * remote.c (class remote_target)
3120 <remote_unpack_thread_info_response,
3121 parse_threadlist_response>: Constify parameter and/or return
3122 value and or local variable.
3123 (stub_unpack_int): Likewise.
3124 (unpack_nibble): Likewise.
3125 (unpack_byte): Likewise.
3126 (unpack_int): Likewise.
3127 (unpack_string): Likewise.
3128 (unpack_threadid): Likewise.
3129 (remote_target::remote_unpack_thread_info_response): Likewise.
3130 (remote_target::parse_threadlist_response): Likewise.
3132 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3134 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3136 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
3138 * MAINTAINERS (Write After Approval): Add myself.
3140 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3142 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3143 because is_trivially_default_constructible was first implemented with
3146 2021-01-14 Tom de Vries <tdevries@suse.de>
3148 PR breakpoints/27151
3149 * objfiles.h (in_plt_section): Handle .plt.sec.
3151 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3155 (remote_target::select_thread_for_ambiguous_stop_reply): New
3157 (remote_target::process_stop_reply): Call
3158 select_thread_for_ambiguous_stop_reply.
3160 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3162 * record-btrace.c (class record_btrace_target): Remove.
3163 (record_btrace_target::commit_resume): Remove.
3164 * record-full.c (class record_full_target): Remove.
3165 (record_full_target::commit_resume): Remove.
3167 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3169 * remote.c (enum class resume_state): New.
3170 (struct resumed_pending_vcont_info): New.
3171 (struct remote_thread_info) <resume_state, set_not_resumed,
3172 set_resumed_pending_vcont, resumed_pending_vcont_info,
3173 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3175 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3176 (remote_target::remote_add_thread): Adjust.
3177 (remote_target::process_initial_stop_replies): Adjust.
3178 (remote_target::resume): Adjust.
3179 (remote_target::commit_resume): Rely on state in
3180 remote_thread_info and not on tp->executing.
3181 (remote_target::process_stop_reply): Adjust.
3183 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3185 * arc-tdep.h (arc_debug_printf): New.
3186 * arc-tdep.c: Use arc_debug_printf.
3187 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3188 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3189 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3191 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3193 * arc-tdep.h (arc_debug): Change type to bool.
3194 * arc-tdep.c (arc_debug): Change type to bool.
3195 (arc_analyze_prologue): Adjust.
3196 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3197 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3199 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3201 * auto-load.c (auto_load_objfile_script_1): Use bool.
3202 (execute_script_contents): Use bool.
3204 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3206 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3208 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3210 * extension-priv.h (struct extension_language_script_ops)
3211 <auto_load_enabled>: Return bool.
3212 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3214 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3216 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3218 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3219 move comment to header.
3220 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3222 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3223 move comment to header.
3225 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3227 * auto-load.h (file_is_auto_load_safe): Change return type to
3228 bool, move comment here.
3229 * auto-load.c (file_is_auto_load_safe): Change return type and
3230 advice_printed to bool. Move comment to header.
3232 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3234 * jit.c (jit_debug_printf): New, use throughout file.
3236 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3238 * infrun.c (normal_stop): Fix indentation.
3240 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3242 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3244 * symfile.h: ... here.
3245 * symfile.c: Update doc.
3247 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3249 * target.h (baud_rate, serial_parity): Move declarations...
3250 * serial.h: ... here.
3251 * main.c: Include serial.h.
3252 * serial.c (baud_rate, serial_parity): Update doc.
3254 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3256 * top.c (pre_init_ui_hook): Remove.
3258 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3260 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3261 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3262 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3263 * features/aarch64-fpu.xml: Add bfloat16 type.
3265 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3267 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3269 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3271 * f-exp.y (dot_ops): Rename to...
3272 (fortran_operators): ...this. Add a header comment. Add symbol
3274 (yylex): Update to use fortran_operators not dot_ops. Remove
3275 special handling for '**', this is now included in
3278 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3280 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3281 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3282 * aarch64-tdep.c: Use aarch64_debug_printf.
3284 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3286 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3289 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3291 * jit.c (jit_debug): Change type to bool.
3292 (_initialize_jit): Adjust.
3294 2021-01-09 Tom Tromey <tom@tromey.com>
3297 * compile/compile.c (compile_to_object): Avoid crash when
3298 osabi_triplet_regexp returns NULL.
3300 2021-01-09 Tom Tromey <tom@tromey.com>
3302 * tracepoint.h (class collection_list) <append_exp>: Take a
3304 * tracepoint.c (collection_list::append_exp): Take a std::string.
3305 (encode_actions_1): Update.
3307 2021-01-08 Tom Tromey <tromey@adacore.com>
3309 * parse.c (parse_expression): Add void_context_p parameter. Use
3310 parse_exp_in_context.
3311 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3313 (print_command, call_command): Update.
3314 * expression.h (parse_expression): Add void_context_p parameter.
3316 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3318 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3319 for internalvar components that have a dynamic location.
3321 2021-01-08 Tom de Vries <tdevries@suse.de>
3324 * breakpoint.c (create_exception_master_breakpoint_probe)
3325 (create_exception_master_breakpoint_hook): Factor out
3327 (create_exception_master_breakpoint): ... here. Only try to install
3328 the master exception breakpoint in objfile.debug using the
3329 _Unwind_DebugHook method, if the install using probes in objfile
3332 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3334 * f-lang.c (fortran_value_subarray): Call value_from_component.
3336 2021-01-07 Mike Frysinger <vapier@gentoo.org>
3338 * remote-sim.c: Include memory-map.h.
3339 (gdbsim_target): Define memory_map override.
3340 (gdbsim_target::memory_map): Define.
3342 2021-01-07 Tom Tromey <tromey@adacore.com>
3344 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3346 2021-01-07 Tom Tromey <tromey@adacore.com>
3348 * ada-lang.c (add_component_interval): Start loop using vector's
3351 2021-01-06 Tom Tromey <tromey@adacore.com>
3353 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3355 * valarith.c (fixed_point_binop): Handle multiplication
3356 and division specially.
3357 * valops.c (value_to_gdb_mpq): New function.
3358 (value_cast_to_fixed_point): Use it.
3360 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3362 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3363 Call wnoutrefresh instead of tui_win_info::refresh_window.
3365 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3367 * tui/tui-source.c (tui_source_window::show_line_number):
3368 Redraw second space after line number.
3370 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3373 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3374 Fix source pad size in prefresh.
3375 (tui_source_window_base::show_source_content): Grow source pad
3378 2021-01-04 Mike Frysinger <vapier@gentoo.org>
3380 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3381 (bfin_frame_align): Use align_down.
3383 2021-01-04 Tom de Vries <tdevries@suse.de>
3385 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3386 terminators that do not terminate anything.
3388 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3390 * debug.c (debug_print_depth): New.
3391 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3392 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3393 * infrun.c (start_step_over): Use
3394 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3395 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3396 INFRUN_SCOPED_DEBUG_START_END.
3397 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3399 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3401 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3403 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3405 * utils.c (vfprintf_unfiltered): Print timestamp only when
3406 previous debug output ended with a newline.
3408 2021-01-04 Luis Machado <luis.machado@linaro.org>
3410 Update all users of trad_frame_saved_reg to use the new member
3413 Remote all struct keywords from declarations of trad_frame_saved_reg
3414 types, except on forward declarations.
3416 * aarch64-tdep.c: Update.
3417 * alpha-mdebug-tdep.c: Update.
3418 * alpha-tdep.c: Update.
3419 * arc-tdep.c: Update.
3420 * arm-tdep.c: Update.
3421 * avr-tdep.c: Update.
3422 * cris-tdep.c: Update.
3423 * csky-tdep.c: Update.
3424 * frv-tdep.c: Update.
3425 * hppa-linux-tdep.c: Update.
3426 * hppa-tdep.c: Update.
3427 * hppa-tdep.h: Update.
3428 * lm32-tdep.c: Update.
3429 * m32r-linux-tdep.c: Update.
3430 * m32r-tdep.c: Update.
3431 * m68hc11-tdep.c: Update.
3432 * mips-tdep.c: Update.
3433 * moxie-tdep.c: Update.
3434 * riscv-tdep.c: Update.
3435 * rs6000-tdep.c: Update.
3436 * s390-linux-tdep.c: Update.
3437 * s390-tdep.c: Update.
3438 * score-tdep.c: Update.
3439 * sparc-netbsd-tdep.c: Update.
3440 * sparc-sol2-tdep.c: Update.
3441 * sparc64-fbsd-tdep.c: Update.
3442 * sparc64-netbsd-tdep.c: Update.
3443 * sparc64-obsd-tdep.c: Update.
3444 * sparc64-sol2-tdep.c: Update.
3445 * tilegx-tdep.c: Update.
3446 * v850-tdep.c: Update.
3447 * vax-tdep.c: Update.
3449 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3450 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3452 * trad-frame.c: Update.
3453 Remove TF_REG_* enum.
3454 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3455 a trivially-constructible struct.
3456 (trad_frame_reset_saved_regs): Adjust to use member function.
3457 (trad_frame_value_p): Likewise.
3458 (trad_frame_addr_p): Likewise.
3459 (trad_frame_realreg_p): Likewise.
3460 (trad_frame_value_bytes_p): Likewise.
3461 (trad_frame_set_value): Likewise.
3462 (trad_frame_set_realreg): Likewise.
3463 (trad_frame_set_addr): Likewise.
3464 (trad_frame_set_unknown): Likewise.
3465 (trad_frame_set_value_bytes): Likewise.
3466 (trad_frame_get_prev_register): Likewise.
3467 * trad-frame.h: Update.
3468 (trad_frame_saved_reg_kind): New enum.
3469 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3470 <m_kind, m_reg>: New member fields.
3471 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3472 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3473 <is_addr, is_unknown, is_value_bytes>: New member functions.
3475 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3477 * target-float.c: Fix typos.
3479 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
3481 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3483 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3485 * gdbarch.sh: Update copyright year range.
3487 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3489 Update copyright year range in copyright header of all GDB files.
3491 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3493 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3494 to the list of directories to update.
3496 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3498 * top.c (print_gdb_version): Update copyright year.
3500 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3502 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
3504 For older changes see ChangeLog-2020.
3510 version-control: never