1 2021-03-14 Tom Tromey <tom@tromey.com>
3 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
6 2021-03-13 Tom Tromey <tom@tromey.com>
8 * dwarf2/read.c (struct partial_die_info): Update.
9 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
10 (load_partial_dies, partial_die_info::partial_die_info): Update.
11 * dwarf2/abbrev.h (lookup_abbrev): Constify.
13 2021-03-13 Tom Tromey <tom@tromey.com>
15 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
17 2021-03-12 Christian Biesinger <cbiesinger@google.com>
20 * cp-support.c: Use scoped_segv_handler_restore.
21 * event-top.c (thread_local_segv_handler): Made static.
22 (scoped_segv_handler_restore::scoped_segv_handler_restore):
24 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
26 * event-top.h (class scoped_segv_handler_restore): New class.
27 (thread_local_segv_handler): Removed.
29 2021-03-10 Tom Tromey <tromey@adacore.com>
31 * parser-defs.h (parser_state): Change completion to bool.
32 <parse_completion>: Likewise.
33 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
34 (ada_resolve_variable, ada_resolve_function): Update.
35 * ada-lang.c (ada_find_operator_symbol): Change
36 parse_completion to bool.
37 (ada_resolve_funcall, ada_resolve_variable)
38 (ada_resolve_function): Likewise.
40 2021-03-09 Tom Tromey <tromey@adacore.com>
42 * eval.c (operation::evaluate_funcall): Use function formal
43 parameter types when evaluating.
45 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
47 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
48 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
51 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
53 * f-exp.h (eval_op_f_loc): Declare.
54 (expr::fortran_loc_operation): New typedef.
55 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
57 (f77_keywords): Add LOC keyword.
58 * f-lang.c (eval_op_f_loc): New function.
59 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
61 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
63 * f-exp.h (eval_op_f_array_shape): Declare.
64 (fortran_array_shape_operation): New type.
65 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
67 (f77_keywords): Add "shape" keyword.
68 * f-lang.c (fortran_array_shape): New function.
69 (eval_op_f_array_shape): New function.
70 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
72 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
74 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
76 (expr::fortran_array_size_1arg): New type.
77 (expr::fortran_array_size_2arg): Likewise.
78 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
79 UNOP_OR_BINOP_INTRINSIC.
80 (f77_keywords): Add "size" keyword.
81 * f-lang.c (fortran_array_size): New function.
82 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
83 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
85 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
87 * f-exp.h (eval_op_f_rank): Declare.
88 (expr::fortran_rank_operation): New typedef.
89 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
91 (f77_keywords): Add "rank" keyword.
92 * f-lang.c (eval_op_f_rank): New function.
93 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
95 2021-03-08 Tom Tromey <tom@tromey.com>
97 * printcmd.c (set_command): Remove null check.
98 * value.c (init_if_undefined_command): Remove null check.
100 2021-03-08 Tom Tromey <tom@tromey.com>
102 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
104 * p-exp.y (variable): Update.
105 * go-exp.y (variable): Update.
106 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
107 Remove overload for objfile.
108 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
110 (check_objfile): Likewise.
111 (dump_for_expression): Likewise. Remove overload for objfile.
112 (class var_msym_value_operation): Use bound_minimal_symbol.
113 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
115 (var_msym_value_operation::evaluate_for_address)
116 (var_msym_value_operation::evaluate_for_sizeof)
117 (var_msym_value_operation::evaluate_for_cast): Update.
118 * d-exp.y (PrimaryExpression): Update.
119 * c-exp.y (variable): Update.
120 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
121 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
123 * ada-exp.y (write_var_or_type): Update.
125 2021-03-08 Tom Tromey <tom@tromey.com>
127 * parser-defs.h (exp_uses_objfile): Return bool.
128 * parse.c (exp_uses_objfile): Return bool.
130 2021-03-08 Tom Tromey <tom@tromey.com>
132 * value.h (eval_skip_value): Don't declare.
133 * opencl-lang.c (eval_opencl_assign): Update.
134 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
135 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
136 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
137 * expression.h (enum noside) <EVAL_SKIP>: Remove.
138 * expop.h (typeof_operation::evaluate)
139 (decltype_operation::evaluate, unop_addr_operation::evaluate)
140 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
141 (cxx_cast_operation::evaluate): Update.
142 * eval.c (eval_skip_value): Remove.
143 (eval_op_scope, eval_op_var_entry_value)
144 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
145 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
146 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
147 (eval_op_binary, eval_op_subscript, eval_op_equal)
148 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
149 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
150 (eval_op_complement, eval_op_lognot, eval_op_ind)
151 (eval_op_memval, eval_op_preinc, eval_op_predec)
152 (eval_op_postinc, eval_op_postdec, eval_op_type)
153 (eval_binop_assign_modify, eval_op_objc_msgcall)
154 (eval_multi_subscript, logical_and_operation::evaluate)
155 (logical_or_operation::evaluate, array_operation::evaluate)
156 (operation::evaluate_for_cast)
157 (var_msym_value_operation::evaluate_for_cast)
158 (var_value_operation::evaluate_for_cast): Update.
159 * c-lang.c (c_string_operation::evaluate): Update.
160 * c-exp.h (objc_nsstring_operation::evaluate)
161 (objc_selector_operation::evaluate): Update.
162 * ada-lang.c (ada_assign_operation::evaluate)
163 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
164 (ada_atr_size): Update.
166 2021-03-08 Tom Tromey <tom@tromey.com>
168 * eval.c: Merge "namespace" scopes.
170 2021-03-08 Tom Tromey <tom@tromey.com>
172 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
174 * parse.c (expr_builder::expr_builder, expr_builder::release):
177 2021-03-08 Tom Tromey <tom@tromey.com>
179 * parse.c (expression::expression, expression::~expression):
181 * expression.h (struct expression): Inline constructor. Remove
184 2021-03-08 Tom Tromey <tom@tromey.com>
186 * std-operator.def (BINOP_END): Remove.
187 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
188 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
189 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
190 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
191 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
194 2021-03-08 Tom Tromey <tom@tromey.com>
196 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
198 2021-03-08 Tom Tromey <tom@tromey.com>
200 * std-operator.def (OP_EXTENDED0): Remove.
202 2021-03-08 Tom Tromey <tom@tromey.com>
204 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
205 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
208 2021-03-08 Tom Tromey <tom@tromey.com>
210 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
211 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
213 2021-03-08 Tom Tromey <tom@tromey.com>
215 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
216 * ada-lang.c (ada_binop_minmax): Update.
217 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
218 Use BINOP_MIN and BINOP_MAX.
220 2021-03-08 Tom Tromey <tom@tromey.com>
222 * value.h (evaluate_subexp_with_coercion): Don't declare.
223 * parse.c (exp_descriptor_standard): Remove.
224 (expr_builder::expr_builder, expr_builder::release): Update.
225 (expression::expression): Remove size_t parameter.
226 (expression::~expression): Simplify.
227 (expression::resize): Remove.
228 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
229 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
230 (write_exp_elt_longcst, write_exp_elt_floatcst)
231 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
232 (write_exp_string_vector, write_exp_bitstring): Remove.
233 * p-lang.h (class pascal_language) <opcode_print_table,
234 op_print_tab>: Remove.
235 * p-lang.c (pascal_language::op_print_tab): Remove.
236 * opencl-lang.c (class opencl_language) <opcode_print_table>:
238 * objc-lang.c (objc_op_print_tab): Remove.
239 (class objc_language) <opcode_print_table>: Remove.
240 * m2-lang.h (class m2_language) <opcode_print_table,
241 op_print_tab>: Remove.
242 * m2-lang.c (m2_language::op_print_tab): Remove.
243 * language.h (struct language_defn) <post_parser, expression_ops,
244 opcode_print_table>: Remove.
245 * language.c (language_defn::expression_ops)
246 (auto_or_unknown_language::opcode_print_table): Remove.
247 * go-lang.h (class go_language) <opcode_print_table,
248 op_print_tab>: Remove.
249 * go-lang.c (go_language::op_print_tab): Remove.
250 * f-lang.h (class f_language) <opcode_print_table>: Remove
251 <op_print_tab>: Remove.
252 * f-lang.c (f_language::op_print_tab): Remove.
253 * expression.h (union exp_element): Remove.
254 (struct expression): Remove size_t parameter from constructor.
256 <first_opcode>: Update.
257 <nelts, elts>: Remove.
258 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
259 (evaluate_subexp_standard, print_expression, op_string)
260 (dump_raw_expression): Don't declare.
261 * expprint.c (print_expression, print_subexp)
262 (print_subexp_funcall, print_subexp_standard, op_string)
263 (dump_raw_expression, dump_subexp, dump_subexp_body)
264 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
265 (dump_prefix_expression): Update.
266 * eval.c (evaluate_subexp): Remove.
267 (evaluate_expression, evaluate_type): Update.
268 (evaluate_subexpression_type): Remove.
269 (fetch_subexp_value): Remove "pc" parameter. Update.
270 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
271 (evaluate_subexp_standard, evaluate_subexp_for_address)
272 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
273 (evaluate_subexp_for_cast): Remove.
274 (parse_and_eval_type): Update.
275 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
276 * d-lang.c (d_op_print_tab): Remove.
277 (class d_language) <opcode_print_table>: Remove.
278 * c-lang.h (c_op_print_tab): Don't declare.
279 * c-lang.c (c_op_print_tab): Remove.
280 (class c_language, class cplus_language, class asm_language, class
281 minimal_language) <opcode_print_table>: Remove.
282 * breakpoint.c (update_watchpoint, watchpoint_check)
283 (watchpoint_exp_is_const, watch_command_1): Update.
284 * ax-gdb.h (union exp_element): Don't declare.
285 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
286 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
287 (gen_expr_binop_rest): Remove.
288 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
289 * ada-lang.c (ada_op_print_tab): Remove.
290 (class ada_language) <post_parser, opcode_print_table>: Remove.
292 2021-03-08 Tom Tromey <tom@tromey.com>
294 * go-lang.c (go_language::expression_ops): Don't declare.
295 * go-lang.h (class go_language) <expression_ops>: Remove.
296 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
298 (class opencl_language) <expression_ops>: Remove.
299 * d-lang.c (class d_language) <expression_ops>: Remove.
300 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
301 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
302 (class c_language, class cplus_language, class asm_language)
303 (class minimal_language) <expression_ops>: Remove.
305 2021-03-08 Tom Tromey <tom@tromey.com>
307 * ada-lang.c (resolve_subexp, replace_operator_with_call)
308 (evaluate_subexp_type, assign_aggregate)
309 (aggregate_assign_positional, aggregate_assign_from_choices)
310 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
311 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
312 (ada_operator_check, ada_forward_operator_length)
313 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
315 (post_parser): Update.
316 (class ada_language) <expresssion_ops>: Remove.
318 2021-03-08 Tom Tromey <tom@tromey.com>
320 * m2-lang.h (class m2_language) <expresssion_ops,
321 exp_descriptor_modula2>: Remove.
322 * m2-lang.c (evaluate_subexp_modula2)
323 (m2_language::exp_descriptor_modula2): Remove.
325 2021-03-08 Tom Tromey <tom@tromey.com>
327 * f-lang.h (class f_language) <expresssion_ops>: Remove.
328 <exp_descriptor_tab>: Remove.
329 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
330 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
331 (print_subexp_f, dump_subexp_body_f, operator_check_f)
332 (f_language::exp_descriptor_tab, fortran_prepare_argument):
335 2021-03-08 Tom Tromey <tom@tromey.com>
337 * rust-lang.h (class rust_language) <expression_ops,
338 exp_descriptor_tab>: Remove.
339 * rust-lang.c (rust_evaluate_funcall): Remove.
340 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
342 (rust_evaluate_subexp): Remove.
343 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
344 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
345 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
347 2021-03-08 Tom Tromey <tom@tromey.com>
349 * ada-exp.y: Create operations.
350 (empty_stoken): Remove.
351 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
352 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
353 (components): New global.
354 (push_component, choice_component, pop_component, pop_components):
356 (associations): New global
357 (push_association, pop_association, pop_associations): New
360 (write_var_from_sym, write_int): Create operations.
361 (write_exp_op_with_string): Remove.
362 (write_object_renaming, write_selectors, write_ambiguous_var)
363 (write_var_or_type, write_name_assoc): Create operations.
364 * ada-lang.h (ada_index_type): Declare.
365 * ada-lang.c (ada_index_type): No longer static.
367 2021-03-08 Tom Tromey <tom@tromey.com>
369 * f-exp.y: Create operations.
370 (f_language::parser): Update.
372 2021-03-08 Tom Tromey <tom@tromey.com>
374 * m2-exp.y: Create operations.
375 (m2_language::parser): Update.
377 2021-03-08 Tom Tromey <tom@tromey.com>
379 * p-exp.y: Create operations.
380 (pascal_language::parser): Update.
382 2021-03-08 Tom Tromey <tom@tromey.com>
384 * d-exp.y: Create operations.
387 2021-03-08 Tom Tromey <tom@tromey.com>
389 * go-exp.y: Create operations.
390 (go_language::parser): Update.
392 2021-03-08 Tom Tromey <tom@tromey.com>
394 * objc-lang.c (end_msglist): Create operations.
395 * c-exp.y: Change parser to create operations.
396 (write_destructor_name): Remove.
399 2021-03-08 Tom Tromey <tom@tromey.com>
401 * rust-exp.y: Create operations.
402 (rust_parser::convert_params_to_expression): Change return type.
403 (binop_maker_ftype): New typedef.
404 (maker_map): New global.
405 (rust_parser::convert_ast_to_expression): Change return type.
406 (rust_language::parser): Update.
407 (_initialize_rust_exp): Initialize maker_map.
409 2021-03-08 Tom Tromey <tom@tromey.com>
411 * stap-probe.c (binop_maker_ftype): New typedef.
412 (stap_maker_map): New global.
413 (stap_make_binop): New function.
414 (stap_parse_register_operand): Return operation_up.
415 (stap_parse_single_operand, stap_parse_argument_conditionally)
416 (stap_parse_argument_1): Likewise.
417 (stap_parse_argument): Create operations.
418 (stap_probe::parse_arguments): Update.
419 (_initialize_stap_probe): Initialize stap_maker_map.
420 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
422 * i386-tdep.h (i386_stap_parse_special_token): Change return
424 * i386-tdep.c (i386_stap_parse_special_token_triplet)
425 (i386_stap_parse_special_token_three_arg_disp)
426 (i386_stap_parse_special_token): Change return type.
427 * gdbarch.sh (stap_parse_special_token): Change return type.
428 * gdbarch.c: Rebuild.
429 * gdbarch.h: Rebuild.
430 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
432 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
435 2021-03-08 Tom Tromey <tom@tromey.com>
437 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
438 * gdbarch.h: Rebuild.
439 * gdbarch.c: Rebuild.
440 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
441 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
443 (amd64_dtrace_parse_probe_argument): Update.
445 2021-03-08 Tom Tromey <tom@tromey.com>
447 * parser-defs.h (struct parser_state) <push, push_new,
448 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
450 <m_operations>: New member.
451 * parse.c (parser_state::push_c_string)
452 (parser_state::push_symbol, parser_state::push_dollar): New
455 2021-03-08 Tom Tromey <tom@tromey.com>
457 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
459 (struct parser_state) <mark_struct_expression>: New method.
460 * parse.c (parser_state::mark_struct_expression): Update assert.
461 (parser_state::mark_struct_expression): New method.
462 (parser_state::mark_completion_tag): Update assert.
463 (parse_expression_for_completion): Handle expout_last_op.
465 2021-03-08 Tom Tromey <tom@tromey.com>
467 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
469 * value.h (fetch_subexp_value): Add "op" parameter.
470 * value.c (init_if_undefined_command): Update.
471 * tracepoint.c (validate_actionline, encode_actions_1): Update.
472 * stap-probe.c (stap_probe::compile_to_ax): Update.
473 * printcmd.c (set_command): Update.
474 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
476 * parser-defs.h (struct expr_builder) <set_operation>: New
478 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
479 * expression.h (struct expression) <first_opcode>: Update.
481 * expprint.c (dump_raw_expression, dump_prefix_expression):
483 * expop.h (class var_value_operation) <get_symbol>: New method.
484 (class register_operation) <get_name>: New method.
485 (class equal_operation): No longer a typedef, now a subclass.
486 (class unop_memval_operation) <get_type>: New method.
487 (class assign_operation) <get_lhs>: New method.
488 (class unop_cast_operation) <get_type>: New method.
489 * eval.c (evaluate_expression, evaluate_type)
490 (evaluate_subexpression_type): Update.
491 (fetch_subexp_value): Add "op" parameter.
492 (parse_and_eval_type): Update.
493 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
494 * breakpoint.c (update_watchpoint, watchpoint_check)
495 (watchpoint_exp_is_const, watch_command_1): Update.
496 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
499 2021-03-08 Tom Tromey <tom@tromey.com>
501 * ada-lang.c (ada_value_binop): Do not use op_string.
503 2021-03-08 Tom Tromey <tom@tromey.com>
505 * expprint.c (dump_for_expression): New overload.
506 * expop.h (check_objfile, dump_for_expression): Declare new
508 * ada-lang.c (check_objfile): New overload.
509 (assign_component, ada_aggregate_component::uses_objfile)
510 (ada_aggregate_component::dump, ada_aggregate_component::assign)
511 (ada_aggregate_component::assign_aggregate)
512 (ada_positional_component::uses_objfile)
513 (ada_positional_component::dump, ada_positional_component::assign)
514 (ada_discrete_range_association::uses_objfile)
515 (ada_discrete_range_association::dump)
516 (ada_discrete_range_association::assign)
517 (ada_name_association::uses_objfile, ada_name_association::dump)
518 (ada_name_association::assign)
519 (ada_choices_component::uses_objfile, ada_choices_component::dump)
520 (ada_choices_component::assign)
521 (ada_others_component::uses_objfile, ada_others_component::dump)
522 (ada_others_component::assign, ada_assign_operation::evaluate):
524 * ada-exp.h (ada_string_operation) <get_name>: New method.
525 (class ada_assign_operation): New.
526 (class ada_component): New.
527 (ada_component_up): New typedef.
528 (class ada_aggregate_operation, class ada_aggregate_component)
529 (class ada_positional_component, class ada_others_component)
530 (class ada_association): New.
531 (ada_association_up): New typedef.
532 (class ada_choices_component)
533 (class ada_discrete_range_association)
534 (class ada_name_association): New.
536 2021-03-08 Tom Tromey <tom@tromey.com>
538 * ada-lang.c (ada_var_value_operation::resolve)
539 (ada_funcall_operation::resolve)
540 (ada_ternop_slice_operation::resolve): New methods.
541 * ada-exp.h (struct ada_resolvable): New.
542 (class ada_var_value_operation): Derive from ada_resolvable.
543 <get_block, resolve>: New methods.
544 (class ada_funcall_operation): Derive from ada_resolvable.
545 <resolve>: New method.
546 (class ada_ternop_slice_operation): Derive from ada_resolvable.
547 <resolve>: New method.
549 2021-03-08 Tom Tromey <tom@tromey.com>
551 * ada-lang.c (ada_funcall_operation::evaluate): New method.
552 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
554 (class ada_funcall_operation): New.
556 2021-03-08 Tom Tromey <tom@tromey.com>
558 * ada-lang.c (ada_structop_operation::evaluate): New method.
559 * ada-exp.h (class ada_structop_operation): New.
561 2021-03-08 Tom Tromey <tom@tromey.com>
563 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
564 * ada-exp.h (class ada_unop_ind_operation): New.
566 2021-03-08 Tom Tromey <tom@tromey.com>
568 * ada-lang.c (ada_binop_exp): No longer static.
569 * ada-exp.h (ada_binop_exp_operation): New typedef.
571 2021-03-08 Tom Tromey <tom@tromey.com>
573 * ada-lang.c (ada_val_atr): No longer static.
574 (ada_atr_val_operation::evaluate): New method.
575 * ada-exp.h (class ada_atr_val_operation): New.
577 2021-03-08 Tom Tromey <tom@tromey.com>
579 * ada-lang.c (ada_pos_atr): No longer static.
580 * ada-exp.h (ada_pos_operation): New typedef.
582 2021-03-08 Tom Tromey <tom@tromey.com>
584 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
586 (ada_evaluate_subexp): Use it.
588 2021-03-08 Tom Tromey <tom@tromey.com>
590 * ada-lang.c (ada_binop_minmax): No longer static.
591 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
594 2021-03-08 Tom Tromey <tom@tromey.com>
596 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
598 * ada-exp.h (class ada_var_msym_value_operation): New.
600 2021-03-08 Tom Tromey <tom@tromey.com>
602 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
603 (ada_var_value_operation::evaluate): New methods.
604 * ada-exp.h (class ada_var_value_operation): New.
606 2021-03-08 Tom Tromey <tom@tromey.com>
608 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
609 * ada-exp.h (class ada_unop_atr_operation): New.
611 2021-03-08 Tom Tromey <tom@tromey.com>
613 * ada-lang.c (ada_binop_in_bounds): No longer static.
614 * ada-exp.h (class ada_binop_in_bounds_operation): New.
616 2021-03-08 Tom Tromey <tom@tromey.com>
618 * ada-lang.c (ada_ternop_slice): No longer static.
619 * ada-exp.h (class ada_ternop_slice_operation): New.
621 2021-03-08 Tom Tromey <tom@tromey.com>
623 * ada-exp.h (ada_bitwise_operation): New template class.
624 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
625 (ada_bitwise_xor_operation): New typedefs.
627 2021-03-08 Tom Tromey <tom@tromey.com>
629 * ada-lang.c (ada_equal_binop): No longer static.
630 * ada-exp.h (class ada_binop_equal_operation): New.
632 2021-03-08 Tom Tromey <tom@tromey.com>
634 * ada-lang.c (ada_mult_binop): No longer static.
635 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
636 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
638 2021-03-08 Tom Tromey <tom@tromey.com>
640 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
641 * ada-exp.h (class ada_binop_addsub_operation): New.
643 2021-03-08 Tom Tromey <tom@tromey.com>
645 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
646 (ada_resolve_variable): Declare.
647 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
648 (ada_resolve_variable): New functions.
649 (resolve_subexp): Update.
651 2021-03-08 Tom Tromey <tom@tromey.com>
653 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
655 * c-exp.h (class opencl_ternop_cond_operation): New.
657 2021-03-08 Tom Tromey <tom@tromey.com>
659 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
661 * c-exp.h (class opencl_logical_binop_operation): New.
663 2021-03-08 Tom Tromey <tom@tromey.com>
665 * opencl-lang.c (opencl_structop_operation::evaluate): New
667 * c-exp.h (class opencl_structop_operation): New.
669 2021-03-08 Tom Tromey <tom@tromey.com>
671 * opencl-lang.c (opencl_logical_not): No longer static. Change
673 (evaluate_subexp_opencl): Update.
674 * c-exp.h (opencl_notequal_operation): New typedef.
676 2021-03-08 Tom Tromey <tom@tromey.com>
678 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
679 static. Change parameters.
680 (eval_opencl_assign): No longer static. Add "op" parameter.
681 (evaluate_subexp_opencl): Update.
682 * c-exp.h (opencl_binop_operation): New template class.
683 (opencl_assign_operation, opencl_equal_operation)
684 (opencl_notequal_operation, opencl_less_operation)
685 (opencl_gtr_operation, opencl_geq_operation)
686 (opencl_leq_operation): New typedefs.
688 2021-03-08 Tom Tromey <tom@tromey.com>
690 * opencl-lang.c (opencl_value_cast): No longer static.
691 * c-exp.h (opencl_cast_type_operation): New typedef.
693 2021-03-08 Tom Tromey <tom@tromey.com>
695 * f-exp.h (eval_op_f_allocated): Declare.
696 (fortran_allocated_operation): New typedef.
697 * f-lang.c (eval_op_f_allocated): No longer static.
699 2021-03-08 Tom Tromey <tom@tromey.com>
701 * f-lang.c (eval_op_f_associated): New functions.
702 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
705 2021-03-08 Tom Tromey <tom@tromey.com>
707 * f-lang.c (fortran_bound_1arg::evaluate)
708 (fortran_bound_2arg::evaluate): New methods.
709 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
712 2021-03-08 Tom Tromey <tom@tromey.com>
714 * expop.h (class unop_addr_operation) <get_expression>: New
716 * f-lang.c (fortran_undetermined::value_subarray)
717 (fortran_undetermined::evaluate): New methods.
718 (fortran_prepare_argument): New overload.
719 * f-exp.h (class fortran_range_operation)
720 (class fortran_undetermined): New classes.
722 2021-03-08 Tom Tromey <tom@tromey.com>
724 * rust-lang.c (rust_structop::evaluate_funcall): New method.
725 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
728 2021-03-08 Tom Tromey <tom@tromey.com>
730 * expression.h (class operation) <evaluate_funcall>: New methods.
731 * expop.h (class scope_operation) <evaluate_funcall>: New method.
732 (class var_value_operation) <evaluate_funcall>: New method.
733 (class structop_base_operation) <evaluate_funcall>: New method.
734 (class var_msym_value_operation) <evaluate_funcall>: New method.
735 (class structop_member_base): New class.
736 (class structop_member_operation): Derive from
737 structop_member_base.
738 (class structop_mptr_operation): Derive from
739 structop_member_base.
740 (class funcall_operation): New class.
741 * eval.c (operation::evaluate_funcall)
742 (var_value_operation::evaluate_funcall)
743 (scope_operation::evaluate_funcall)
744 (structop_member_base::evaluate_funcall)
745 (structop_base_operation::evaluate_funcall): New methods.
747 2021-03-08 Tom Tromey <tom@tromey.com>
749 * expop.h (class array_operation): New.
750 * eval.c (array_operation::evaluate_struct_tuple)
751 (array_operation::evaluate): New methods.
753 2021-03-08 Tom Tromey <tom@tromey.com>
755 * expop.h (class adl_func_operation): New.
756 * eval.c (adl_func_operation::evaluate): New method.
758 2021-03-08 Tom Tromey <tom@tromey.com>
760 * ada-lang.c (ada_unop_in_range): No longer static.
761 * ada-exp.h (class ada_unop_range_operation): New.
763 2021-03-08 Tom Tromey <tom@tromey.com>
765 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
767 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
768 (ada_atr_size_operation, ada_abs_operation): New typedefs.
770 2021-03-08 Tom Tromey <tom@tromey.com>
772 * expop.h (class logical_and_operation)
773 (class logical_or_operation): New.
774 * eval.c (logical_and_operation::evaluate)
775 (logical_or_operation::evaluate): New methods.
776 * ax-gdb.c (logical_and_operation::do_generate_ax)
777 (logical_or_operation::do_generate_ax): New methods.
779 2021-03-08 Tom Tromey <tom@tromey.com>
781 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
783 * m2-exp.h: New file.
785 2021-03-08 Tom Tromey <tom@tromey.com>
787 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
788 * rust-exp.h (class rust_aggregate_operation): New.
790 2021-03-08 Tom Tromey <tom@tromey.com>
792 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
794 * rust-exp.h (class rust_struct_anon): New.
795 (class rust_structop): New.
797 2021-03-08 Tom Tromey <tom@tromey.com>
799 * rust-lang.c (rust_range): No longer static.
800 * rust-exp.h (class rust_range_operation): New.
802 2021-03-08 Tom Tromey <tom@tromey.com>
804 * rust-lang.c (rust_subscript): No longer static.
805 * rust-exp.h (class rust_subscript_operation): New.
807 2021-03-08 Tom Tromey <tom@tromey.com>
809 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
811 (rust_evaluate_subexp): Update.
812 * rust-exp.h (class rust_unop_ind_operation): New.
814 2021-03-08 Tom Tromey <tom@tromey.com>
816 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
817 longer static. Add "opcode" parameter.
818 (rust_evaluate_subexp): Update.
819 * rust-exp.h: New file.
821 2021-03-08 Tom Tromey <tom@tromey.com>
823 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
824 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
825 (eval_op_f_kind): No longer static. Add "opcode" parameter.
826 (evaluate_subexp_f): Update.
829 2021-03-08 Tom Tromey <tom@tromey.com>
831 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
832 * ada-exp.h (class ada_ternop_range_operation): New.
834 2021-03-08 Tom Tromey <tom@tromey.com>
836 * ada-lang.c (ada_qual_operation::evaluate): New method.
837 * ada-exp.h (class ada_qual_operation): New.
839 2021-03-08 Tom Tromey <tom@tromey.com>
841 * ada-lang.c (ada_string_operation::evaluate): New method.
842 * ada-exp.h (class ada_string_operation): New.
844 2021-03-08 Tom Tromey <tom@tromey.com>
846 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
847 * ada-exp.h: New file.
849 2021-03-08 Tom Tromey <tom@tromey.com>
851 * expop.h (class multi_subscript_operation): New.
852 * eval.c (multi_subscript_operation::evaluate): New method.
854 2021-03-08 Tom Tromey <tom@tromey.com>
856 * eval.c (objc_msgcall_operation::evaluate): New method.
857 * c-exp.h (class objc_msgcall_operation): New.
859 2021-03-08 Tom Tromey <tom@tromey.com>
861 * expop.h (class var_value_operation): New.
862 * eval.c (var_value_operation::evaluate)
863 (var_value_operation::evaluate_for_address)
864 (var_value_operation::evaluate_with_coercion)
865 (var_value_operation::evaluate_for_sizeof)
866 (var_value_operation::evaluate_for_cast): New methods.
867 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
869 2021-03-08 Tom Tromey <tom@tromey.com>
871 * expop.h (cxx_cast_ftype): New typedef.
872 (cxx_cast_operation): New template.
873 (dynamic_cast_operation, reinterpret_cast_operation): New
876 2021-03-08 Tom Tromey <tom@tromey.com>
878 * expop.h (class unop_cast_type_operation): New.
879 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
882 2021-03-08 Tom Tromey <tom@tromey.com>
884 * expop.h (class unop_cast_operation): New.
885 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
887 2021-03-08 Tom Tromey <tom@tromey.com>
889 * expop.h (class assign_modify_operation): New.
890 * eval.c (eval_binop_assign_modify): No longer static.
891 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
893 2021-03-08 Tom Tromey <tom@tromey.com>
895 * expop.h (class assign_operation): New.
896 * ax-gdb.c (assign_operation::do_generate_ax): New method.
898 2021-03-08 Tom Tromey <tom@tromey.com>
900 * expop.h (class type_instance_operation): New.
901 * eval.c (type_instance_operation::evaluate): New method.
903 2021-03-08 Tom Tromey <tom@tromey.com>
905 * expop.h (class op_this_operation): New.
906 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
908 2021-03-08 Tom Tromey <tom@tromey.com>
910 * expop.h (class unop_memval_operation)
911 (class unop_memval_type_operation): New.
912 * eval.c (eval_op_memval): No longer static.
913 (unop_memval_operation::evaluate_for_address)
914 (unop_memval_type_operation::evaluate_for_address)
915 (unop_memval_operation::evaluate_for_sizeof)
916 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
917 * ax-gdb.c (unop_memval_operation::do_generate_ax)
918 (unop_memval_type_operation::do_generate_ax): New methods.
920 2021-03-08 Tom Tromey <tom@tromey.com>
922 * expop.h (class unop_alignof_operation): New.
923 * eval.c (eval_op_alignof): No longer static.
925 2021-03-08 Tom Tromey <tom@tromey.com>
927 * expop.h (class unop_sizeof_operation): New.
928 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
930 2021-03-08 Tom Tromey <tom@tromey.com>
932 * expop.h (class unop_addr_operation): New.
933 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
935 2021-03-08 Tom Tromey <tom@tromey.com>
937 * expop.h (class typeid_operation): New.
939 2021-03-08 Tom Tromey <tom@tromey.com>
941 * expop.h (class decltype_operation): New.
943 2021-03-08 Tom Tromey <tom@tromey.com>
945 * expop.h (class typeof_operation): New.
947 2021-03-08 Tom Tromey <tom@tromey.com>
949 * expop.h (class type_operation): New.
950 * eval.c (eval_op_type): No longer static.
952 2021-03-08 Tom Tromey <tom@tromey.com>
954 * expop.h (class unop_ind_base_operation)
955 (class unop_ind_operation): New.
956 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
957 (unop_ind_base_operation::evaluate_for_address)
958 (unop_ind_base_operation::evaluate_for_sizeof): New method.
959 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
961 2021-03-08 Tom Tromey <tom@tromey.com>
963 * expop.h (unop_incr_operation): New template.
964 (preinc_operation, predec_operation, postinc_operation)
965 (postdec_operation): New typedefs.
966 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
967 (eval_op_postdec): No longer static.
969 2021-03-08 Tom Tromey <tom@tromey.com>
971 * expop.h (unary_ftype): New typedef.
972 (unop_operation, usual_ax_binop_operation): New templates.
973 (unary_plus_operation, unary_neg_operation)
974 (unary_complement_operation, unary_logical_not_operation): New
976 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
977 (eval_op_lognot): No longer static.
978 * ax-gdb.c (gen_expr_unop): New function.
980 2021-03-08 Tom Tromey <tom@tromey.com>
982 * ax-gdb.c (comma_operation::do_generate_ax): New method.
984 2021-03-08 Tom Tromey <tom@tromey.com>
986 * expop.h (class repeat_operation): New.
987 * eval.c (eval_op_repeat): No longer static. Remove "op"
989 (evaluate_subexp_standard): Update.
990 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
992 2021-03-08 Tom Tromey <tom@tromey.com>
994 * expop.h (class comparison_operation): New.
995 (equal_operation, notequal_operation, less_operation)
996 (gtr_operation, geq_operation, leq_operation): New typedefs.
997 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
998 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1000 2021-03-08 Tom Tromey <tom@tromey.com>
1002 * expop.h (class subscript_operation): New.
1003 * eval.c (eval_op_subscript): No longer static.
1005 2021-03-08 Tom Tromey <tom@tromey.com>
1007 * expop.h (class binop_operation, class usual_ax_binop_operation):
1009 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1010 (div_operation, rem_operation, lsh_operation, rsh_operation)
1011 (bitwise_and_operation, bitwise_ior_operation)
1012 (bitwise_xor_operation): New typedefs.
1013 * eval.c (eval_op_binary): No longer static.
1015 2021-03-08 Tom Tromey <tom@tromey.com>
1017 * expop.h (class sub_operation): New.
1018 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1019 (evaluate_subexp_standard): Update.
1021 2021-03-08 Tom Tromey <tom@tromey.com>
1023 * expop.h (class add_operation): New.
1024 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1025 (evaluate_subexp_standard): Update.
1027 2021-03-08 Tom Tromey <tom@tromey.com>
1029 * expop.h (class concat_operation): New.
1030 * eval.c (eval_op_concat): No longer static. Remove "op"
1032 (evaluate_subexp_standard): Update.
1034 2021-03-08 Tom Tromey <tom@tromey.com>
1036 * expop.h (class structop_member_operation)
1037 (class structop_mptr_operation): New.
1038 * eval.c (eval_op_member): No longer static.
1040 2021-03-08 Tom Tromey <tom@tromey.com>
1042 * expop.h (class structop_ptr_operation): New.
1043 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1046 2021-03-08 Tom Tromey <tom@tromey.com>
1048 * expop.h (class structop_base_operation)
1049 (class structop_operation): New.
1050 * eval.c (eval_op_structop_struct): No longer static.
1052 2021-03-08 Tom Tromey <tom@tromey.com>
1054 * expop.h (class complex_operation): New.
1056 2021-03-08 Tom Tromey <tom@tromey.com>
1058 * eval.c (eval_op_objc_selector): No longer static.
1059 * c-exp.h (class objc_selector_operation): New.
1061 2021-03-08 Tom Tromey <tom@tromey.com>
1063 * eval.c: Include c-exp.h.
1064 * c-exp.h (class objc_nsstring_operation): New.
1066 2021-03-08 Tom Tromey <tom@tromey.com>
1068 * c-lang.c (c_string_operation::evaluate): New method.
1069 * c-exp.h: New file.
1071 2021-03-08 Tom Tromey <tom@tromey.com>
1073 * expop.h (class ternop_cond_operation): New.
1074 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1076 2021-03-08 Tom Tromey <tom@tromey.com>
1078 * expop.h (class ternop_slice_operation): New.
1079 * eval.c (eval_op_ternop): No longer static.
1081 2021-03-08 Tom Tromey <tom@tromey.com>
1083 * expop.h (class string_operation): New.
1084 * eval.c (eval_op_string): No longer static.
1086 2021-03-08 Tom Tromey <tom@tromey.com>
1088 * expop.h (class internalvar_operation): New.
1089 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1091 2021-03-08 Tom Tromey <tom@tromey.com>
1093 * expop.h (class bool_operation): New.
1095 2021-03-08 Tom Tromey <tom@tromey.com>
1097 * expop.h (class register_operation): New.
1098 * eval.c (eval_op_register): No longer static.
1099 * ax-gdb.c (register_operation::do_generate_ax): New method.
1101 2021-03-08 Tom Tromey <tom@tromey.com>
1103 * expop.h (class last_operation): New.
1105 2021-03-08 Tom Tromey <tom@tromey.com>
1107 * expop.h (class func_static_var_operation): New.
1108 * eval.c (eval_op_func_static_var): No longer static.
1110 2021-03-08 Tom Tromey <tom@tromey.com>
1112 * expop.h (class var_entry_value_operation): New.
1113 * eval.c (eval_op_var_entry_value): No longer static.
1115 2021-03-08 Tom Tromey <tom@tromey.com>
1117 * expression.h (class operation) <set_outermost>: New method.
1118 * expop.h (class var_msym_value_operation): New.
1119 * eval.c (eval_op_var_msym_value): No longer static.
1120 (var_msym_value_operation::evaluate_for_address)
1121 (var_msym_value_operation::evaluate_for_sizeof)
1122 (var_msym_value_operation::evaluate_for_cast): New methods.
1123 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1126 2021-03-08 Tom Tromey <tom@tromey.com>
1128 * expop.h (class long_const_operation): New.
1129 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1131 2021-03-08 Tom Tromey <tom@tromey.com>
1133 * expop.h (class scope_operation): New.
1134 * eval.c (eval_op_scope): No longer static.
1135 (scope_operation::evaluate_for_address): New method.
1136 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1138 2021-03-08 Tom Tromey <tom@tromey.com>
1140 * expprint.c (float_const_operation::dump): New method.
1141 * expop.h (float_data): New typedef.
1142 (class float_const_operation): New.
1144 2021-03-08 Tom Tromey <tom@tromey.com>
1146 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1147 * ax-gdb.c (gen_expr_binop): New function.
1148 (gen_expr_structop): Likewise.
1150 2021-03-08 Tom Tromey <tom@tromey.com>
1152 * expprint.c (expr::dump_for_expression): New functions.
1153 * expop.h (dump_for_expression): New overloads.
1154 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1157 2021-03-08 Tom Tromey <tom@tromey.com>
1159 * expression.h (expr::operation): New class.
1160 (expr::make_operation): New function.
1161 (expr::operation_up): New typedef.
1162 * expop.h: New file.
1163 * eval.c (operation::evaluate_for_cast)
1164 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1166 * ax-gdb.c (operation::generate_ax): New method.
1168 2021-03-08 Tom Tromey <tom@tromey.com>
1170 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1171 (gen_expr_binop_rest): New overload.
1173 2021-03-08 Tom Tromey <tom@tromey.com>
1175 * eval.c (eval_multi_subscript): New function.
1176 (evaluate_subexp_standard): Use it.
1178 2021-03-08 Tom Tromey <tom@tromey.com>
1180 * ada-lang.c (ada_binop_exp): New function.
1181 (ada_evaluate_subexp): Use it.
1183 2021-03-08 Tom Tromey <tom@tromey.com>
1185 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1187 (ada_evaluate_subexp): Use it.
1189 2021-03-08 Tom Tromey <tom@tromey.com>
1191 * ada-lang.c (ada_binop_minmax): New function.
1192 (ada_evaluate_subexp): Use it.
1194 2021-03-08 Tom Tromey <tom@tromey.com>
1196 * ada-lang.c (ada_unop_atr): New function.
1197 (ada_evaluate_subexp): Use it.
1199 2021-03-08 Tom Tromey <tom@tromey.com>
1201 * ada-lang.c (ada_binop_in_bounds): New function.
1202 (ada_evaluate_subexp): Use it.
1204 2021-03-08 Tom Tromey <tom@tromey.com>
1206 * ada-lang.c (ada_ternop_slice): New function.
1207 (ada_evaluate_subexp): Use it.
1209 2021-03-08 Tom Tromey <tom@tromey.com>
1211 * ada-lang.c (ada_equal_binop): New function.
1212 (ada_evaluate_subexp): Use it.
1214 2021-03-08 Tom Tromey <tom@tromey.com>
1216 * ada-lang.c (ada_mult_binop): New function.
1217 (ada_evaluate_subexp): Use it.
1219 2021-03-08 Tom Tromey <tom@tromey.com>
1221 * ada-lang.c (ada_abs): New function.
1222 (ada_evaluate_subexp): Use it.
1224 2021-03-08 Tom Tromey <tom@tromey.com>
1226 * ada-lang.c (ada_atr_size): New function.
1227 (ada_evaluate_subexp): Use it.
1229 2021-03-08 Tom Tromey <tom@tromey.com>
1231 * ada-lang.c (ada_atr_tag): New function.
1232 (ada_evaluate_subexp): Use it.
1234 2021-03-08 Tom Tromey <tom@tromey.com>
1236 * ada-lang.c (ada_unop_in_range): New function.
1237 (ada_evaluate_subexp): Use it.
1239 2021-03-08 Tom Tromey <tom@tromey.com>
1241 * ada-lang.c (ada_unop_neg): New function.
1242 (ada_evaluate_subexp): Use it.
1244 2021-03-08 Tom Tromey <tom@tromey.com>
1246 * ada-lang.c (eval_ternop_in_range): New function.
1247 (ada_evaluate_subexp): Use it.
1249 2021-03-08 Tom Tromey <tom@tromey.com>
1251 * opencl-lang.c (eval_opencl_assign): New function.
1252 (evaluate_subexp_opencl): Use it.
1254 2021-03-08 Tom Tromey <tom@tromey.com>
1256 * eval.c (eval_op_objc_msgcall): New function.
1257 (evaluate_subexp_standard): Use it.
1259 2021-03-08 Tom Tromey <tom@tromey.com>
1261 * eval.c (eval_binop_assign_modify): New function.
1262 (evaluate_subexp_standard): Use it.
1264 2021-03-08 Tom Tromey <tom@tromey.com>
1266 * m2-lang.c (eval_op_m2_subscript): New function.
1267 (evaluate_subexp_modula2): Use it.
1269 2021-03-08 Tom Tromey <tom@tromey.com>
1271 * m2-lang.c (eval_op_m2_high): New function.
1272 (evaluate_subexp_modula2): Use it.
1274 2021-03-08 Tom Tromey <tom@tromey.com>
1276 * eval.c (evaluate_subexp_for_address_base): New function.
1277 (evaluate_subexp_for_address): Use it.
1278 (evaluate_subexp_for_sizeof_base): New function.
1279 (evaluate_subexp_for_sizeof): Use it.
1281 2021-03-08 Tom Tromey <tom@tromey.com>
1283 * rust-lang.c (eval_op_rust_structop): New function.
1284 (rust_evaluate_subexp): Use it.
1286 2021-03-08 Tom Tromey <tom@tromey.com>
1288 * rust-lang.c (eval_op_rust_struct_anon): New function.
1289 (rust_evaluate_subexp): Use it.
1291 2021-03-08 Tom Tromey <tom@tromey.com>
1293 * rust-lang.c (eval_op_rust_array): New function.
1294 (rust_evaluate_subexp): Use it.
1296 2021-03-08 Tom Tromey <tom@tromey.com>
1298 * rust-lang.c (eval_op_rust_complement): New function.
1299 (rust_evaluate_subexp): Use it.
1301 2021-03-08 Tom Tromey <tom@tromey.com>
1303 * rust-lang.c (eval_op_rust_ind): New function.
1304 (rust_evaluate_subexp): Use it.
1306 2021-03-08 Tom Tromey <tom@tromey.com>
1308 * rust-lang.c (rust_subscript): Change parameters.
1309 (rust_evaluate_subexp): Update.
1311 2021-03-08 Tom Tromey <tom@tromey.com>
1313 * rust-lang.c (rust_range): Change parameters.
1314 (rust_evaluate_subexp): Update.
1316 2021-03-08 Tom Tromey <tom@tromey.com>
1318 * f-lang.c (eval_op_f_allocated): New function.
1319 (evaluate_subexp_f): Use it.
1321 2021-03-08 Tom Tromey <tom@tromey.com>
1323 * f-lang.c (fortran_require_array): New function.
1324 (evaluate_subexp_f): Use it.
1326 2021-03-08 Tom Tromey <tom@tromey.com>
1328 * f-lang.c (eval_op_f_kind): New function.
1329 (evaluate_subexp_f): Use it.
1331 2021-03-08 Tom Tromey <tom@tromey.com>
1333 * f-lang.c (eval_op_f_cmplx): New function.
1334 (evaluate_subexp_f): Use it.
1336 2021-03-08 Tom Tromey <tom@tromey.com>
1338 * f-lang.c (eval_op_f_modulo): New function.
1339 (evaluate_subexp_f): Use it.
1341 2021-03-08 Tom Tromey <tom@tromey.com>
1343 * f-lang.c (eval_op_f_floor): New function.
1344 (evaluate_subexp_f): Use it.
1346 2021-03-08 Tom Tromey <tom@tromey.com>
1348 * f-lang.c (eval_op_f_ceil): New function.
1349 (evaluate_subexp_f): Use it.
1351 2021-03-08 Tom Tromey <tom@tromey.com>
1353 * f-lang.c (eval_op_f_mod): New function.
1354 (evaluate_subexp_f): Use it.
1356 2021-03-08 Tom Tromey <tom@tromey.com>
1358 * f-lang.c (eval_op_f_abs): New function.
1359 (evaluate_subexp_f): Use it.
1361 2021-03-08 Tom Tromey <tom@tromey.com>
1363 * eval.c (eval_op_type): New function.
1364 (evaluate_subexp_standard): Use it.
1366 2021-03-08 Tom Tromey <tom@tromey.com>
1368 * eval.c (eval_op_postdec): New function.
1369 (evaluate_subexp_standard): Use it.
1371 2021-03-08 Tom Tromey <tom@tromey.com>
1373 * eval.c (eval_op_postinc): New function.
1374 (evaluate_subexp_standard): Use it.
1376 2021-03-08 Tom Tromey <tom@tromey.com>
1378 * eval.c (eval_op_predec): New file.
1379 (evaluate_subexp_standard): Use it.
1381 2021-03-08 Tom Tromey <tom@tromey.com>
1383 * eval.c (eval_op_preinc): New function.
1384 (evaluate_subexp_standard): Use it.
1386 2021-03-08 Tom Tromey <tom@tromey.com>
1388 * eval.c (eval_op_memval): New function.
1389 (evaluate_subexp_standard): Use it.
1391 2021-03-08 Tom Tromey <tom@tromey.com>
1393 * eval.c (eval_op_alignof): New function.
1394 (evaluate_subexp_standard): Use it.
1396 2021-03-08 Tom Tromey <tom@tromey.com>
1398 * eval.c (eval_op_ind): New function.
1399 (evaluate_subexp_standard): Use it.
1401 2021-03-08 Tom Tromey <tom@tromey.com>
1403 * eval.c (eval_op_lognot): New function.
1404 (evaluate_subexp_standard): Use it.
1406 2021-03-08 Tom Tromey <tom@tromey.com>
1408 * eval.c (eval_op_complement): New function.
1409 (evaluate_subexp_standard): Use it.
1411 2021-03-08 Tom Tromey <tom@tromey.com>
1413 * eval.c (eval_op_neg): New function.
1414 (evaluate_subexp_standard): Use it.
1416 2021-03-08 Tom Tromey <tom@tromey.com>
1418 * eval.c (eval_op_plus): New function.
1419 (evaluate_subexp_standard): Use it.
1421 2021-03-08 Tom Tromey <tom@tromey.com>
1423 * eval.c (eval_op_repeat): New function.
1424 (evaluate_subexp_standard): Use it.
1426 2021-03-08 Tom Tromey <tom@tromey.com>
1428 * eval.c (eval_op_leq): New function.
1429 (evaluate_subexp_standard): Use it.
1431 2021-03-08 Tom Tromey <tom@tromey.com>
1433 * eval.c (eval_op_geq): New function.
1434 (evaluate_subexp_standard): Use it.
1436 2021-03-08 Tom Tromey <tom@tromey.com>
1438 * eval.c (eval_op_gtr): New function.
1439 (evaluate_subexp_standard): Use it.
1441 2021-03-08 Tom Tromey <tom@tromey.com>
1443 * eval.c (eval_op_less): New function.
1444 (evaluate_subexp_standard): Use it.
1446 2021-03-08 Tom Tromey <tom@tromey.com>
1448 * eval.c (eval_op_notequal): New function.
1449 (evaluate_subexp_standard): Use it.
1451 2021-03-08 Tom Tromey <tom@tromey.com>
1453 * eval.c (eval_op_equal): New function.
1454 (evaluate_subexp_standard): Use it.
1456 2021-03-08 Tom Tromey <tom@tromey.com>
1458 * eval.c (eval_op_subscript): New function.
1459 (evaluate_subexp_standard): Use it.
1461 2021-03-08 Tom Tromey <tom@tromey.com>
1463 * eval.c (eval_op_binary): New function.
1464 (evaluate_subexp_standard): Use it.
1466 2021-03-08 Tom Tromey <tom@tromey.com>
1468 * eval.c (eval_op_sub): New function.
1469 (evaluate_subexp_standard): Use it.
1471 2021-03-08 Tom Tromey <tom@tromey.com>
1473 * eval.c (eval_op_add): New function.
1474 (evaluate_subexp_standard): Use it.
1476 2021-03-08 Tom Tromey <tom@tromey.com>
1478 * eval.c (eval_op_member): New function.
1479 (evaluate_subexp_standard): Use it.
1481 2021-03-08 Tom Tromey <tom@tromey.com>
1483 * eval.c (eval_op_structop_ptr): New function.
1484 (evaluate_subexp_standard): Use it.
1486 2021-03-08 Tom Tromey <tom@tromey.com>
1488 * eval.c (eval_op_structop_struct): New function.
1489 (evaluate_subexp_standard): Use it.
1491 2021-03-08 Tom Tromey <tom@tromey.com>
1493 * eval.c (eval_op_ternop): New function.
1494 (evaluate_subexp_standard): Use it.
1496 2021-03-08 Tom Tromey <tom@tromey.com>
1498 * eval.c (eval_op_concat): New function.
1499 (evaluate_subexp_standard): Use it.
1501 2021-03-08 Tom Tromey <tom@tromey.com>
1503 * eval.c (eval_op_objc_selector): New function.
1504 (evaluate_subexp_standard): Use it.
1506 2021-03-08 Tom Tromey <tom@tromey.com>
1508 * eval.c (eval_op_string): New function.
1509 (evaluate_subexp_standard): Use it.
1511 2021-03-08 Tom Tromey <tom@tromey.com>
1513 * eval.c (eval_op_register): New function.
1514 (evaluate_subexp_standard): Use it.
1516 2021-03-08 Tom Tromey <tom@tromey.com>
1518 * eval.c (eval_op_func_static_var): New function.
1519 (evaluate_subexp_standard): Use it.
1521 2021-03-08 Tom Tromey <tom@tromey.com>
1523 * eval.c (eval_op_var_msym_value): New function.
1524 (evaluate_subexp_standard): Use it.
1526 2021-03-08 Tom Tromey <tom@tromey.com>
1528 * eval.c (eval_op_var_entry_value): New function.
1529 (evaluate_subexp_standard): Use it.
1531 2021-03-08 Tom Tromey <tom@tromey.com>
1533 * eval.c (eval_op_scope): New function.
1534 (evaluate_subexp_standard): Use it.
1536 2021-03-06 Chernov Sergey <klen_s@mail.ru>
1539 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1541 2021-03-06 Tom Tromey <tom@tromey.com>
1543 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1544 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1545 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1546 (locate_dwz_sections, dwz_search_other_debugdirs)
1547 (dwarf2_get_dwz_file): Move to dwz.c.
1548 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1550 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1551 (dwarf2_get_dwz_file): Move from read.c.
1553 2021-03-06 Tom Tromey <tom@tromey.com>
1555 * debuginfod-support.h: Include scoped_fd.h.
1557 2021-03-06 Tom Tromey <tom@tromey.com>
1559 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1560 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1561 (get_abbrev_section_for_cu, read_attribute_value)
1562 (get_debug_line_section): Update.
1563 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1565 2021-03-06 Tom Tromey <tom@tromey.com>
1567 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1569 * dwarf2/read.c (section_is_p): Remove.
1570 (dwarf2_per_bfd::locate_sections)
1571 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1572 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1573 (dwarf2_locate_common_dwp_sections)
1574 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1577 2021-03-06 Tom Tromey <tom@tromey.com>
1579 * xcoffread.c: Include sect-names.h.
1580 * symfile.h (struct dwarf2_section_names, struct
1581 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1582 * dwarf2/sect-names.h: New file, from symfile.h.
1583 * dwarf2/read.c: Include sect-names.h.
1585 2021-03-06 Tom Tromey <tom@tromey.com>
1587 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1588 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1589 (abbrev_table::read): Update.
1590 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1591 (struct abbrev_info): Reformat.
1592 <attrs>: Now an array.
1593 (struct abbrev_table) <alloc_abbrev>: Remove.
1595 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1597 * ctfread.c (ctf_psymtab_add_enums): New function.
1598 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1600 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1602 * ctfread.c (read_func_kind_type): Set up function arguments.
1604 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1605 Andrew Burgess <andrew.burgess@embecosm.com>
1607 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1609 (riscv_csrset): New static global.
1610 (riscv_update_csrmap): New function.
1611 (riscv_iterate_over_regset_sections): Process CSRs.
1613 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1615 * riscv-tdep.c (riscv_feature_name_csr): Define.
1616 (riscv_feature_name_cpu): Define.
1617 (riscv_feature_name_fpu): Define.
1618 (riscv_feature_name_virtual): Define.
1619 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1620 (riscv_freg_feature): Use riscv_feature_name_fpu.
1621 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1622 (riscv_csr_feature): Use riscv_feature_name_csr.
1623 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1625 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1626 Craig Blackmore <craig.blackmore@embecosm.com>
1628 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1629 (ALLDEPFILES): Add riscv-none-tdep.c.
1630 * configure: Regenerate.
1631 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1633 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1634 * elf-none-tdep.c: New file.
1635 * elf-none-tdep.h: New file.
1636 * riscv-none-tdep.c: New file.
1638 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1639 Andrew Burgess <andrew.burgess@embecosm.com>
1641 * corelow.c: Add 'xml-tdesc.h' include.
1642 (core_target::read_description): Load the target description from
1643 the core file when possible.
1644 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1646 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1647 (gcore_elf_make_tdesc_note): New function.
1648 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1649 * linux-tdep.c (linux_make_corefile_notes): Add target description
1652 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1654 * Makefile.in (SFILES): Add gcore-elf.c.
1655 (HFILES_NO_SRCDIR): Add gcore-elf.h
1656 * configure: Regenerate.
1657 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1659 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1660 (struct fbsd_collect_regset_section_cb_data): Delete.
1661 (fbsd_collect_regset_section_cb): Delete.
1662 (fbsd_collect_thread_registers): Delete.
1663 (struct fbsd_corefile_thread_data): Delete.
1664 (fbsd_corefile_thread): Delete.
1665 (fbsd_make_corefile_notes): Call
1666 gcore_elf_build_thread_register_notes instead of the now deleted
1668 * gcore-elf.c: New file, the content was moved here from
1669 linux-tdep.c, functions were renamed and given minor cleanup.
1670 * gcore-elf.h: New file.
1671 * gcore.c (gcore_find_signalled_thread): Moved here from
1672 linux-tdep.c and given a new name. Minor cleanups.
1673 * gcore.h (gcore_find_signalled_thread): Declare.
1674 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1675 (struct linux_collect_regset_section_cb_data): Delete.
1676 (linux_collect_regset_section_cb): Delete.
1677 (linux_collect_thread_registers): Delete.
1678 (linux_corefile_thread): Call
1679 gcore_elf_build_thread_register_notes.
1680 (find_signalled_thread): Delete.
1681 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1683 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1686 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1687 process_stratum_target parameter,
1688 sparc_store_inferior_registers): update callers.
1689 * sparc-nat.c (sparc_fetch_inferior_registers,
1690 sparc_store_inferior_registers): Add process_stratum_target
1691 parameter. Switch current thread before calling
1692 sparc_supply_gregset / sparc_collect_rwindow.
1693 (sparc_store_inferior_registers): Likewise.
1694 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1695 (sparc32obsd_collect_uthread): Likewise.
1696 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1698 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1699 sparc64obsd_supply_uthread): Add assertion.
1701 2021-03-04 Tom Tromey <tromey@adacore.com>
1703 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1704 (aux_add_nonlocal_symbols): Update.
1705 (ada_add_block_symbols): Change "found_sym" to bool.
1707 2021-03-03 Tom Tromey <tromey@adacore.com>
1709 * ada-lang.c (ada_resolve_function): Update comment.
1710 (is_nonfunction, add_symbols_from_enclosing_procs)
1711 (remove_extra_symbols): Likewise.
1712 (struct match_data): Add constructor, initializers.
1713 (add_nonlocal_symbols): Remove memset.
1714 (aux_add_nonlocal_symbols): Update comment.
1715 (ada_add_block_renamings, add_nonlocal_symbols)
1716 (ada_add_all_symbols): Likewise.
1717 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1719 2021-03-02 Tom Tromey <tromey@adacore.com>
1721 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1722 (cast_to_gnat_encoded_fixed_point_type): Remove.
1723 (ada_value_cast, ada_evaluate_subexp): Update.
1724 (gnat_encoded_fixed_point_type_info)
1725 (ada_is_gnat_encoded_fixed_point_type)
1726 (gnat_encoded_fixed_point_delta)
1727 (gnat_encoded_fixed_point_scaling_factor): Remove.
1728 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1729 (gnat_encoded_fixed_point_delta)
1730 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1731 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1732 (ada_print_type): Update.
1733 * ada-valprint.c (ada_value_print_num): Update.
1734 * dwarf2/read.c (ada_get_gnat_encoded_number)
1735 (ada_get_gnat_encoded_ratio): New functions.
1736 (finish_fixed_point_type): Use them. Add parameters.
1737 (GNAT_FIXED_POINT_SUFFIX): New define.
1738 (gnat_encoded_fixed_point_type_info): New function.
1739 (read_base_type): Handle gnat encodings.
1741 2021-03-02 Tom Tromey <tromey@adacore.com>
1743 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1744 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1746 (GROW_VECT): Remove.
1747 (grow_vect): Remove.
1749 2021-03-02 Tom Tromey <tromey@adacore.com>
1751 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1752 * ada-lang.c (resolve_subexp): Update.
1753 (ada_resolve_function): Accept a vector.
1754 (is_nonfunction, add_defn_to_vec)
1755 (add_symbols_from_enclosing_procs): Likewise.
1756 (num_defns_collected, defns_collected): Remove.
1757 (remove_extra_symbols): Return a vector.
1758 (remove_irrelevant_renamings): Return void.
1759 (ada_add_local_symbols): Accept a vector.
1760 (struct match_data) <obstackp>: Remove.
1761 <resultp>: New member.
1762 (aux_add_nonlocal_symbols): Update.
1763 (ada_add_block_renamings, add_nonlocal_symbols)
1764 (ada_add_all_symbols): Accept a vector.
1765 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1767 (ada_lookup_symbol): Update.
1768 (ada_add_block_symbols): Accept a vector.
1769 (get_var_value, iterate_over_symbols): Update.
1770 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1773 2021-03-02 Tom Tromey <tromey@adacore.com>
1775 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1777 2021-03-02 Tom Tromey <tromey@adacore.com>
1779 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1782 (ada_pspace_data): Remove destructor.
1783 <sym_cache>: Now a unique_ptr.
1784 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1785 (ada_get_symbol_cache): Use 'new'.
1786 (ada_clear_symbol_cache): Rewrite.
1788 2021-03-02 Tom Tromey <tromey@adacore.com>
1790 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1793 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
1796 * source.c (add_path): Skip empty dirnames.
1798 2021-02-25 Kevin Buettner <kevinb@redhat.com>
1800 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1801 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1803 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1806 * target.c (target_mourn_inferior): Only compare pids in
1807 target_mourn_inferior.
1809 2021-02-25 Jan Matyas <jmatyas@codasip.com>
1812 * remote.c (remote_target::start_remote): Ensure the single
1813 thread, automatically added for remote targets without the
1814 concept of threading, is initially in set to the "resumed"
1816 * remote.c (remote_target::add_current_inferior_and_thread):
1817 Add return value - return the main thread.
1819 2021-02-25 Jan Vrany <jan.vrany@labware.com>
1821 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1822 (mi_tsv_created): Likewise.
1823 (mi_tsv_deleted): Likewise.
1825 2021-02-25 Tom de Vries <tdevries@suse.de>
1828 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1829 section_kind for &dwo_file->sections.info.
1831 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1834 * f-lang.c (fortran_argument_convert): Delete declaration.
1835 (fortran_prepare_argument): New function.
1836 (evaluate_subexp_f): Move logic to new function
1837 fortran_prepare_argument.
1839 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1841 * f-exp.y (f77_keywords): Add 'associated'.
1842 * f-lang.c (fortran_associated): New function.
1843 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1844 (operator_length_f): Likewise.
1845 (print_unop_or_binop_subexp_f): New function.
1846 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1847 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1848 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1849 (operator_check_f): Likewise.
1850 * std-operator.def: Add FORTRAN_ASSOCIATED.
1852 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1854 * f-exp.y (fortran_operators): Add ".xor.".
1856 2021-02-24 Tom de Vries <tdevries@suse.de>
1859 * dwarf2/attribute.c (attribute::form_is_signed): New function
1861 * dwarf2/attribute.h (attribute::as_signed): ... here.
1862 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1863 (attribute::form_is_signed): Declare.
1864 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1865 for DW_AT_decl_file.
1867 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1869 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1870 order for <sys/ptrace.h> and <asm/ptrace.h>.
1872 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1874 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1877 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1879 * exec.c (set_section_command): Move variable declarations into
1880 the function body, and use std::string instead of a fixed size
1883 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1885 * exec.c (exec_target::get_section_table): Delete member function.
1886 (section_table_read_available_memory): Use current_top_target, not
1887 just the exec_ops target.
1888 * target-delegates.c: Regenerate.
1889 * target.c (default_get_section_table): New function.
1890 * target.h (target_ops::get_section_table): Change default
1891 behaviour to call default_get_section_table.
1892 (default_get_section_table): Declare.
1894 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1896 * exec.c (exec_target::close): Call new clear_target_sections
1898 (program_space::add_target_sections): Update name of member
1900 (program_space::add_target_sections): Update name of member
1902 (program_space::remove_target_sections): Likewise.
1903 (exec_one_fork): Use new target_sections member function.
1904 (exec_target::get_section_table): Likewise.
1905 (exec_target::files_info): Likewise.
1906 (set_section_command): Likewise.
1907 (exec_set_section_address): Likewise.
1908 (exec_target::has_memory): Use new target_sections member
1910 * progspace.h (program_space::clear_target_sections): New member
1912 (program_space::target_sections): Rename member variable to
1913 m_target_sections, replace with a new member function.
1914 (program_space::m_target_sections): New member variable.
1915 * solib-dsbt.c (scan_dyntag): Use new member function.
1916 * solib-svr4.c (scan_dyntag): Likewise.
1918 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1920 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1922 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1923 (section_table_read_available_memory): Make local const.
1924 (exec_target::xfer_partial): Make local const.
1925 (print_section_info): Make parameter const.
1926 * gdb/exec.h (print_section_info): Likewise.
1927 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1929 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1931 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1933 * gdb/s390-tdep.c (s390_load): Likewise.
1934 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1935 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1936 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1938 (target_debug_print_const_target_section_table_p): ...this.
1939 * gdb/target-delegates.c: Regenerate.
1940 * gdb/target.c (target_get_section_table): Make return type const.
1941 (target_section_by_addr): Likewise. Also make some locals const.
1942 (memory_xfer_partial_1): Make some locals const.
1943 * gdb/target.h (struct target_ops) <get_section_table>: Make
1945 (target_section_by_addr): Likewise.
1946 (target_get_section_table): Likewise.
1948 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1950 * NEWS: Mention new 'maint info target-sections' command.
1951 * maint.c (maintenance_info_target_sections): New function.
1952 (_initialize_maint_cmds): Register new command.
1954 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1956 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1957 (riscv_features_from_bfd): ...this. Change parameter type to
1958 'bfd*', and update as required.
1959 (riscv_find_default_target_description): Update call to
1960 riscv_features_from_bfd. Select a default xlen based on
1962 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1964 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1966 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1967 dynamic types in UNOP_IND.
1969 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1972 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1974 (~dwarf2_queue_guard): Clear queue.
1975 (queue_comp_unit): Assert that queue is
1977 (process_queue): Adjust.
1978 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1980 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1983 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1984 to decide whether or not to enqueue it for expansion.
1985 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1986 after calling maybe_queue_comp_unit.
1988 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1990 * linux-nat.c (linux_nat_filter_event): Return void.
1992 2021-02-22 Tom Tromey <tromey@adacore.com>
1994 * solib-svr4.c (enable_break): Update.
1995 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1997 (target_bfd_reopen): Change parameter type.
1998 * bfd-target.h (target_bfd_reopen): Change parameter type.
2000 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2002 * thread.c (add_thread_silent): Add assert.
2003 (find_thread_ptid): Add assert.
2005 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2008 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2009 (target_unpush_up): Likewise.
2010 * procfs.c (procfs_target::attach): Push target early. Use
2011 target_unpush_up to unpush target in case of error.
2012 * target.h (struct target_unpusher): Move here.
2013 (target_unpush_up): Likewise.
2015 2021-02-19 Kevin Buettner <kevinb@redhat.com>
2017 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2018 (which in turn includes <gnulib/config.h>) before include
2021 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
2024 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2025 (decode_j_type_insn): Likewise.
2026 (decode_cj_type_insn): Likewise.
2027 (decode_b_type_insn): Likewise.
2030 2021-02-18 Tom Tromey <tom@tromey.com>
2032 * expression.h (struct expression) <evaluate>: Declare method.
2033 * eval.c (evaluate_subexp): Simplify.
2034 (expression::evaluate): New method.
2035 (evaluate_expression, evaluate_type): Use expression::evaluate.
2037 2021-02-17 Kevin Buettner <kevinb@redhat.com>
2039 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2041 (ada_lookup_name_info): Likewise.
2043 2021-02-13 Mike Frysinger <vapier@gentoo.org>
2045 * aclocal.m4: Regenerate.
2047 2021-02-12 Tom de Vries <tdevries@suse.de>
2050 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2051 (lin_thread_signals): New static var.
2052 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2054 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2055 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2057 * linux-thread-db.c (check_thread_signals): Use
2058 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2060 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2062 * f-exp.y (f77_keywords): Add allocated.
2063 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2064 (operator_length_f): Likewise.
2065 (print_subexp_f): Likewise.
2066 (dump_subexp_body_f): Likewise.
2067 (operator_check_f): Likewise.
2068 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2070 2021-02-11 Tom de Vries <tdevries@suse.de>
2073 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2074 Return true for DW_FORM_strx.
2076 2021-02-11 Tom Tromey <tromey@adacore.com>
2079 * parse.c (write_exp_symbol_reference): Write sym.block.
2081 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2083 * NEWS: Mention changes to 'maint info sections'.
2084 * maint.c (match_substring): Return a bool, fix whitespace issue.
2085 (struct single_bfd_flag_info): New struct.
2086 (bfd_flag_info): New static global.
2087 (match_bfd_flags): Return a bool, use bfd_flag_info.
2088 (print_bfd_flags): Use bfd_flag_info.
2089 (maint_print_section_info): Delete trailing whitespace.
2090 (struct maint_info_sections_opts): New struct.
2091 (maint_info_sections_option_defs): New static global.
2092 (maint_info_sections_completer): New function.
2093 (maintenance_info_sections): Use option parsing mechanism.
2094 (_initialize_maint_cmds): Update command help text for 'maint info
2095 sections' and register a command completer.
2097 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2099 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2100 functionality merged into...
2101 (maint_print_all_sections): ...this new function.
2102 (maintenance_info_sections): Make use of maint_print_all_sections,
2103 allow all objects to be printed even where there's no executable.
2105 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2107 * breakpoint.c (resolve_sal_pc): Make use of
2108 bound_minimal_symbol::obj_section.
2109 * maint.c (maintenance_translate_address): Likewise.
2110 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2111 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2113 * printcmd.c (info_address_command): Make use of
2114 bound_minimal_symbol::obj_section.
2116 2021-02-11 Alan Modra <amodra@gmail.com>
2118 * arm-symbian-tdep.c: Delete.
2119 * NEWS: Mention arm-symbian removal.
2120 * Makefile.in: Remove arm-symbian-tdep entries.
2121 * configure.tgt: Remove arm*-*-symbianelf*.
2122 * doc/gdb.texinfo: Remove mention of SymbianOS.
2123 * osabi.c (gdb_osabi_names): Remove "Symbian".
2124 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2125 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2126 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2128 * testsuite/gdb.base/dup-sect.exp: Likewise.
2129 * testsuite/gdb.base/long_long.exp: Likewise.
2130 * testsuite/gdb.base/solib-weak.exp: Likewise.
2131 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2132 * testsuite/gdb.python/py-section-script.exp: Likewise.
2133 * testsuite/lib/dwarf.exp: Likewise.
2134 * testsuite/lib/gdb.exp: Likewise.
2136 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2138 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2139 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2140 (one_or_two_args): New pattern.
2141 (f77_keywords): Add lbound and ubound.
2142 * f-lang.c (fortran_bounds_all_dims): New function.
2143 (fortran_bounds_for_dimension): New function.
2144 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2145 (operator_length_f): Likewise.
2146 (print_subexp_f): Likewise.
2147 (dump_subexp_body_f): Likewise.
2148 (operator_check_f): Likewise.
2149 * std-operator.def (FORTRAN_LBOUND): Define.
2150 (FORTRAN_UBOUND): Define.
2152 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2154 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2155 and set_section_index member functions where appropriate.
2156 * coffread.c (coff_symtab_read): Likewise.
2157 (process_coff_symbol): Likewise.
2158 * ctfread.c (set_symbol_address): Likewise.
2159 * dwarf2/read.c (add_partial_symbol): Likewise.
2160 (var_decode_location): Likewise.
2161 * language.c: Likewise.
2162 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2163 (compact_minimal_symbols): Likewise.
2164 (minimal_symbol_upper_bound): Likewise.
2165 * objfiles.c (relocate_one_symbol): Likewise.
2166 * psympriv.h (partial_symbol::obj_section): Likewise.
2167 (partial_symbol::address): Likewise.
2168 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2169 * stabsread.c (scan_file_globals): Likewise.
2170 * symmisc.c (dump_msymbols): Likewise.
2171 * symtab.c (general_symbol_info::obj_section): Likewise.
2172 (fixup_section): Likewise.
2173 (get_msymbol_address): Likewise.
2174 * symtab.h (general_symbol_info::section): Rename to...
2175 (general_symbol_info::m_section): ...this.
2176 (general_symbol_info::set_section_index): New member function.
2177 (general_symbol_info::section_index): Likewise.
2178 (SYMBOL_SECTION): Delete.
2179 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2180 set_section_index member functions where appropriate.
2181 (MSYMBOL_SECTION): Delete.
2182 (symbol::symbol): Update to initialize 'm_section'.
2183 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2184 (process_xcoff_symbol): Likewise.
2186 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2188 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2189 MSYMBOL_OBJ_SECTION.
2190 * findvar.c (language_defn::read_var_value): Likewise.
2191 * infcmd.c (jump_command): Likewise.
2192 * linespec.c (minsym_found): Likewise.
2193 * maint.c (maintenance_translate_address): Likewise.
2194 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2195 (minimal_symbol_upper_bound): Likewise.
2196 * parse.c (find_minsym_type_and_address): Likewise.
2197 (operator_check_standard): Likewise.
2198 * printcmd.c (info_address_command): Likewise.
2199 * symmisc.c (dump_msymbols): Likewise.
2200 (print_symbol): Likewise.
2201 * symtab.c (general_symbol_info::obj_section): Define new
2203 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2204 (find_pc_sect_compunit_symtab): Likewise.
2205 (find_function_start_sal): Likewise.
2206 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2207 MSYMBOL_OBJ_SECTION.
2208 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2210 (SYMBOL_OBJ_SECTION): Delete.
2211 (MSYMBOL_OBJ_SECTION): Delete.
2213 2021-02-09 Tom Tromey <tom@tromey.com>
2215 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2217 2021-02-09 Tom de Vries <tdevries@suse.de>
2220 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2221 construct an array type. Add assert to ensure that element_type is
2224 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2226 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2227 (gcore_collect_regset_section_cb): Delete.
2228 (gcore_collect_thread_registers): Delete.
2229 (gcore_build_thread_register_notes): Delete.
2230 (gcore_find_signalled_thread): Delete.
2231 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2232 'gdbarch' and 'thread_info' declarations.
2233 (gcore_build_thread_register_notes): Delete declaration.
2234 (gcore_find_signalled_thread): Likewise.
2235 * fbsd-tdep.c: Remove 'gcore.h' include.
2236 (struct fbsd_collect_regset_section_cb_data): New struct.
2237 (fbsd_collect_regset_section_cb): New function.
2238 (fbsd_collect_thread_registers): New function.
2239 (struct fbsd_corefile_thread_data): New struct.
2240 (fbsd_corefile_thread): New function.
2241 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2242 * linux-tdep.c: Remove 'gcore.h' include.
2243 (struct linux_collect_regset_section_cb_data): New struct.
2244 (linux_collect_regset_section_cb): New function.
2245 (linux_collect_thread_registers): New function.
2246 (linux_corefile_thread): Call Linux specific code.
2247 (find_signalled_thread): New function.
2248 (linux_make_corefile_notes): Call find_signalled_thread.
2250 2021-02-09 Tom Tromey <tromey@adacore.com>
2252 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2254 * value.c (value_contents_copy_raw): Now static.
2255 * value.h (value_contents_copy_raw): Don't declare.
2257 2021-02-09 Tom Tromey <tromey@adacore.com>
2259 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2262 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
2265 * arc-linux-tdep.c (handle_atomic_sequence): New.
2266 (arc_linux_software_single_step): Call handle_atomic_sequence().
2268 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2270 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2272 (REQUIRE_WINDOW): Call is_valid member function.
2273 (REQUIRE_WINDOW_FOR_SETTER): New define.
2274 (gdbpy_tui_is_valid): Call is_valid member function.
2275 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2276 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2278 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2279 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2282 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2284 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2285 for the title is not nullptr.
2287 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2289 * tui-layout.c (saved_tui_windows): Delete.
2290 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2291 call new get_windows member function instead.
2292 (tui_get_window_by_name): Check in tui_windows.
2293 (tui_layout_window::apply): Don't add to tui_windows.
2294 * tui-layout.h (tui_layout_base::get_windows): New member function.
2295 (tui_layout_window::get_windows): Likewise.
2296 (tui_layout_split::get_windows): Likewise.
2298 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2300 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2301 of the window objects.
2303 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2305 * python/python.c (gdbpy_print_stack): Reformat an error message.
2307 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2309 * tui/tui-interp.c (tui_command_line_handler): New function.
2310 (tui_interp::resume): Register tui_command_line_handler as the
2312 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2314 (tui_getc_1): Delete handling of '\n' and '\r'.
2315 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2317 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2319 * tui/tui-regs.c (tui_data_window::display_registers_from):
2320 Mark invisible register sub windows.
2321 (tui_data_window::check_register_values): Ignore invisible
2322 register sub windows.
2324 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2326 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2327 n_spaces with a negative value.
2329 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2331 * tui/tui-regs.c (tui_data_window::display_registers_from):
2332 Add refresh_window call.
2334 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2336 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2338 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2340 * symmisc.c (std_in, std_out, std_err): Remove.
2341 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2343 2021-02-05 Tom de Vries <tdevries@suse.de>
2345 PR breakpoints/27330
2346 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2347 glibc object file has debug info.
2349 2021-02-05 Tom de Vries <tdevries@suse.de>
2352 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2354 2021-02-05 Tom de Vries <tdevries@suse.de>
2356 PR breakpoints/27313
2357 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2360 2021-02-05 Tom Tromey <tom@tromey.com>
2362 * compile/compile-c-support.c (get_compile_context)
2363 (c_get_compile_context, cplus_get_compile_context): Change return
2365 * language.c (language_defn::get_compile_instance): New method.
2366 * language.h (language_defn::get_compile_instance): Change return
2367 type. No longer inline.
2368 * c-lang.c (c_language::get_compile_instance): Change return type.
2369 (cplus_language::get_compile_instance): Change return type.
2370 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2372 * compile/compile.c (compile_to_object): Update.
2374 2021-02-05 Tom Tromey <tom@tromey.com>
2376 * parser-defs.h (write_exp_symbol_reference): Declare.
2377 * parse.c (write_exp_symbol_reference): New function.
2378 * p-exp.y (variable): Use write_exp_symbol_reference.
2379 * m2-exp.y (variable): Use write_exp_symbol_reference.
2380 * f-exp.y (variable): Use write_exp_symbol_reference.
2381 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2382 * c-exp.y (variable): Use write_exp_symbol_reference.
2384 2021-02-05 Tom de Vries <tdevries@suse.de>
2387 * valarith.c (complex_binop): Throw an error if complex type can't
2390 2021-02-05 Tom de Vries <tdevries@suse.de>
2393 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2396 2021-02-05 Tom de Vries <tdevries@suse.de>
2398 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2400 2021-02-04 Mike Frysinger <vapier@gentoo.org>
2402 * configure.tgt (riscv*-*-*): Set gdb_sim.
2404 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2406 * target.c (target_is_non_stop_p): Return bool.
2407 * target.h (target_is_non_stop_p): Return bool.
2409 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2411 * record-full.c (record_full_async_inferior_event_handler):
2412 Don't clear async event handler.
2413 (record_full_base_target::wait): Clear async event handler at
2416 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2418 * record-btrace.c (record_btrace_handle_async_inferior_event):
2419 Don't clear async event handler.
2420 (record_btrace_target::wait): Clear async event handler at
2423 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2425 * remote.c (remote_target::wait): Clear async event handler at
2426 beginning, mark if needed at the end.
2427 (remote_async_inferior_event_handler): Don't set or clear async
2430 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2432 * async-event.h (async_event_handler_func): Add documentation.
2433 * async-event.c (check_async_event_handlers): Don't clear
2434 async_event_handler ready flag.
2435 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2437 * record-btrace.c (record_btrace_handle_async_inferior_event):
2439 * record-full.c (record_full_async_inferior_event_handler):
2441 * remote-notif.c (remote_async_get_pending_events_handler):
2443 * remote.c (remote_async_inferior_event_handler): Likewise.
2445 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2447 * infrun.c (handle_inferior_event): Move stop_soon variable to
2450 2021-02-03 Pedro Alves <pedro@palves.net>
2452 * infcmd.c (detach_command): Hold strong reference to target, and
2453 if all-stop on entry, restart threads on exit.
2454 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2455 (restart_stepped_thread): ... this new function. Also handle
2457 (restart_after_all_stop_detach): New function.
2458 * infrun.h (restart_after_all_stop_detach): Declare.
2460 2021-02-03 Pedro Alves <pedro@palves.net>
2462 * infrun.c (struct step_over_info): Initialize fields.
2463 (prepare_for_detach): Handle ongoing in-line step over.
2465 2021-02-03 Pedro Alves <pedro@palves.net>
2467 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2469 * remote.c (remote_target::remote_detach_1): ... and here ...
2470 * target.c (target_detach): ... instead of here.
2471 * target.h (target_ops::detach): Add comment.
2473 2021-02-03 Pedro Alves <pedro@palves.net>
2475 * infrun.c (struct wait_one_event): Move higher up.
2476 (prepare_for_detach): Abort in-progress displaced steps instead of
2477 letting them complete.
2478 (handle_one): If the inferior is detaching, don't add the thread
2479 back to the global step-over chain.
2480 (restart_threads): Don't restart threads if detaching.
2481 (handle_signal_stop): Remove inferior::detaching reference.
2483 2021-02-03 Pedro Alves <pedro@palves.net>
2485 * infrun.c (prepare_for_detach): Don't release scoped_restore
2488 2021-02-03 Pedro Alves <pedro@palves.net>
2490 * infrun.c (handle_one): New function, factored out from ...
2491 (stop_all_threads): ... here.
2493 2021-02-03 Pedro Alves <pedro@palves.net>
2495 * remote.c (remote_notif_stop_ack): Don't error out on
2496 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2497 (remote_target::discard_pending_stop_replies): Don't delete
2498 in-flight notification; instead, clear its contents.
2500 2021-02-03 Pedro Alves <pedro@palves.net>
2502 * remote.c (extended_remote_target::attach): Set target async in
2503 the target-non-stop path too.
2505 2021-02-03 Pedro Alves <pedro@palves.net>
2508 * infrun.c (handle_signal_stop): Move main context_switch call
2509 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2511 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2513 * NEWS (Changed commands): Add entry for the behavior change of
2514 the inferior command.
2515 * inferior.c (inferior_command): When no argument is given to the
2516 inferior command, display info about the currently selected
2519 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2521 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2523 (read_attribute_reprocess): Adjust.
2525 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2527 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2528 <gnu_ranges_base>: ... this...
2529 <rnglists_base>: ... and this.
2530 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2531 <gnu_ranges_base>: ... this...
2532 <rnglists_base>: ... and this.
2533 (read_cutu_die_from_dwo): Adjust
2534 (dwarf2_get_pc_bounds): Adjust
2535 (dwarf2_record_block_ranges): Adjust.
2536 (read_full_die_1): Adjust
2537 (partial_die_info::read): Adjust.
2538 (read_rnglist_index): Adjust.
2540 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2543 * dwarf2/read.c (read_loclists_rnglists_header): Add
2544 header_offset parameter and use it.
2545 (read_loclist_index): Read header of the current contribution,
2546 not the one at the beginning of the section.
2547 (read_rnglist_index): Likewise.
2549 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2552 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2553 requires_reprocessing flag.
2554 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2556 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2557 and DW_FORM_loclistx.
2558 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2559 instead of set_address for DW_FORM_loclistx and
2562 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2564 * dwarf2/read.c (read_loclist_index): Remove bound check for
2566 (read_rnglist_index): Likewise.
2568 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2570 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2573 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2575 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2577 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2579 * dwarf2/read.c (read_loclist_index): Change complaints into
2582 2021-02-02 Tom de Vries <tdevries@suse.de>
2585 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2588 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2590 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2591 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2592 here from linux-tdep.c and given a new name. Minor cleanups.
2593 (gcore_collect_regset_section_cb): Likewise.
2594 (gcore_collect_thread_registers): Likewise.
2595 (gcore_build_thread_register_notes): Likewise.
2596 (gcore_find_signalled_thread): Likewise.
2597 * gcore.h (gcore_build_thread_register_notes): Declare.
2598 (gcore_find_signalled_thread): Declare.
2599 * fbsd-tdep.c: Add 'gcore.h' include.
2600 (struct fbsd_collect_regset_section_cb_data): Delete.
2601 (fbsd_collect_regset_section_cb): Delete.
2602 (fbsd_collect_thread_registers): Delete.
2603 (struct fbsd_corefile_thread_data): Delete.
2604 (fbsd_corefile_thread): Delete.
2605 (fbsd_make_corefile_notes): Call
2606 gcore_build_thread_register_notes instead of the now deleted
2608 * linux-tdep.c: Add 'gcore.h' include.
2609 (struct linux_collect_regset_section_cb_data): Delete.
2610 (linux_collect_regset_section_cb): Delete.
2611 (linux_collect_thread_registers): Delete.
2612 (linux_corefile_thread): Call
2613 gcore_build_thread_register_notes.
2614 (find_signalled_thread): Delete.
2615 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2617 2021-01-29 Tom de Vries <tdevries@suse.de>
2619 PR breakpoints/26063
2620 * infrun.c (process_event_stop_test): Reset
2621 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2624 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2626 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2627 assert. Extend the header comment.
2629 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2631 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2632 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2633 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2634 (tui_locator_win_info_ptr): Delete declaration.
2635 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2636 (tui_disasm_window::set_contents): Fetch state from tui_location
2638 (tui_get_begin_asm_address): Likewise.
2639 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2641 (get_locator_window): Delete.
2642 (initialize_known_windows): Treat locator window just like all the
2644 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2645 (tui_source_window::set_contents): Fetch state from tui_location
2647 (tui_source_window::showing_source_p): Likewise.
2648 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2650 (tui_locator_win_info_ptr): Delete.
2651 (tui_locator_window::make_status_line): Fetch state from
2652 tui_location global.
2653 (tui_locator_window::rerender): Remove check of 'handle',
2654 reindent function body.
2655 (tui_locator_window::set_locator_fullname): Delete.
2656 (tui_locator_window::set_locator_info): Delete.
2657 (tui_update_locator_fullname): Delete.
2658 (tui_show_frame_info): Likewise.
2659 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2660 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2661 tui/tui-location.h and renamed to
2662 tui_location_tracker::set_location.
2663 (tui_locator_window::set_locator_fullname): Moved to
2664 tui/tui-location.h and renamed to
2665 tui_location_tracker::set_fullname.
2666 (tui_locator_window::full_name): Delete.
2667 (tui_locator_window::proc_name): Delete.
2668 (tui_locator_window::line_no): Delete.
2669 (tui_locator_window::addr): Delete.
2670 (tui_locator_window::gdbarch): Delete.
2671 (tui_update_locator_fullname): Delete declaration.
2672 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2674 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2675 (tui_display_main): Call function on tui_location directly.
2676 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2677 * tui/tui-location.c: New file.
2678 * tui/tui-location.h: New file.
2680 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2682 * gdbtypes.h (get_type_arch): Rename to...
2683 (struct type) <arch>: ... this, update all users.
2685 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2687 * gdbtypes.h (struct type) <arch>: Rename to...
2688 <arch_owner>: ... this, update all users.
2689 <objfile>: Rename to...
2690 <objfile_owner>: ... this, update all users.
2692 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2694 * gdbcmd.h (execute_command_to_string): Update comment.
2695 * top.c (execute_command_to_string): Update header comment.
2697 2021-01-28 Tom de Vries <tdevries@suse.de>
2699 PR breakpoints/27205
2700 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2701 (create_longjmp_master_breakpoint_names): New function, factored out
2703 (create_longjmp_master_breakpoint): ... here. Only try to install
2704 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2705 breakpoint in libc.so failed.
2707 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2710 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2711 unique_ptr is released when the wrapped pointer is kept for later
2714 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2716 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2717 BLR and BR instructions.
2718 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2719 (enum aarch64_masks): New.
2721 2021-01-26 Tom Tromey <tromey@adacore.com>
2723 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2724 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2725 (windows_init_thread_list, windows_nat::handle_load_dll)
2726 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2727 (windows_nat_target::resume)
2728 (windows_nat_target::get_windows_debug_event)
2729 (windows_nat_target::interrupt, windows_xfer_memory)
2730 (windows_nat_target::close): Update.
2731 * nat/windows-nat.c (DEBUG_EVENTS): Use
2732 debug_prefixed_printf_cond.
2733 (matching_pending_stop, fetch_pending_stop)
2734 (continue_last_debug_event): Update.
2736 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2738 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2739 elfcore_write_file_note.
2741 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
2743 * arc-tdep.c (arc_add_reggroups): New function.
2744 (arc_gdbarch_init): Call arc_add_reggroups.
2746 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
2748 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2750 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2751 Simon Marchi <simon.marchi@polymtl.ca>
2752 Tom de Vries <tdevries@suse.de>
2754 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2757 2021-01-25 Tom Tromey <tromey@adacore.com>
2759 * dwarf2/read.c (get_mpz): New function.
2760 (get_dwarf2_rational_constant): Use it.
2762 2021-01-25 Tom Tromey <tromey@adacore.com>
2764 * ada-lang.c (resolve_subexp): Handle array context.
2766 2021-01-23 Tom Tromey <tom@tromey.com>
2769 * compile/compile-loc2c.c (note_register): New function.
2770 (pushf_register_address, pushf_register): Use it.
2772 2021-01-23 Tom Tromey <tom@tromey.com>
2774 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2775 Change type of "registers_used".
2776 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2777 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2778 (locexpr_generate_c_location, loclist_generate_c_location): Change
2779 type of "registers_used".
2780 * compile/compile.h (compile_dwarf_expr_to_c)
2781 (compile_dwarf_bounds_to_c): Update.
2782 * compile/compile-loc2c.c (pushf_register_address)
2783 (pushf_register, do_compile_dwarf_expr_to_c)
2784 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2785 of "registers_used".
2786 * compile/compile-c.h (generate_c_for_variable_locations):
2788 * compile/compile-c-symbols.c (generate_vla_size)
2789 (generate_c_for_for_one_variable): Change type of
2791 (generate_c_for_variable_locations): Return std::vector.
2792 * compile/compile-c-support.c (generate_register_struct): Change
2793 type of "registers_used".
2796 2021-01-23 Tom Tromey <tom@tromey.com>
2798 * compile/compile-internal.h (class compile_instance)
2799 <set_arguments>: Change return type.
2800 * compile/compile.c (compile_to_object): Remove call to reset.
2801 (compile_instance::set_arguments): Change return type.
2803 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2805 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2806 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2808 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2810 * Makefile.in (SELFTESTS_SRCS): Add
2811 unittests/gdb_tilde_expand-selftests.c.
2812 * unittests/gdb_tilde_expand-selftests.c: New file.
2814 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2817 * NEWS: Mention new command.
2818 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2819 (version_style): Define.
2820 (cli_style_option::cli_style_option): Add intensity parameter, and
2822 (_initialize_cli_style): Register version style set/show commands.
2823 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2824 (version_style): Declare.
2825 * top.c (print_gdb_version): Use version_stype, and styled_string
2826 to print the GDB version string.
2828 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2830 * utils.c (emit_style_escape): Only emit an escape sequence if the
2831 requested style is different than the current applied style.
2832 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2833 current applied_style.
2834 (fputs_styled): Remove is_default check.
2835 (fputs_styled_unfiltered): Likewise.
2836 (vfprintf_styled_no_gdbfmt): Likewise.
2838 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2840 * remote.h (remote_debug_printf): New.
2841 (remote_debug_printf_nofunc): New.
2842 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2843 * remote.c: Use above macros throughout file.
2845 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2847 * remote.h (remote_debug): Change to bool.
2848 * remote.c (remote_debug): Change to bool.
2849 (_initialize_remote): Adjust.
2851 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2853 * target.h (remote_debug): Move to...
2854 * remote.h (remote_debug): ... here.
2855 * top.c (remote_debug): Move to...
2856 * remote.c (remote_debug): ... here.
2857 * remote-sim.c: Include remote.h.
2859 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2861 * cli/cli-cmds.c (show_remote_debug): Remove.
2862 (show_remote_timeout): Remove.
2863 (_initialize_cli_cmds): Don't register commands.
2864 * remote.c (show_remote_debug): Move here.
2865 (show_remote_timeout): Move here.
2866 (_initialize_remote): Register commands.
2868 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2870 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2871 type::objfile method instead.
2873 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2875 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2876 use the type::is_objfile_owned method.
2878 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
2880 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2881 (TYPE_OWNER): Remove.
2882 (TYPE_OBJFILE): Adjust.
2883 (struct main_type) <flag_objfile_owned>: Rename to...
2884 <m_flag_objfile_owned>: ... this.
2885 <owner>: Rename to...
2886 <m_owner>: ... this.
2887 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2889 (TYPE_ALLOC): Adjust.
2890 * gdbtypes.c (alloc_type): Adjust.
2891 (alloc_type_arch): Adjust.
2892 (alloc_type_copy): Adjust.
2893 (get_type_arch): Adjust.
2894 (smash_type): Adjust.
2895 (lookup_array_range_type): Adjust.
2896 (recursive_dump_type): Adjust.
2897 (copy_type_recursive): Adjust.
2898 * compile/compile-c-types.c (convert_func): Adjust.
2899 (convert_type_basic): Adjust.
2900 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2903 (language_arch_info::type_and_symbol::alloc_type_symbol):
2906 2021-01-21 Luis Machado <luis.machado@linaro.org>
2908 * coffread.c (enter_linenos): Passing string to complaint.
2909 * valops.c (value_assign): Make array view.
2911 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2913 * auto-load.h (debug_auto_load): Move here.
2914 (auto_load_debug_printf): New.
2915 * auto-load.c: Use auto_load_debug_printf.
2916 (debug_auto_load): Move to header.
2917 * linux-thread-db.c (try_thread_db_load): Use
2918 auto_load_debug_printf.
2919 * main.c (captured_main_1): Likewise.
2921 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2923 * f-valprint.c (f77_array_offset_tbl): Remove.
2925 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2927 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2929 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2931 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2934 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
2937 * python/py-breakpoint.c (bppy_get_location): Handle
2938 bp_hardware_breakpoint.
2939 (bppy_init): Likewise.
2940 (gdbpy_breakpoint_created): Likewise.
2942 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2944 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2946 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2948 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2949 (_initialize_gdb_bfd): Adjust.
2951 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2954 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2956 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2958 * dwarf2/read.c (follow_die_offset): Add logging.
2959 (dwarf2_per_objfile::age_comp_units): Add logging.
2961 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2963 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2964 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2965 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2966 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2967 * arm-tdep.c (struct frame_unwind): Make static.
2968 * auto-load.c (auto_load_safe_path_vec): Make static.
2969 * csky-tdep.c (csky_stub_unwind): Make static.
2970 * gdbarch.c (gdbarch_data_registry): Make static.
2971 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2972 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2973 * i386-tdep.c (i386_frame_setup_skip_insns,
2974 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2976 * infrun.c (observer_mode): Make static.
2977 * linux-nat.c (sigchld_action): Make static.
2978 * linux-thread-db.c (thread_db_list): Make static.
2979 * maint-test-options.c (maintenance_test_options_list):
2980 * mep-tdep.c (mep_csr_registers): Make static.
2981 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2982 (stats): Make static.
2983 * nat/linux-osdata.c (struct osdata_type): Make static.
2984 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2985 * progspace.c (last_program_space_num): Make static.
2986 * python/py-param.c (struct parm_constant): Remove struct type
2988 (parm_constants): Make static.
2989 * python/py-record-btrace.c (btpy_list_methods): Make static.
2990 * python/py-record.c (recpy_gap_type): Make static.
2991 * record.c (record_goto_cmdlist): Make static.
2992 * regcache.c (regcache_descr_handle): Make static.
2993 * registry.h (DEFINE_REGISTRY): Make definition static.
2994 * symmisc.c (std_in, std_out, std_err): Make static.
2995 * top.c (previous_saved_command_line): Make static.
2996 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2998 * unittests/command-def-selftests.c (nr_duplicates,
2999 nr_invalid_prefixcmd, lists): Make static.
3000 * unittests/observable-selftests.c (test_notification): Make
3002 * unittests/optional/assignment/1.cc (counter): Make static.
3003 * unittests/optional/assignment/2.cc (counter): Make static.
3004 * unittests/optional/assignment/3.cc (counter): Make static.
3005 * unittests/optional/assignment/4.cc (counter): Make static.
3006 * unittests/optional/assignment/5.cc (counter): Make static.
3007 * unittests/optional/assignment/6.cc (counter): Make static.
3009 2021-01-20 Joel Sherrill <joel@rtems.org>
3012 * remote.c (struct remote_thread_info) <resume_state>: Rename
3014 <get_resume_state>: ... this.
3015 (remote_target::resume): Adjust.
3016 (remote_target::commit_resume): Adjust.
3017 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3019 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3020 Tom Tromey <tom@tromey.com>
3022 * stap-probe.c (stap_parse_single_operand): Handle '!'
3024 (stap_parse_argument_conditionally): Likewise.
3025 Skip spaces after processing open-parenthesis sub-expression.
3026 (stap_parse_argument_1): Skip spaces after call to
3027 stap_parse_argument_conditionally.
3028 Handle case when right-side expression is a parenthesized
3030 Skip spaces after call to stap_parse_argument_1.
3032 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3034 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3036 2021-01-19 Luis Machado <luis.machado@linaro.org>
3038 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3039 memory and save data.
3040 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3041 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3042 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3043 (trad_frame_value_bytes_p): Remove.
3044 (trad_frame_reset_saved_regs): Adjust documentation.
3045 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3046 constructor and reset the state of the registers.
3047 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3048 (trad_frame_value_bytes_p, trad_frame_set_value)
3049 (trad_frame_set_realreg, trad_frame_set_addr)
3050 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3051 (trad_frame_set_reg_realreg): Update to call member function.
3052 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3053 (trad_frame_get_prev_register): Likewise.
3055 * aarch64-tdep.c (aarch64_analyze_prologue)
3056 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3057 (aarch64_prologue_prev_register): Update to use member functions.
3058 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3059 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3060 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3061 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3062 (arm_make_epilogue_frame_cache): Likewise.
3063 * avr-tdep.c (avr_frame_unwind_cache)
3064 (avr_frame_prev_register): Likewise.
3065 * cris-tdep.c (cris_scan_prologue): Likewise.
3066 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3067 * frv-tdep.c (frv_analyze_prologue): Likewise.
3068 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3069 * lm32-tdep.c (lm32_frame_cache): Likewise.
3070 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3071 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3072 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3073 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3074 (reset_saved_regs): Adjust to set realreg.
3075 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3076 call member functions.
3077 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3078 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3079 (s390_backchain_frame_unwind_cache): Likewise.
3080 * score-tdep.c (score7_analyze_prologue)
3081 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3082 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3083 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3084 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3085 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3086 * tilegx-tdep.c (tilegx_analyze_prologue)
3087 (tilegx_frame_cache): Likewise.
3088 * v850-tdep.c (v850_frame_cache): Likewise.
3089 * vax-tdep.c (vax_frame_cache): Likewise.
3091 2021-01-19 Luis Machado <luis.machado@linaro.org>
3093 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3095 (put_frame_register_bytes): Likewise.
3096 Adjust documentation.
3097 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3098 (safe_frame_unwind_memory): Likewise.
3099 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3100 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3102 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3103 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3104 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3105 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3106 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3107 * dwarf2/loc.c (rw_pieced_value): Likewise.
3108 * hppa-tdep.c (hppa_frame_cache): Likewise.
3109 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3110 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3111 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3112 (i386_linux_rt_sigtramp_start): Likewise.
3113 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3114 * i386-tdep.c (i386_register_to_value): Likewise.
3115 * i387-tdep.c (i387_register_to_value): Likewise.
3116 * ia64-tdep.c (ia64_register_to_value): Likewise.
3117 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3118 (m32r_linux_rt_sigtramp_start): Likewise.
3119 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3120 * m68k-tdep.c (m68k_register_to_value): Likewise.
3121 * mips-tdep.c (mips_register_to_value)
3122 (mips_value_to_register): Likewise.
3123 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3124 (ppcfbsd_sigtramp_frame_cache): Likewise.
3125 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3126 (ppcobsd_sigtramp_frame_cache): Likewise.
3127 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3128 (rs6000_register_to_value): Likewise.
3129 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3130 * tramp-frame.c (tramp_frame_start): Likewise.
3131 * valops.c (value_assign): Likewise.
3133 2021-01-19 Luis Machado <luis.machado@linaro.org>
3135 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3137 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3138 instead of buffer and size.
3139 (trad_frame_set_reg_value_bytes): Likewise.
3140 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3141 (trad_frame_set_value_bytes): Likewise.
3143 2021-01-18 Mike Frysinger <vapier@gentoo.org>
3145 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3147 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3149 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3150 (riscv_fbsd_gregset): Use riscv_supply_regset.
3151 (riscv_fbsd_fpregset): Likewise.
3152 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3153 (riscv_linux_fregset): Likewise.
3154 * riscv-tdep.c (riscv_supply_regset): Define new function.
3155 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3157 2021-01-18 Tom de Vries <tdevries@suse.de>
3160 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3162 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3165 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3167 * remote.c (class remote_target) <remote_hostio_send_command,
3168 remote_hostio_parse_result>: Constify parameter.
3169 (remote_hostio_parse_result): Likewise.
3170 (remote_target::remote_hostio_send_command): Adjust.
3171 (remote_target::remote_hostio_pread_vFile): Adjust.
3172 (remote_target::fileio_readlink): Adjust.
3173 (remote_target::fileio_fstat): Adjust.
3175 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3177 * remote.c (remote_target::start_remote): Move wait_status to
3180 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3182 * remote.c (class remote_target):
3183 <add_current_inferior_and_thread>: Constify parameter.
3184 (stop_reply_extract_thread): Likewise.
3185 (remote_target::get_current_thread): Likewise.
3186 (remote_target::add_current_inferior_and_thread): Likewise.
3188 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3190 * remote.c (class remote_target)
3191 <remote_unpack_thread_info_response,
3192 parse_threadlist_response>: Constify parameter and/or return
3193 value and or local variable.
3194 (stub_unpack_int): Likewise.
3195 (unpack_nibble): Likewise.
3196 (unpack_byte): Likewise.
3197 (unpack_int): Likewise.
3198 (unpack_string): Likewise.
3199 (unpack_threadid): Likewise.
3200 (remote_target::remote_unpack_thread_info_response): Likewise.
3201 (remote_target::parse_threadlist_response): Likewise.
3203 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3205 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3207 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
3209 * MAINTAINERS (Write After Approval): Add myself.
3211 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3213 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3214 because is_trivially_default_constructible was first implemented with
3217 2021-01-14 Tom de Vries <tdevries@suse.de>
3219 PR breakpoints/27151
3220 * objfiles.h (in_plt_section): Handle .plt.sec.
3222 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3226 (remote_target::select_thread_for_ambiguous_stop_reply): New
3228 (remote_target::process_stop_reply): Call
3229 select_thread_for_ambiguous_stop_reply.
3231 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3233 * record-btrace.c (class record_btrace_target): Remove.
3234 (record_btrace_target::commit_resume): Remove.
3235 * record-full.c (class record_full_target): Remove.
3236 (record_full_target::commit_resume): Remove.
3238 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3240 * remote.c (enum class resume_state): New.
3241 (struct resumed_pending_vcont_info): New.
3242 (struct remote_thread_info) <resume_state, set_not_resumed,
3243 set_resumed_pending_vcont, resumed_pending_vcont_info,
3244 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3246 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3247 (remote_target::remote_add_thread): Adjust.
3248 (remote_target::process_initial_stop_replies): Adjust.
3249 (remote_target::resume): Adjust.
3250 (remote_target::commit_resume): Rely on state in
3251 remote_thread_info and not on tp->executing.
3252 (remote_target::process_stop_reply): Adjust.
3254 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3256 * arc-tdep.h (arc_debug_printf): New.
3257 * arc-tdep.c: Use arc_debug_printf.
3258 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3259 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3260 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3262 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3264 * arc-tdep.h (arc_debug): Change type to bool.
3265 * arc-tdep.c (arc_debug): Change type to bool.
3266 (arc_analyze_prologue): Adjust.
3267 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3268 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3270 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3272 * auto-load.c (auto_load_objfile_script_1): Use bool.
3273 (execute_script_contents): Use bool.
3275 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3277 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3279 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3281 * extension-priv.h (struct extension_language_script_ops)
3282 <auto_load_enabled>: Return bool.
3283 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3285 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3287 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3289 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3290 move comment to header.
3291 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3293 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3294 move comment to header.
3296 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3298 * auto-load.h (file_is_auto_load_safe): Change return type to
3299 bool, move comment here.
3300 * auto-load.c (file_is_auto_load_safe): Change return type and
3301 advice_printed to bool. Move comment to header.
3303 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3305 * jit.c (jit_debug_printf): New, use throughout file.
3307 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3309 * infrun.c (normal_stop): Fix indentation.
3311 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3313 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3315 * symfile.h: ... here.
3316 * symfile.c: Update doc.
3318 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3320 * target.h (baud_rate, serial_parity): Move declarations...
3321 * serial.h: ... here.
3322 * main.c: Include serial.h.
3323 * serial.c (baud_rate, serial_parity): Update doc.
3325 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3327 * top.c (pre_init_ui_hook): Remove.
3329 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3331 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3332 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3333 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3334 * features/aarch64-fpu.xml: Add bfloat16 type.
3336 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3338 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3340 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3342 * f-exp.y (dot_ops): Rename to...
3343 (fortran_operators): ...this. Add a header comment. Add symbol
3345 (yylex): Update to use fortran_operators not dot_ops. Remove
3346 special handling for '**', this is now included in
3349 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3351 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3352 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3353 * aarch64-tdep.c: Use aarch64_debug_printf.
3355 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3357 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3360 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3362 * jit.c (jit_debug): Change type to bool.
3363 (_initialize_jit): Adjust.
3365 2021-01-09 Tom Tromey <tom@tromey.com>
3368 * compile/compile.c (compile_to_object): Avoid crash when
3369 osabi_triplet_regexp returns NULL.
3371 2021-01-09 Tom Tromey <tom@tromey.com>
3373 * tracepoint.h (class collection_list) <append_exp>: Take a
3375 * tracepoint.c (collection_list::append_exp): Take a std::string.
3376 (encode_actions_1): Update.
3378 2021-01-08 Tom Tromey <tromey@adacore.com>
3380 * parse.c (parse_expression): Add void_context_p parameter. Use
3381 parse_exp_in_context.
3382 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3384 (print_command, call_command): Update.
3385 * expression.h (parse_expression): Add void_context_p parameter.
3387 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3389 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3390 for internalvar components that have a dynamic location.
3392 2021-01-08 Tom de Vries <tdevries@suse.de>
3395 * breakpoint.c (create_exception_master_breakpoint_probe)
3396 (create_exception_master_breakpoint_hook): Factor out
3398 (create_exception_master_breakpoint): ... here. Only try to install
3399 the master exception breakpoint in objfile.debug using the
3400 _Unwind_DebugHook method, if the install using probes in objfile
3403 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3405 * f-lang.c (fortran_value_subarray): Call value_from_component.
3407 2021-01-07 Mike Frysinger <vapier@gentoo.org>
3409 * remote-sim.c: Include memory-map.h.
3410 (gdbsim_target): Define memory_map override.
3411 (gdbsim_target::memory_map): Define.
3413 2021-01-07 Tom Tromey <tromey@adacore.com>
3415 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3417 2021-01-07 Tom Tromey <tromey@adacore.com>
3419 * ada-lang.c (add_component_interval): Start loop using vector's
3422 2021-01-06 Tom Tromey <tromey@adacore.com>
3424 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3426 * valarith.c (fixed_point_binop): Handle multiplication
3427 and division specially.
3428 * valops.c (value_to_gdb_mpq): New function.
3429 (value_cast_to_fixed_point): Use it.
3431 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3433 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3434 Call wnoutrefresh instead of tui_win_info::refresh_window.
3436 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3438 * tui/tui-source.c (tui_source_window::show_line_number):
3439 Redraw second space after line number.
3441 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3444 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3445 Fix source pad size in prefresh.
3446 (tui_source_window_base::show_source_content): Grow source pad
3449 2021-01-04 Mike Frysinger <vapier@gentoo.org>
3451 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3452 (bfin_frame_align): Use align_down.
3454 2021-01-04 Tom de Vries <tdevries@suse.de>
3456 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3457 terminators that do not terminate anything.
3459 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3461 * debug.c (debug_print_depth): New.
3462 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3463 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3464 * infrun.c (start_step_over): Use
3465 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3466 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3467 INFRUN_SCOPED_DEBUG_START_END.
3468 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3470 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3472 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3474 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3476 * utils.c (vfprintf_unfiltered): Print timestamp only when
3477 previous debug output ended with a newline.
3479 2021-01-04 Luis Machado <luis.machado@linaro.org>
3481 Update all users of trad_frame_saved_reg to use the new member
3484 Remote all struct keywords from declarations of trad_frame_saved_reg
3485 types, except on forward declarations.
3487 * aarch64-tdep.c: Update.
3488 * alpha-mdebug-tdep.c: Update.
3489 * alpha-tdep.c: Update.
3490 * arc-tdep.c: Update.
3491 * arm-tdep.c: Update.
3492 * avr-tdep.c: Update.
3493 * cris-tdep.c: Update.
3494 * csky-tdep.c: Update.
3495 * frv-tdep.c: Update.
3496 * hppa-linux-tdep.c: Update.
3497 * hppa-tdep.c: Update.
3498 * hppa-tdep.h: Update.
3499 * lm32-tdep.c: Update.
3500 * m32r-linux-tdep.c: Update.
3501 * m32r-tdep.c: Update.
3502 * m68hc11-tdep.c: Update.
3503 * mips-tdep.c: Update.
3504 * moxie-tdep.c: Update.
3505 * riscv-tdep.c: Update.
3506 * rs6000-tdep.c: Update.
3507 * s390-linux-tdep.c: Update.
3508 * s390-tdep.c: Update.
3509 * score-tdep.c: Update.
3510 * sparc-netbsd-tdep.c: Update.
3511 * sparc-sol2-tdep.c: Update.
3512 * sparc64-fbsd-tdep.c: Update.
3513 * sparc64-netbsd-tdep.c: Update.
3514 * sparc64-obsd-tdep.c: Update.
3515 * sparc64-sol2-tdep.c: Update.
3516 * tilegx-tdep.c: Update.
3517 * v850-tdep.c: Update.
3518 * vax-tdep.c: Update.
3520 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3521 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3523 * trad-frame.c: Update.
3524 Remove TF_REG_* enum.
3525 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3526 a trivially-constructible struct.
3527 (trad_frame_reset_saved_regs): Adjust to use member function.
3528 (trad_frame_value_p): Likewise.
3529 (trad_frame_addr_p): Likewise.
3530 (trad_frame_realreg_p): Likewise.
3531 (trad_frame_value_bytes_p): Likewise.
3532 (trad_frame_set_value): Likewise.
3533 (trad_frame_set_realreg): Likewise.
3534 (trad_frame_set_addr): Likewise.
3535 (trad_frame_set_unknown): Likewise.
3536 (trad_frame_set_value_bytes): Likewise.
3537 (trad_frame_get_prev_register): Likewise.
3538 * trad-frame.h: Update.
3539 (trad_frame_saved_reg_kind): New enum.
3540 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3541 <m_kind, m_reg>: New member fields.
3542 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3543 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3544 <is_addr, is_unknown, is_value_bytes>: New member functions.
3546 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3548 * target-float.c: Fix typos.
3550 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
3552 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3554 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3556 * gdbarch.sh: Update copyright year range.
3558 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3560 Update copyright year range in copyright header of all GDB files.
3562 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3564 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3565 to the list of directories to update.
3567 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3569 * top.c (print_gdb_version): Update copyright year.
3571 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3573 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
3575 For older changes see ChangeLog-2020.
3581 version-control: never