1 2021-03-13 Tom Tromey <tom@tromey.com>
3 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
5 2021-03-12 Christian Biesinger <cbiesinger@google.com>
8 * cp-support.c: Use scoped_segv_handler_restore.
9 * event-top.c (thread_local_segv_handler): Made static.
10 (scoped_segv_handler_restore::scoped_segv_handler_restore):
12 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
14 * event-top.h (class scoped_segv_handler_restore): New class.
15 (thread_local_segv_handler): Removed.
17 2021-03-10 Tom Tromey <tromey@adacore.com>
19 * parser-defs.h (parser_state): Change completion to bool.
20 <parse_completion>: Likewise.
21 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
22 (ada_resolve_variable, ada_resolve_function): Update.
23 * ada-lang.c (ada_find_operator_symbol): Change
24 parse_completion to bool.
25 (ada_resolve_funcall, ada_resolve_variable)
26 (ada_resolve_function): Likewise.
28 2021-03-09 Tom Tromey <tromey@adacore.com>
30 * eval.c (operation::evaluate_funcall): Use function formal
31 parameter types when evaluating.
33 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
35 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
36 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
39 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
41 * f-exp.h (eval_op_f_loc): Declare.
42 (expr::fortran_loc_operation): New typedef.
43 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
45 (f77_keywords): Add LOC keyword.
46 * f-lang.c (eval_op_f_loc): New function.
47 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
49 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
51 * f-exp.h (eval_op_f_array_shape): Declare.
52 (fortran_array_shape_operation): New type.
53 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
55 (f77_keywords): Add "shape" keyword.
56 * f-lang.c (fortran_array_shape): New function.
57 (eval_op_f_array_shape): New function.
58 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
60 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
62 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
64 (expr::fortran_array_size_1arg): New type.
65 (expr::fortran_array_size_2arg): Likewise.
66 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
67 UNOP_OR_BINOP_INTRINSIC.
68 (f77_keywords): Add "size" keyword.
69 * f-lang.c (fortran_array_size): New function.
70 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
71 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
73 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
75 * f-exp.h (eval_op_f_rank): Declare.
76 (expr::fortran_rank_operation): New typedef.
77 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
79 (f77_keywords): Add "rank" keyword.
80 * f-lang.c (eval_op_f_rank): New function.
81 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
83 2021-03-08 Tom Tromey <tom@tromey.com>
85 * printcmd.c (set_command): Remove null check.
86 * value.c (init_if_undefined_command): Remove null check.
88 2021-03-08 Tom Tromey <tom@tromey.com>
90 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
92 * p-exp.y (variable): Update.
93 * go-exp.y (variable): Update.
94 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
95 Remove overload for objfile.
96 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
98 (check_objfile): Likewise.
99 (dump_for_expression): Likewise. Remove overload for objfile.
100 (class var_msym_value_operation): Use bound_minimal_symbol.
101 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
103 (var_msym_value_operation::evaluate_for_address)
104 (var_msym_value_operation::evaluate_for_sizeof)
105 (var_msym_value_operation::evaluate_for_cast): Update.
106 * d-exp.y (PrimaryExpression): Update.
107 * c-exp.y (variable): Update.
108 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
109 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
111 * ada-exp.y (write_var_or_type): Update.
113 2021-03-08 Tom Tromey <tom@tromey.com>
115 * parser-defs.h (exp_uses_objfile): Return bool.
116 * parse.c (exp_uses_objfile): Return bool.
118 2021-03-08 Tom Tromey <tom@tromey.com>
120 * value.h (eval_skip_value): Don't declare.
121 * opencl-lang.c (eval_opencl_assign): Update.
122 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
123 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
124 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
125 * expression.h (enum noside) <EVAL_SKIP>: Remove.
126 * expop.h (typeof_operation::evaluate)
127 (decltype_operation::evaluate, unop_addr_operation::evaluate)
128 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
129 (cxx_cast_operation::evaluate): Update.
130 * eval.c (eval_skip_value): Remove.
131 (eval_op_scope, eval_op_var_entry_value)
132 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
133 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
134 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
135 (eval_op_binary, eval_op_subscript, eval_op_equal)
136 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
137 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
138 (eval_op_complement, eval_op_lognot, eval_op_ind)
139 (eval_op_memval, eval_op_preinc, eval_op_predec)
140 (eval_op_postinc, eval_op_postdec, eval_op_type)
141 (eval_binop_assign_modify, eval_op_objc_msgcall)
142 (eval_multi_subscript, logical_and_operation::evaluate)
143 (logical_or_operation::evaluate, array_operation::evaluate)
144 (operation::evaluate_for_cast)
145 (var_msym_value_operation::evaluate_for_cast)
146 (var_value_operation::evaluate_for_cast): Update.
147 * c-lang.c (c_string_operation::evaluate): Update.
148 * c-exp.h (objc_nsstring_operation::evaluate)
149 (objc_selector_operation::evaluate): Update.
150 * ada-lang.c (ada_assign_operation::evaluate)
151 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
152 (ada_atr_size): Update.
154 2021-03-08 Tom Tromey <tom@tromey.com>
156 * eval.c: Merge "namespace" scopes.
158 2021-03-08 Tom Tromey <tom@tromey.com>
160 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
162 * parse.c (expr_builder::expr_builder, expr_builder::release):
165 2021-03-08 Tom Tromey <tom@tromey.com>
167 * parse.c (expression::expression, expression::~expression):
169 * expression.h (struct expression): Inline constructor. Remove
172 2021-03-08 Tom Tromey <tom@tromey.com>
174 * std-operator.def (BINOP_END): Remove.
175 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
176 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
177 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
178 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
179 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
182 2021-03-08 Tom Tromey <tom@tromey.com>
184 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
186 2021-03-08 Tom Tromey <tom@tromey.com>
188 * std-operator.def (OP_EXTENDED0): Remove.
190 2021-03-08 Tom Tromey <tom@tromey.com>
192 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
193 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
196 2021-03-08 Tom Tromey <tom@tromey.com>
198 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
199 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
201 2021-03-08 Tom Tromey <tom@tromey.com>
203 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
204 * ada-lang.c (ada_binop_minmax): Update.
205 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
206 Use BINOP_MIN and BINOP_MAX.
208 2021-03-08 Tom Tromey <tom@tromey.com>
210 * value.h (evaluate_subexp_with_coercion): Don't declare.
211 * parse.c (exp_descriptor_standard): Remove.
212 (expr_builder::expr_builder, expr_builder::release): Update.
213 (expression::expression): Remove size_t parameter.
214 (expression::~expression): Simplify.
215 (expression::resize): Remove.
216 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
217 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
218 (write_exp_elt_longcst, write_exp_elt_floatcst)
219 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
220 (write_exp_string_vector, write_exp_bitstring): Remove.
221 * p-lang.h (class pascal_language) <opcode_print_table,
222 op_print_tab>: Remove.
223 * p-lang.c (pascal_language::op_print_tab): Remove.
224 * opencl-lang.c (class opencl_language) <opcode_print_table>:
226 * objc-lang.c (objc_op_print_tab): Remove.
227 (class objc_language) <opcode_print_table>: Remove.
228 * m2-lang.h (class m2_language) <opcode_print_table,
229 op_print_tab>: Remove.
230 * m2-lang.c (m2_language::op_print_tab): Remove.
231 * language.h (struct language_defn) <post_parser, expression_ops,
232 opcode_print_table>: Remove.
233 * language.c (language_defn::expression_ops)
234 (auto_or_unknown_language::opcode_print_table): Remove.
235 * go-lang.h (class go_language) <opcode_print_table,
236 op_print_tab>: Remove.
237 * go-lang.c (go_language::op_print_tab): Remove.
238 * f-lang.h (class f_language) <opcode_print_table>: Remove
239 <op_print_tab>: Remove.
240 * f-lang.c (f_language::op_print_tab): Remove.
241 * expression.h (union exp_element): Remove.
242 (struct expression): Remove size_t parameter from constructor.
244 <first_opcode>: Update.
245 <nelts, elts>: Remove.
246 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
247 (evaluate_subexp_standard, print_expression, op_string)
248 (dump_raw_expression): Don't declare.
249 * expprint.c (print_expression, print_subexp)
250 (print_subexp_funcall, print_subexp_standard, op_string)
251 (dump_raw_expression, dump_subexp, dump_subexp_body)
252 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
253 (dump_prefix_expression): Update.
254 * eval.c (evaluate_subexp): Remove.
255 (evaluate_expression, evaluate_type): Update.
256 (evaluate_subexpression_type): Remove.
257 (fetch_subexp_value): Remove "pc" parameter. Update.
258 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
259 (evaluate_subexp_standard, evaluate_subexp_for_address)
260 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
261 (evaluate_subexp_for_cast): Remove.
262 (parse_and_eval_type): Update.
263 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
264 * d-lang.c (d_op_print_tab): Remove.
265 (class d_language) <opcode_print_table>: Remove.
266 * c-lang.h (c_op_print_tab): Don't declare.
267 * c-lang.c (c_op_print_tab): Remove.
268 (class c_language, class cplus_language, class asm_language, class
269 minimal_language) <opcode_print_table>: Remove.
270 * breakpoint.c (update_watchpoint, watchpoint_check)
271 (watchpoint_exp_is_const, watch_command_1): Update.
272 * ax-gdb.h (union exp_element): Don't declare.
273 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
274 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
275 (gen_expr_binop_rest): Remove.
276 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
277 * ada-lang.c (ada_op_print_tab): Remove.
278 (class ada_language) <post_parser, opcode_print_table>: Remove.
280 2021-03-08 Tom Tromey <tom@tromey.com>
282 * go-lang.c (go_language::expression_ops): Don't declare.
283 * go-lang.h (class go_language) <expression_ops>: Remove.
284 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
286 (class opencl_language) <expression_ops>: Remove.
287 * d-lang.c (class d_language) <expression_ops>: Remove.
288 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
289 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
290 (class c_language, class cplus_language, class asm_language)
291 (class minimal_language) <expression_ops>: Remove.
293 2021-03-08 Tom Tromey <tom@tromey.com>
295 * ada-lang.c (resolve_subexp, replace_operator_with_call)
296 (evaluate_subexp_type, assign_aggregate)
297 (aggregate_assign_positional, aggregate_assign_from_choices)
298 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
299 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
300 (ada_operator_check, ada_forward_operator_length)
301 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
303 (post_parser): Update.
304 (class ada_language) <expresssion_ops>: Remove.
306 2021-03-08 Tom Tromey <tom@tromey.com>
308 * m2-lang.h (class m2_language) <expresssion_ops,
309 exp_descriptor_modula2>: Remove.
310 * m2-lang.c (evaluate_subexp_modula2)
311 (m2_language::exp_descriptor_modula2): Remove.
313 2021-03-08 Tom Tromey <tom@tromey.com>
315 * f-lang.h (class f_language) <expresssion_ops>: Remove.
316 <exp_descriptor_tab>: Remove.
317 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
318 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
319 (print_subexp_f, dump_subexp_body_f, operator_check_f)
320 (f_language::exp_descriptor_tab, fortran_prepare_argument):
323 2021-03-08 Tom Tromey <tom@tromey.com>
325 * rust-lang.h (class rust_language) <expression_ops,
326 exp_descriptor_tab>: Remove.
327 * rust-lang.c (rust_evaluate_funcall): Remove.
328 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
330 (rust_evaluate_subexp): Remove.
331 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
332 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
333 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
335 2021-03-08 Tom Tromey <tom@tromey.com>
337 * ada-exp.y: Create operations.
338 (empty_stoken): Remove.
339 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
340 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
341 (components): New global.
342 (push_component, choice_component, pop_component, pop_components):
344 (associations): New global
345 (push_association, pop_association, pop_associations): New
348 (write_var_from_sym, write_int): Create operations.
349 (write_exp_op_with_string): Remove.
350 (write_object_renaming, write_selectors, write_ambiguous_var)
351 (write_var_or_type, write_name_assoc): Create operations.
352 * ada-lang.h (ada_index_type): Declare.
353 * ada-lang.c (ada_index_type): No longer static.
355 2021-03-08 Tom Tromey <tom@tromey.com>
357 * f-exp.y: Create operations.
358 (f_language::parser): Update.
360 2021-03-08 Tom Tromey <tom@tromey.com>
362 * m2-exp.y: Create operations.
363 (m2_language::parser): Update.
365 2021-03-08 Tom Tromey <tom@tromey.com>
367 * p-exp.y: Create operations.
368 (pascal_language::parser): Update.
370 2021-03-08 Tom Tromey <tom@tromey.com>
372 * d-exp.y: Create operations.
375 2021-03-08 Tom Tromey <tom@tromey.com>
377 * go-exp.y: Create operations.
378 (go_language::parser): Update.
380 2021-03-08 Tom Tromey <tom@tromey.com>
382 * objc-lang.c (end_msglist): Create operations.
383 * c-exp.y: Change parser to create operations.
384 (write_destructor_name): Remove.
387 2021-03-08 Tom Tromey <tom@tromey.com>
389 * rust-exp.y: Create operations.
390 (rust_parser::convert_params_to_expression): Change return type.
391 (binop_maker_ftype): New typedef.
392 (maker_map): New global.
393 (rust_parser::convert_ast_to_expression): Change return type.
394 (rust_language::parser): Update.
395 (_initialize_rust_exp): Initialize maker_map.
397 2021-03-08 Tom Tromey <tom@tromey.com>
399 * stap-probe.c (binop_maker_ftype): New typedef.
400 (stap_maker_map): New global.
401 (stap_make_binop): New function.
402 (stap_parse_register_operand): Return operation_up.
403 (stap_parse_single_operand, stap_parse_argument_conditionally)
404 (stap_parse_argument_1): Likewise.
405 (stap_parse_argument): Create operations.
406 (stap_probe::parse_arguments): Update.
407 (_initialize_stap_probe): Initialize stap_maker_map.
408 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
410 * i386-tdep.h (i386_stap_parse_special_token): Change return
412 * i386-tdep.c (i386_stap_parse_special_token_triplet)
413 (i386_stap_parse_special_token_three_arg_disp)
414 (i386_stap_parse_special_token): Change return type.
415 * gdbarch.sh (stap_parse_special_token): Change return type.
416 * gdbarch.c: Rebuild.
417 * gdbarch.h: Rebuild.
418 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
420 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
423 2021-03-08 Tom Tromey <tom@tromey.com>
425 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
426 * gdbarch.h: Rebuild.
427 * gdbarch.c: Rebuild.
428 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
429 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
431 (amd64_dtrace_parse_probe_argument): Update.
433 2021-03-08 Tom Tromey <tom@tromey.com>
435 * parser-defs.h (struct parser_state) <push, push_new,
436 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
438 <m_operations>: New member.
439 * parse.c (parser_state::push_c_string)
440 (parser_state::push_symbol, parser_state::push_dollar): New
443 2021-03-08 Tom Tromey <tom@tromey.com>
445 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
447 (struct parser_state) <mark_struct_expression>: New method.
448 * parse.c (parser_state::mark_struct_expression): Update assert.
449 (parser_state::mark_struct_expression): New method.
450 (parser_state::mark_completion_tag): Update assert.
451 (parse_expression_for_completion): Handle expout_last_op.
453 2021-03-08 Tom Tromey <tom@tromey.com>
455 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
457 * value.h (fetch_subexp_value): Add "op" parameter.
458 * value.c (init_if_undefined_command): Update.
459 * tracepoint.c (validate_actionline, encode_actions_1): Update.
460 * stap-probe.c (stap_probe::compile_to_ax): Update.
461 * printcmd.c (set_command): Update.
462 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
464 * parser-defs.h (struct expr_builder) <set_operation>: New
466 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
467 * expression.h (struct expression) <first_opcode>: Update.
469 * expprint.c (dump_raw_expression, dump_prefix_expression):
471 * expop.h (class var_value_operation) <get_symbol>: New method.
472 (class register_operation) <get_name>: New method.
473 (class equal_operation): No longer a typedef, now a subclass.
474 (class unop_memval_operation) <get_type>: New method.
475 (class assign_operation) <get_lhs>: New method.
476 (class unop_cast_operation) <get_type>: New method.
477 * eval.c (evaluate_expression, evaluate_type)
478 (evaluate_subexpression_type): Update.
479 (fetch_subexp_value): Add "op" parameter.
480 (parse_and_eval_type): Update.
481 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
482 * breakpoint.c (update_watchpoint, watchpoint_check)
483 (watchpoint_exp_is_const, watch_command_1): Update.
484 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
487 2021-03-08 Tom Tromey <tom@tromey.com>
489 * ada-lang.c (ada_value_binop): Do not use op_string.
491 2021-03-08 Tom Tromey <tom@tromey.com>
493 * expprint.c (dump_for_expression): New overload.
494 * expop.h (check_objfile, dump_for_expression): Declare new
496 * ada-lang.c (check_objfile): New overload.
497 (assign_component, ada_aggregate_component::uses_objfile)
498 (ada_aggregate_component::dump, ada_aggregate_component::assign)
499 (ada_aggregate_component::assign_aggregate)
500 (ada_positional_component::uses_objfile)
501 (ada_positional_component::dump, ada_positional_component::assign)
502 (ada_discrete_range_association::uses_objfile)
503 (ada_discrete_range_association::dump)
504 (ada_discrete_range_association::assign)
505 (ada_name_association::uses_objfile, ada_name_association::dump)
506 (ada_name_association::assign)
507 (ada_choices_component::uses_objfile, ada_choices_component::dump)
508 (ada_choices_component::assign)
509 (ada_others_component::uses_objfile, ada_others_component::dump)
510 (ada_others_component::assign, ada_assign_operation::evaluate):
512 * ada-exp.h (ada_string_operation) <get_name>: New method.
513 (class ada_assign_operation): New.
514 (class ada_component): New.
515 (ada_component_up): New typedef.
516 (class ada_aggregate_operation, class ada_aggregate_component)
517 (class ada_positional_component, class ada_others_component)
518 (class ada_association): New.
519 (ada_association_up): New typedef.
520 (class ada_choices_component)
521 (class ada_discrete_range_association)
522 (class ada_name_association): New.
524 2021-03-08 Tom Tromey <tom@tromey.com>
526 * ada-lang.c (ada_var_value_operation::resolve)
527 (ada_funcall_operation::resolve)
528 (ada_ternop_slice_operation::resolve): New methods.
529 * ada-exp.h (struct ada_resolvable): New.
530 (class ada_var_value_operation): Derive from ada_resolvable.
531 <get_block, resolve>: New methods.
532 (class ada_funcall_operation): Derive from ada_resolvable.
533 <resolve>: New method.
534 (class ada_ternop_slice_operation): Derive from ada_resolvable.
535 <resolve>: New method.
537 2021-03-08 Tom Tromey <tom@tromey.com>
539 * ada-lang.c (ada_funcall_operation::evaluate): New method.
540 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
542 (class ada_funcall_operation): New.
544 2021-03-08 Tom Tromey <tom@tromey.com>
546 * ada-lang.c (ada_structop_operation::evaluate): New method.
547 * ada-exp.h (class ada_structop_operation): New.
549 2021-03-08 Tom Tromey <tom@tromey.com>
551 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
552 * ada-exp.h (class ada_unop_ind_operation): New.
554 2021-03-08 Tom Tromey <tom@tromey.com>
556 * ada-lang.c (ada_binop_exp): No longer static.
557 * ada-exp.h (ada_binop_exp_operation): New typedef.
559 2021-03-08 Tom Tromey <tom@tromey.com>
561 * ada-lang.c (ada_val_atr): No longer static.
562 (ada_atr_val_operation::evaluate): New method.
563 * ada-exp.h (class ada_atr_val_operation): New.
565 2021-03-08 Tom Tromey <tom@tromey.com>
567 * ada-lang.c (ada_pos_atr): No longer static.
568 * ada-exp.h (ada_pos_operation): New typedef.
570 2021-03-08 Tom Tromey <tom@tromey.com>
572 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
574 (ada_evaluate_subexp): Use it.
576 2021-03-08 Tom Tromey <tom@tromey.com>
578 * ada-lang.c (ada_binop_minmax): No longer static.
579 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
582 2021-03-08 Tom Tromey <tom@tromey.com>
584 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
586 * ada-exp.h (class ada_var_msym_value_operation): New.
588 2021-03-08 Tom Tromey <tom@tromey.com>
590 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
591 (ada_var_value_operation::evaluate): New methods.
592 * ada-exp.h (class ada_var_value_operation): New.
594 2021-03-08 Tom Tromey <tom@tromey.com>
596 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
597 * ada-exp.h (class ada_unop_atr_operation): New.
599 2021-03-08 Tom Tromey <tom@tromey.com>
601 * ada-lang.c (ada_binop_in_bounds): No longer static.
602 * ada-exp.h (class ada_binop_in_bounds_operation): New.
604 2021-03-08 Tom Tromey <tom@tromey.com>
606 * ada-lang.c (ada_ternop_slice): No longer static.
607 * ada-exp.h (class ada_ternop_slice_operation): New.
609 2021-03-08 Tom Tromey <tom@tromey.com>
611 * ada-exp.h (ada_bitwise_operation): New template class.
612 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
613 (ada_bitwise_xor_operation): New typedefs.
615 2021-03-08 Tom Tromey <tom@tromey.com>
617 * ada-lang.c (ada_equal_binop): No longer static.
618 * ada-exp.h (class ada_binop_equal_operation): New.
620 2021-03-08 Tom Tromey <tom@tromey.com>
622 * ada-lang.c (ada_mult_binop): No longer static.
623 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
624 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
626 2021-03-08 Tom Tromey <tom@tromey.com>
628 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
629 * ada-exp.h (class ada_binop_addsub_operation): New.
631 2021-03-08 Tom Tromey <tom@tromey.com>
633 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
634 (ada_resolve_variable): Declare.
635 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
636 (ada_resolve_variable): New functions.
637 (resolve_subexp): Update.
639 2021-03-08 Tom Tromey <tom@tromey.com>
641 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
643 * c-exp.h (class opencl_ternop_cond_operation): New.
645 2021-03-08 Tom Tromey <tom@tromey.com>
647 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
649 * c-exp.h (class opencl_logical_binop_operation): New.
651 2021-03-08 Tom Tromey <tom@tromey.com>
653 * opencl-lang.c (opencl_structop_operation::evaluate): New
655 * c-exp.h (class opencl_structop_operation): New.
657 2021-03-08 Tom Tromey <tom@tromey.com>
659 * opencl-lang.c (opencl_logical_not): No longer static. Change
661 (evaluate_subexp_opencl): Update.
662 * c-exp.h (opencl_notequal_operation): New typedef.
664 2021-03-08 Tom Tromey <tom@tromey.com>
666 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
667 static. Change parameters.
668 (eval_opencl_assign): No longer static. Add "op" parameter.
669 (evaluate_subexp_opencl): Update.
670 * c-exp.h (opencl_binop_operation): New template class.
671 (opencl_assign_operation, opencl_equal_operation)
672 (opencl_notequal_operation, opencl_less_operation)
673 (opencl_gtr_operation, opencl_geq_operation)
674 (opencl_leq_operation): New typedefs.
676 2021-03-08 Tom Tromey <tom@tromey.com>
678 * opencl-lang.c (opencl_value_cast): No longer static.
679 * c-exp.h (opencl_cast_type_operation): New typedef.
681 2021-03-08 Tom Tromey <tom@tromey.com>
683 * f-exp.h (eval_op_f_allocated): Declare.
684 (fortran_allocated_operation): New typedef.
685 * f-lang.c (eval_op_f_allocated): No longer static.
687 2021-03-08 Tom Tromey <tom@tromey.com>
689 * f-lang.c (eval_op_f_associated): New functions.
690 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
693 2021-03-08 Tom Tromey <tom@tromey.com>
695 * f-lang.c (fortran_bound_1arg::evaluate)
696 (fortran_bound_2arg::evaluate): New methods.
697 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
700 2021-03-08 Tom Tromey <tom@tromey.com>
702 * expop.h (class unop_addr_operation) <get_expression>: New
704 * f-lang.c (fortran_undetermined::value_subarray)
705 (fortran_undetermined::evaluate): New methods.
706 (fortran_prepare_argument): New overload.
707 * f-exp.h (class fortran_range_operation)
708 (class fortran_undetermined): New classes.
710 2021-03-08 Tom Tromey <tom@tromey.com>
712 * rust-lang.c (rust_structop::evaluate_funcall): New method.
713 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
716 2021-03-08 Tom Tromey <tom@tromey.com>
718 * expression.h (class operation) <evaluate_funcall>: New methods.
719 * expop.h (class scope_operation) <evaluate_funcall>: New method.
720 (class var_value_operation) <evaluate_funcall>: New method.
721 (class structop_base_operation) <evaluate_funcall>: New method.
722 (class var_msym_value_operation) <evaluate_funcall>: New method.
723 (class structop_member_base): New class.
724 (class structop_member_operation): Derive from
725 structop_member_base.
726 (class structop_mptr_operation): Derive from
727 structop_member_base.
728 (class funcall_operation): New class.
729 * eval.c (operation::evaluate_funcall)
730 (var_value_operation::evaluate_funcall)
731 (scope_operation::evaluate_funcall)
732 (structop_member_base::evaluate_funcall)
733 (structop_base_operation::evaluate_funcall): New methods.
735 2021-03-08 Tom Tromey <tom@tromey.com>
737 * expop.h (class array_operation): New.
738 * eval.c (array_operation::evaluate_struct_tuple)
739 (array_operation::evaluate): New methods.
741 2021-03-08 Tom Tromey <tom@tromey.com>
743 * expop.h (class adl_func_operation): New.
744 * eval.c (adl_func_operation::evaluate): New method.
746 2021-03-08 Tom Tromey <tom@tromey.com>
748 * ada-lang.c (ada_unop_in_range): No longer static.
749 * ada-exp.h (class ada_unop_range_operation): New.
751 2021-03-08 Tom Tromey <tom@tromey.com>
753 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
755 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
756 (ada_atr_size_operation, ada_abs_operation): New typedefs.
758 2021-03-08 Tom Tromey <tom@tromey.com>
760 * expop.h (class logical_and_operation)
761 (class logical_or_operation): New.
762 * eval.c (logical_and_operation::evaluate)
763 (logical_or_operation::evaluate): New methods.
764 * ax-gdb.c (logical_and_operation::do_generate_ax)
765 (logical_or_operation::do_generate_ax): New methods.
767 2021-03-08 Tom Tromey <tom@tromey.com>
769 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
771 * m2-exp.h: New file.
773 2021-03-08 Tom Tromey <tom@tromey.com>
775 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
776 * rust-exp.h (class rust_aggregate_operation): New.
778 2021-03-08 Tom Tromey <tom@tromey.com>
780 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
782 * rust-exp.h (class rust_struct_anon): New.
783 (class rust_structop): New.
785 2021-03-08 Tom Tromey <tom@tromey.com>
787 * rust-lang.c (rust_range): No longer static.
788 * rust-exp.h (class rust_range_operation): New.
790 2021-03-08 Tom Tromey <tom@tromey.com>
792 * rust-lang.c (rust_subscript): No longer static.
793 * rust-exp.h (class rust_subscript_operation): New.
795 2021-03-08 Tom Tromey <tom@tromey.com>
797 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
799 (rust_evaluate_subexp): Update.
800 * rust-exp.h (class rust_unop_ind_operation): New.
802 2021-03-08 Tom Tromey <tom@tromey.com>
804 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
805 longer static. Add "opcode" parameter.
806 (rust_evaluate_subexp): Update.
807 * rust-exp.h: New file.
809 2021-03-08 Tom Tromey <tom@tromey.com>
811 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
812 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
813 (eval_op_f_kind): No longer static. Add "opcode" parameter.
814 (evaluate_subexp_f): Update.
817 2021-03-08 Tom Tromey <tom@tromey.com>
819 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
820 * ada-exp.h (class ada_ternop_range_operation): New.
822 2021-03-08 Tom Tromey <tom@tromey.com>
824 * ada-lang.c (ada_qual_operation::evaluate): New method.
825 * ada-exp.h (class ada_qual_operation): New.
827 2021-03-08 Tom Tromey <tom@tromey.com>
829 * ada-lang.c (ada_string_operation::evaluate): New method.
830 * ada-exp.h (class ada_string_operation): New.
832 2021-03-08 Tom Tromey <tom@tromey.com>
834 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
835 * ada-exp.h: New file.
837 2021-03-08 Tom Tromey <tom@tromey.com>
839 * expop.h (class multi_subscript_operation): New.
840 * eval.c (multi_subscript_operation::evaluate): New method.
842 2021-03-08 Tom Tromey <tom@tromey.com>
844 * eval.c (objc_msgcall_operation::evaluate): New method.
845 * c-exp.h (class objc_msgcall_operation): New.
847 2021-03-08 Tom Tromey <tom@tromey.com>
849 * expop.h (class var_value_operation): New.
850 * eval.c (var_value_operation::evaluate)
851 (var_value_operation::evaluate_for_address)
852 (var_value_operation::evaluate_with_coercion)
853 (var_value_operation::evaluate_for_sizeof)
854 (var_value_operation::evaluate_for_cast): New methods.
855 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
857 2021-03-08 Tom Tromey <tom@tromey.com>
859 * expop.h (cxx_cast_ftype): New typedef.
860 (cxx_cast_operation): New template.
861 (dynamic_cast_operation, reinterpret_cast_operation): New
864 2021-03-08 Tom Tromey <tom@tromey.com>
866 * expop.h (class unop_cast_type_operation): New.
867 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
870 2021-03-08 Tom Tromey <tom@tromey.com>
872 * expop.h (class unop_cast_operation): New.
873 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
875 2021-03-08 Tom Tromey <tom@tromey.com>
877 * expop.h (class assign_modify_operation): New.
878 * eval.c (eval_binop_assign_modify): No longer static.
879 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
881 2021-03-08 Tom Tromey <tom@tromey.com>
883 * expop.h (class assign_operation): New.
884 * ax-gdb.c (assign_operation::do_generate_ax): New method.
886 2021-03-08 Tom Tromey <tom@tromey.com>
888 * expop.h (class type_instance_operation): New.
889 * eval.c (type_instance_operation::evaluate): New method.
891 2021-03-08 Tom Tromey <tom@tromey.com>
893 * expop.h (class op_this_operation): New.
894 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
896 2021-03-08 Tom Tromey <tom@tromey.com>
898 * expop.h (class unop_memval_operation)
899 (class unop_memval_type_operation): New.
900 * eval.c (eval_op_memval): No longer static.
901 (unop_memval_operation::evaluate_for_address)
902 (unop_memval_type_operation::evaluate_for_address)
903 (unop_memval_operation::evaluate_for_sizeof)
904 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
905 * ax-gdb.c (unop_memval_operation::do_generate_ax)
906 (unop_memval_type_operation::do_generate_ax): New methods.
908 2021-03-08 Tom Tromey <tom@tromey.com>
910 * expop.h (class unop_alignof_operation): New.
911 * eval.c (eval_op_alignof): No longer static.
913 2021-03-08 Tom Tromey <tom@tromey.com>
915 * expop.h (class unop_sizeof_operation): New.
916 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
918 2021-03-08 Tom Tromey <tom@tromey.com>
920 * expop.h (class unop_addr_operation): New.
921 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
923 2021-03-08 Tom Tromey <tom@tromey.com>
925 * expop.h (class typeid_operation): New.
927 2021-03-08 Tom Tromey <tom@tromey.com>
929 * expop.h (class decltype_operation): New.
931 2021-03-08 Tom Tromey <tom@tromey.com>
933 * expop.h (class typeof_operation): New.
935 2021-03-08 Tom Tromey <tom@tromey.com>
937 * expop.h (class type_operation): New.
938 * eval.c (eval_op_type): No longer static.
940 2021-03-08 Tom Tromey <tom@tromey.com>
942 * expop.h (class unop_ind_base_operation)
943 (class unop_ind_operation): New.
944 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
945 (unop_ind_base_operation::evaluate_for_address)
946 (unop_ind_base_operation::evaluate_for_sizeof): New method.
947 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
949 2021-03-08 Tom Tromey <tom@tromey.com>
951 * expop.h (unop_incr_operation): New template.
952 (preinc_operation, predec_operation, postinc_operation)
953 (postdec_operation): New typedefs.
954 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
955 (eval_op_postdec): No longer static.
957 2021-03-08 Tom Tromey <tom@tromey.com>
959 * expop.h (unary_ftype): New typedef.
960 (unop_operation, usual_ax_binop_operation): New templates.
961 (unary_plus_operation, unary_neg_operation)
962 (unary_complement_operation, unary_logical_not_operation): New
964 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
965 (eval_op_lognot): No longer static.
966 * ax-gdb.c (gen_expr_unop): New function.
968 2021-03-08 Tom Tromey <tom@tromey.com>
970 * ax-gdb.c (comma_operation::do_generate_ax): New method.
972 2021-03-08 Tom Tromey <tom@tromey.com>
974 * expop.h (class repeat_operation): New.
975 * eval.c (eval_op_repeat): No longer static. Remove "op"
977 (evaluate_subexp_standard): Update.
978 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
980 2021-03-08 Tom Tromey <tom@tromey.com>
982 * expop.h (class comparison_operation): New.
983 (equal_operation, notequal_operation, less_operation)
984 (gtr_operation, geq_operation, leq_operation): New typedefs.
985 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
986 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
988 2021-03-08 Tom Tromey <tom@tromey.com>
990 * expop.h (class subscript_operation): New.
991 * eval.c (eval_op_subscript): No longer static.
993 2021-03-08 Tom Tromey <tom@tromey.com>
995 * expop.h (class binop_operation, class usual_ax_binop_operation):
997 (exp_operation, intdiv_operation, mod_operation, mul_operation)
998 (div_operation, rem_operation, lsh_operation, rsh_operation)
999 (bitwise_and_operation, bitwise_ior_operation)
1000 (bitwise_xor_operation): New typedefs.
1001 * eval.c (eval_op_binary): No longer static.
1003 2021-03-08 Tom Tromey <tom@tromey.com>
1005 * expop.h (class sub_operation): New.
1006 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1007 (evaluate_subexp_standard): Update.
1009 2021-03-08 Tom Tromey <tom@tromey.com>
1011 * expop.h (class add_operation): New.
1012 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1013 (evaluate_subexp_standard): Update.
1015 2021-03-08 Tom Tromey <tom@tromey.com>
1017 * expop.h (class concat_operation): New.
1018 * eval.c (eval_op_concat): No longer static. Remove "op"
1020 (evaluate_subexp_standard): Update.
1022 2021-03-08 Tom Tromey <tom@tromey.com>
1024 * expop.h (class structop_member_operation)
1025 (class structop_mptr_operation): New.
1026 * eval.c (eval_op_member): No longer static.
1028 2021-03-08 Tom Tromey <tom@tromey.com>
1030 * expop.h (class structop_ptr_operation): New.
1031 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1034 2021-03-08 Tom Tromey <tom@tromey.com>
1036 * expop.h (class structop_base_operation)
1037 (class structop_operation): New.
1038 * eval.c (eval_op_structop_struct): No longer static.
1040 2021-03-08 Tom Tromey <tom@tromey.com>
1042 * expop.h (class complex_operation): New.
1044 2021-03-08 Tom Tromey <tom@tromey.com>
1046 * eval.c (eval_op_objc_selector): No longer static.
1047 * c-exp.h (class objc_selector_operation): New.
1049 2021-03-08 Tom Tromey <tom@tromey.com>
1051 * eval.c: Include c-exp.h.
1052 * c-exp.h (class objc_nsstring_operation): New.
1054 2021-03-08 Tom Tromey <tom@tromey.com>
1056 * c-lang.c (c_string_operation::evaluate): New method.
1057 * c-exp.h: New file.
1059 2021-03-08 Tom Tromey <tom@tromey.com>
1061 * expop.h (class ternop_cond_operation): New.
1062 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1064 2021-03-08 Tom Tromey <tom@tromey.com>
1066 * expop.h (class ternop_slice_operation): New.
1067 * eval.c (eval_op_ternop): No longer static.
1069 2021-03-08 Tom Tromey <tom@tromey.com>
1071 * expop.h (class string_operation): New.
1072 * eval.c (eval_op_string): No longer static.
1074 2021-03-08 Tom Tromey <tom@tromey.com>
1076 * expop.h (class internalvar_operation): New.
1077 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1079 2021-03-08 Tom Tromey <tom@tromey.com>
1081 * expop.h (class bool_operation): New.
1083 2021-03-08 Tom Tromey <tom@tromey.com>
1085 * expop.h (class register_operation): New.
1086 * eval.c (eval_op_register): No longer static.
1087 * ax-gdb.c (register_operation::do_generate_ax): New method.
1089 2021-03-08 Tom Tromey <tom@tromey.com>
1091 * expop.h (class last_operation): New.
1093 2021-03-08 Tom Tromey <tom@tromey.com>
1095 * expop.h (class func_static_var_operation): New.
1096 * eval.c (eval_op_func_static_var): No longer static.
1098 2021-03-08 Tom Tromey <tom@tromey.com>
1100 * expop.h (class var_entry_value_operation): New.
1101 * eval.c (eval_op_var_entry_value): No longer static.
1103 2021-03-08 Tom Tromey <tom@tromey.com>
1105 * expression.h (class operation) <set_outermost>: New method.
1106 * expop.h (class var_msym_value_operation): New.
1107 * eval.c (eval_op_var_msym_value): No longer static.
1108 (var_msym_value_operation::evaluate_for_address)
1109 (var_msym_value_operation::evaluate_for_sizeof)
1110 (var_msym_value_operation::evaluate_for_cast): New methods.
1111 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1114 2021-03-08 Tom Tromey <tom@tromey.com>
1116 * expop.h (class long_const_operation): New.
1117 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1119 2021-03-08 Tom Tromey <tom@tromey.com>
1121 * expop.h (class scope_operation): New.
1122 * eval.c (eval_op_scope): No longer static.
1123 (scope_operation::evaluate_for_address): New method.
1124 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1126 2021-03-08 Tom Tromey <tom@tromey.com>
1128 * expprint.c (float_const_operation::dump): New method.
1129 * expop.h (float_data): New typedef.
1130 (class float_const_operation): New.
1132 2021-03-08 Tom Tromey <tom@tromey.com>
1134 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1135 * ax-gdb.c (gen_expr_binop): New function.
1136 (gen_expr_structop): Likewise.
1138 2021-03-08 Tom Tromey <tom@tromey.com>
1140 * expprint.c (expr::dump_for_expression): New functions.
1141 * expop.h (dump_for_expression): New overloads.
1142 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1145 2021-03-08 Tom Tromey <tom@tromey.com>
1147 * expression.h (expr::operation): New class.
1148 (expr::make_operation): New function.
1149 (expr::operation_up): New typedef.
1150 * expop.h: New file.
1151 * eval.c (operation::evaluate_for_cast)
1152 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1154 * ax-gdb.c (operation::generate_ax): New method.
1156 2021-03-08 Tom Tromey <tom@tromey.com>
1158 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1159 (gen_expr_binop_rest): New overload.
1161 2021-03-08 Tom Tromey <tom@tromey.com>
1163 * eval.c (eval_multi_subscript): New function.
1164 (evaluate_subexp_standard): Use it.
1166 2021-03-08 Tom Tromey <tom@tromey.com>
1168 * ada-lang.c (ada_binop_exp): New function.
1169 (ada_evaluate_subexp): Use it.
1171 2021-03-08 Tom Tromey <tom@tromey.com>
1173 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1175 (ada_evaluate_subexp): Use it.
1177 2021-03-08 Tom Tromey <tom@tromey.com>
1179 * ada-lang.c (ada_binop_minmax): New function.
1180 (ada_evaluate_subexp): Use it.
1182 2021-03-08 Tom Tromey <tom@tromey.com>
1184 * ada-lang.c (ada_unop_atr): New function.
1185 (ada_evaluate_subexp): Use it.
1187 2021-03-08 Tom Tromey <tom@tromey.com>
1189 * ada-lang.c (ada_binop_in_bounds): New function.
1190 (ada_evaluate_subexp): Use it.
1192 2021-03-08 Tom Tromey <tom@tromey.com>
1194 * ada-lang.c (ada_ternop_slice): New function.
1195 (ada_evaluate_subexp): Use it.
1197 2021-03-08 Tom Tromey <tom@tromey.com>
1199 * ada-lang.c (ada_equal_binop): New function.
1200 (ada_evaluate_subexp): Use it.
1202 2021-03-08 Tom Tromey <tom@tromey.com>
1204 * ada-lang.c (ada_mult_binop): New function.
1205 (ada_evaluate_subexp): Use it.
1207 2021-03-08 Tom Tromey <tom@tromey.com>
1209 * ada-lang.c (ada_abs): New function.
1210 (ada_evaluate_subexp): Use it.
1212 2021-03-08 Tom Tromey <tom@tromey.com>
1214 * ada-lang.c (ada_atr_size): New function.
1215 (ada_evaluate_subexp): Use it.
1217 2021-03-08 Tom Tromey <tom@tromey.com>
1219 * ada-lang.c (ada_atr_tag): New function.
1220 (ada_evaluate_subexp): Use it.
1222 2021-03-08 Tom Tromey <tom@tromey.com>
1224 * ada-lang.c (ada_unop_in_range): New function.
1225 (ada_evaluate_subexp): Use it.
1227 2021-03-08 Tom Tromey <tom@tromey.com>
1229 * ada-lang.c (ada_unop_neg): New function.
1230 (ada_evaluate_subexp): Use it.
1232 2021-03-08 Tom Tromey <tom@tromey.com>
1234 * ada-lang.c (eval_ternop_in_range): New function.
1235 (ada_evaluate_subexp): Use it.
1237 2021-03-08 Tom Tromey <tom@tromey.com>
1239 * opencl-lang.c (eval_opencl_assign): New function.
1240 (evaluate_subexp_opencl): Use it.
1242 2021-03-08 Tom Tromey <tom@tromey.com>
1244 * eval.c (eval_op_objc_msgcall): New function.
1245 (evaluate_subexp_standard): Use it.
1247 2021-03-08 Tom Tromey <tom@tromey.com>
1249 * eval.c (eval_binop_assign_modify): New function.
1250 (evaluate_subexp_standard): Use it.
1252 2021-03-08 Tom Tromey <tom@tromey.com>
1254 * m2-lang.c (eval_op_m2_subscript): New function.
1255 (evaluate_subexp_modula2): Use it.
1257 2021-03-08 Tom Tromey <tom@tromey.com>
1259 * m2-lang.c (eval_op_m2_high): New function.
1260 (evaluate_subexp_modula2): Use it.
1262 2021-03-08 Tom Tromey <tom@tromey.com>
1264 * eval.c (evaluate_subexp_for_address_base): New function.
1265 (evaluate_subexp_for_address): Use it.
1266 (evaluate_subexp_for_sizeof_base): New function.
1267 (evaluate_subexp_for_sizeof): Use it.
1269 2021-03-08 Tom Tromey <tom@tromey.com>
1271 * rust-lang.c (eval_op_rust_structop): New function.
1272 (rust_evaluate_subexp): Use it.
1274 2021-03-08 Tom Tromey <tom@tromey.com>
1276 * rust-lang.c (eval_op_rust_struct_anon): New function.
1277 (rust_evaluate_subexp): Use it.
1279 2021-03-08 Tom Tromey <tom@tromey.com>
1281 * rust-lang.c (eval_op_rust_array): New function.
1282 (rust_evaluate_subexp): Use it.
1284 2021-03-08 Tom Tromey <tom@tromey.com>
1286 * rust-lang.c (eval_op_rust_complement): New function.
1287 (rust_evaluate_subexp): Use it.
1289 2021-03-08 Tom Tromey <tom@tromey.com>
1291 * rust-lang.c (eval_op_rust_ind): New function.
1292 (rust_evaluate_subexp): Use it.
1294 2021-03-08 Tom Tromey <tom@tromey.com>
1296 * rust-lang.c (rust_subscript): Change parameters.
1297 (rust_evaluate_subexp): Update.
1299 2021-03-08 Tom Tromey <tom@tromey.com>
1301 * rust-lang.c (rust_range): Change parameters.
1302 (rust_evaluate_subexp): Update.
1304 2021-03-08 Tom Tromey <tom@tromey.com>
1306 * f-lang.c (eval_op_f_allocated): New function.
1307 (evaluate_subexp_f): Use it.
1309 2021-03-08 Tom Tromey <tom@tromey.com>
1311 * f-lang.c (fortran_require_array): New function.
1312 (evaluate_subexp_f): Use it.
1314 2021-03-08 Tom Tromey <tom@tromey.com>
1316 * f-lang.c (eval_op_f_kind): New function.
1317 (evaluate_subexp_f): Use it.
1319 2021-03-08 Tom Tromey <tom@tromey.com>
1321 * f-lang.c (eval_op_f_cmplx): New function.
1322 (evaluate_subexp_f): Use it.
1324 2021-03-08 Tom Tromey <tom@tromey.com>
1326 * f-lang.c (eval_op_f_modulo): New function.
1327 (evaluate_subexp_f): Use it.
1329 2021-03-08 Tom Tromey <tom@tromey.com>
1331 * f-lang.c (eval_op_f_floor): New function.
1332 (evaluate_subexp_f): Use it.
1334 2021-03-08 Tom Tromey <tom@tromey.com>
1336 * f-lang.c (eval_op_f_ceil): New function.
1337 (evaluate_subexp_f): Use it.
1339 2021-03-08 Tom Tromey <tom@tromey.com>
1341 * f-lang.c (eval_op_f_mod): New function.
1342 (evaluate_subexp_f): Use it.
1344 2021-03-08 Tom Tromey <tom@tromey.com>
1346 * f-lang.c (eval_op_f_abs): New function.
1347 (evaluate_subexp_f): Use it.
1349 2021-03-08 Tom Tromey <tom@tromey.com>
1351 * eval.c (eval_op_type): New function.
1352 (evaluate_subexp_standard): Use it.
1354 2021-03-08 Tom Tromey <tom@tromey.com>
1356 * eval.c (eval_op_postdec): New function.
1357 (evaluate_subexp_standard): Use it.
1359 2021-03-08 Tom Tromey <tom@tromey.com>
1361 * eval.c (eval_op_postinc): New function.
1362 (evaluate_subexp_standard): Use it.
1364 2021-03-08 Tom Tromey <tom@tromey.com>
1366 * eval.c (eval_op_predec): New file.
1367 (evaluate_subexp_standard): Use it.
1369 2021-03-08 Tom Tromey <tom@tromey.com>
1371 * eval.c (eval_op_preinc): New function.
1372 (evaluate_subexp_standard): Use it.
1374 2021-03-08 Tom Tromey <tom@tromey.com>
1376 * eval.c (eval_op_memval): New function.
1377 (evaluate_subexp_standard): Use it.
1379 2021-03-08 Tom Tromey <tom@tromey.com>
1381 * eval.c (eval_op_alignof): New function.
1382 (evaluate_subexp_standard): Use it.
1384 2021-03-08 Tom Tromey <tom@tromey.com>
1386 * eval.c (eval_op_ind): New function.
1387 (evaluate_subexp_standard): Use it.
1389 2021-03-08 Tom Tromey <tom@tromey.com>
1391 * eval.c (eval_op_lognot): New function.
1392 (evaluate_subexp_standard): Use it.
1394 2021-03-08 Tom Tromey <tom@tromey.com>
1396 * eval.c (eval_op_complement): New function.
1397 (evaluate_subexp_standard): Use it.
1399 2021-03-08 Tom Tromey <tom@tromey.com>
1401 * eval.c (eval_op_neg): New function.
1402 (evaluate_subexp_standard): Use it.
1404 2021-03-08 Tom Tromey <tom@tromey.com>
1406 * eval.c (eval_op_plus): New function.
1407 (evaluate_subexp_standard): Use it.
1409 2021-03-08 Tom Tromey <tom@tromey.com>
1411 * eval.c (eval_op_repeat): New function.
1412 (evaluate_subexp_standard): Use it.
1414 2021-03-08 Tom Tromey <tom@tromey.com>
1416 * eval.c (eval_op_leq): New function.
1417 (evaluate_subexp_standard): Use it.
1419 2021-03-08 Tom Tromey <tom@tromey.com>
1421 * eval.c (eval_op_geq): New function.
1422 (evaluate_subexp_standard): Use it.
1424 2021-03-08 Tom Tromey <tom@tromey.com>
1426 * eval.c (eval_op_gtr): New function.
1427 (evaluate_subexp_standard): Use it.
1429 2021-03-08 Tom Tromey <tom@tromey.com>
1431 * eval.c (eval_op_less): New function.
1432 (evaluate_subexp_standard): Use it.
1434 2021-03-08 Tom Tromey <tom@tromey.com>
1436 * eval.c (eval_op_notequal): New function.
1437 (evaluate_subexp_standard): Use it.
1439 2021-03-08 Tom Tromey <tom@tromey.com>
1441 * eval.c (eval_op_equal): New function.
1442 (evaluate_subexp_standard): Use it.
1444 2021-03-08 Tom Tromey <tom@tromey.com>
1446 * eval.c (eval_op_subscript): New function.
1447 (evaluate_subexp_standard): Use it.
1449 2021-03-08 Tom Tromey <tom@tromey.com>
1451 * eval.c (eval_op_binary): New function.
1452 (evaluate_subexp_standard): Use it.
1454 2021-03-08 Tom Tromey <tom@tromey.com>
1456 * eval.c (eval_op_sub): New function.
1457 (evaluate_subexp_standard): Use it.
1459 2021-03-08 Tom Tromey <tom@tromey.com>
1461 * eval.c (eval_op_add): New function.
1462 (evaluate_subexp_standard): Use it.
1464 2021-03-08 Tom Tromey <tom@tromey.com>
1466 * eval.c (eval_op_member): New function.
1467 (evaluate_subexp_standard): Use it.
1469 2021-03-08 Tom Tromey <tom@tromey.com>
1471 * eval.c (eval_op_structop_ptr): New function.
1472 (evaluate_subexp_standard): Use it.
1474 2021-03-08 Tom Tromey <tom@tromey.com>
1476 * eval.c (eval_op_structop_struct): New function.
1477 (evaluate_subexp_standard): Use it.
1479 2021-03-08 Tom Tromey <tom@tromey.com>
1481 * eval.c (eval_op_ternop): New function.
1482 (evaluate_subexp_standard): Use it.
1484 2021-03-08 Tom Tromey <tom@tromey.com>
1486 * eval.c (eval_op_concat): New function.
1487 (evaluate_subexp_standard): Use it.
1489 2021-03-08 Tom Tromey <tom@tromey.com>
1491 * eval.c (eval_op_objc_selector): New function.
1492 (evaluate_subexp_standard): Use it.
1494 2021-03-08 Tom Tromey <tom@tromey.com>
1496 * eval.c (eval_op_string): New function.
1497 (evaluate_subexp_standard): Use it.
1499 2021-03-08 Tom Tromey <tom@tromey.com>
1501 * eval.c (eval_op_register): New function.
1502 (evaluate_subexp_standard): Use it.
1504 2021-03-08 Tom Tromey <tom@tromey.com>
1506 * eval.c (eval_op_func_static_var): New function.
1507 (evaluate_subexp_standard): Use it.
1509 2021-03-08 Tom Tromey <tom@tromey.com>
1511 * eval.c (eval_op_var_msym_value): New function.
1512 (evaluate_subexp_standard): Use it.
1514 2021-03-08 Tom Tromey <tom@tromey.com>
1516 * eval.c (eval_op_var_entry_value): New function.
1517 (evaluate_subexp_standard): Use it.
1519 2021-03-08 Tom Tromey <tom@tromey.com>
1521 * eval.c (eval_op_scope): New function.
1522 (evaluate_subexp_standard): Use it.
1524 2021-03-06 Chernov Sergey <klen_s@mail.ru>
1527 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1529 2021-03-06 Tom Tromey <tom@tromey.com>
1531 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1532 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1533 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1534 (locate_dwz_sections, dwz_search_other_debugdirs)
1535 (dwarf2_get_dwz_file): Move to dwz.c.
1536 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1538 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1539 (dwarf2_get_dwz_file): Move from read.c.
1541 2021-03-06 Tom Tromey <tom@tromey.com>
1543 * debuginfod-support.h: Include scoped_fd.h.
1545 2021-03-06 Tom Tromey <tom@tromey.com>
1547 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1548 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1549 (get_abbrev_section_for_cu, read_attribute_value)
1550 (get_debug_line_section): Update.
1551 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1553 2021-03-06 Tom Tromey <tom@tromey.com>
1555 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1557 * dwarf2/read.c (section_is_p): Remove.
1558 (dwarf2_per_bfd::locate_sections)
1559 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1560 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1561 (dwarf2_locate_common_dwp_sections)
1562 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1565 2021-03-06 Tom Tromey <tom@tromey.com>
1567 * xcoffread.c: Include sect-names.h.
1568 * symfile.h (struct dwarf2_section_names, struct
1569 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1570 * dwarf2/sect-names.h: New file, from symfile.h.
1571 * dwarf2/read.c: Include sect-names.h.
1573 2021-03-06 Tom Tromey <tom@tromey.com>
1575 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1576 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1577 (abbrev_table::read): Update.
1578 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1579 (struct abbrev_info): Reformat.
1580 <attrs>: Now an array.
1581 (struct abbrev_table) <alloc_abbrev>: Remove.
1583 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1585 * ctfread.c (ctf_psymtab_add_enums): New function.
1586 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1588 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1590 * ctfread.c (read_func_kind_type): Set up function arguments.
1592 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1593 Andrew Burgess <andrew.burgess@embecosm.com>
1595 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1597 (riscv_csrset): New static global.
1598 (riscv_update_csrmap): New function.
1599 (riscv_iterate_over_regset_sections): Process CSRs.
1601 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1603 * riscv-tdep.c (riscv_feature_name_csr): Define.
1604 (riscv_feature_name_cpu): Define.
1605 (riscv_feature_name_fpu): Define.
1606 (riscv_feature_name_virtual): Define.
1607 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1608 (riscv_freg_feature): Use riscv_feature_name_fpu.
1609 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1610 (riscv_csr_feature): Use riscv_feature_name_csr.
1611 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1613 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1614 Craig Blackmore <craig.blackmore@embecosm.com>
1616 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1617 (ALLDEPFILES): Add riscv-none-tdep.c.
1618 * configure: Regenerate.
1619 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1621 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1622 * elf-none-tdep.c: New file.
1623 * elf-none-tdep.h: New file.
1624 * riscv-none-tdep.c: New file.
1626 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1627 Andrew Burgess <andrew.burgess@embecosm.com>
1629 * corelow.c: Add 'xml-tdesc.h' include.
1630 (core_target::read_description): Load the target description from
1631 the core file when possible.
1632 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1634 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1635 (gcore_elf_make_tdesc_note): New function.
1636 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1637 * linux-tdep.c (linux_make_corefile_notes): Add target description
1640 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1642 * Makefile.in (SFILES): Add gcore-elf.c.
1643 (HFILES_NO_SRCDIR): Add gcore-elf.h
1644 * configure: Regenerate.
1645 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1647 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1648 (struct fbsd_collect_regset_section_cb_data): Delete.
1649 (fbsd_collect_regset_section_cb): Delete.
1650 (fbsd_collect_thread_registers): Delete.
1651 (struct fbsd_corefile_thread_data): Delete.
1652 (fbsd_corefile_thread): Delete.
1653 (fbsd_make_corefile_notes): Call
1654 gcore_elf_build_thread_register_notes instead of the now deleted
1656 * gcore-elf.c: New file, the content was moved here from
1657 linux-tdep.c, functions were renamed and given minor cleanup.
1658 * gcore-elf.h: New file.
1659 * gcore.c (gcore_find_signalled_thread): Moved here from
1660 linux-tdep.c and given a new name. Minor cleanups.
1661 * gcore.h (gcore_find_signalled_thread): Declare.
1662 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1663 (struct linux_collect_regset_section_cb_data): Delete.
1664 (linux_collect_regset_section_cb): Delete.
1665 (linux_collect_thread_registers): Delete.
1666 (linux_corefile_thread): Call
1667 gcore_elf_build_thread_register_notes.
1668 (find_signalled_thread): Delete.
1669 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1671 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1674 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1675 process_stratum_target parameter,
1676 sparc_store_inferior_registers): update callers.
1677 * sparc-nat.c (sparc_fetch_inferior_registers,
1678 sparc_store_inferior_registers): Add process_stratum_target
1679 parameter. Switch current thread before calling
1680 sparc_supply_gregset / sparc_collect_rwindow.
1681 (sparc_store_inferior_registers): Likewise.
1682 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1683 (sparc32obsd_collect_uthread): Likewise.
1684 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1686 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1687 sparc64obsd_supply_uthread): Add assertion.
1689 2021-03-04 Tom Tromey <tromey@adacore.com>
1691 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1692 (aux_add_nonlocal_symbols): Update.
1693 (ada_add_block_symbols): Change "found_sym" to bool.
1695 2021-03-03 Tom Tromey <tromey@adacore.com>
1697 * ada-lang.c (ada_resolve_function): Update comment.
1698 (is_nonfunction, add_symbols_from_enclosing_procs)
1699 (remove_extra_symbols): Likewise.
1700 (struct match_data): Add constructor, initializers.
1701 (add_nonlocal_symbols): Remove memset.
1702 (aux_add_nonlocal_symbols): Update comment.
1703 (ada_add_block_renamings, add_nonlocal_symbols)
1704 (ada_add_all_symbols): Likewise.
1705 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1707 2021-03-02 Tom Tromey <tromey@adacore.com>
1709 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1710 (cast_to_gnat_encoded_fixed_point_type): Remove.
1711 (ada_value_cast, ada_evaluate_subexp): Update.
1712 (gnat_encoded_fixed_point_type_info)
1713 (ada_is_gnat_encoded_fixed_point_type)
1714 (gnat_encoded_fixed_point_delta)
1715 (gnat_encoded_fixed_point_scaling_factor): Remove.
1716 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1717 (gnat_encoded_fixed_point_delta)
1718 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1719 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1720 (ada_print_type): Update.
1721 * ada-valprint.c (ada_value_print_num): Update.
1722 * dwarf2/read.c (ada_get_gnat_encoded_number)
1723 (ada_get_gnat_encoded_ratio): New functions.
1724 (finish_fixed_point_type): Use them. Add parameters.
1725 (GNAT_FIXED_POINT_SUFFIX): New define.
1726 (gnat_encoded_fixed_point_type_info): New function.
1727 (read_base_type): Handle gnat encodings.
1729 2021-03-02 Tom Tromey <tromey@adacore.com>
1731 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1732 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1734 (GROW_VECT): Remove.
1735 (grow_vect): Remove.
1737 2021-03-02 Tom Tromey <tromey@adacore.com>
1739 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1740 * ada-lang.c (resolve_subexp): Update.
1741 (ada_resolve_function): Accept a vector.
1742 (is_nonfunction, add_defn_to_vec)
1743 (add_symbols_from_enclosing_procs): Likewise.
1744 (num_defns_collected, defns_collected): Remove.
1745 (remove_extra_symbols): Return a vector.
1746 (remove_irrelevant_renamings): Return void.
1747 (ada_add_local_symbols): Accept a vector.
1748 (struct match_data) <obstackp>: Remove.
1749 <resultp>: New member.
1750 (aux_add_nonlocal_symbols): Update.
1751 (ada_add_block_renamings, add_nonlocal_symbols)
1752 (ada_add_all_symbols): Accept a vector.
1753 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1755 (ada_lookup_symbol): Update.
1756 (ada_add_block_symbols): Accept a vector.
1757 (get_var_value, iterate_over_symbols): Update.
1758 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1761 2021-03-02 Tom Tromey <tromey@adacore.com>
1763 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1765 2021-03-02 Tom Tromey <tromey@adacore.com>
1767 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1770 (ada_pspace_data): Remove destructor.
1771 <sym_cache>: Now a unique_ptr.
1772 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1773 (ada_get_symbol_cache): Use 'new'.
1774 (ada_clear_symbol_cache): Rewrite.
1776 2021-03-02 Tom Tromey <tromey@adacore.com>
1778 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1781 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
1784 * source.c (add_path): Skip empty dirnames.
1786 2021-02-25 Kevin Buettner <kevinb@redhat.com>
1788 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1789 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1791 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1794 * target.c (target_mourn_inferior): Only compare pids in
1795 target_mourn_inferior.
1797 2021-02-25 Jan Matyas <jmatyas@codasip.com>
1800 * remote.c (remote_target::start_remote): Ensure the single
1801 thread, automatically added for remote targets without the
1802 concept of threading, is initially in set to the "resumed"
1804 * remote.c (remote_target::add_current_inferior_and_thread):
1805 Add return value - return the main thread.
1807 2021-02-25 Jan Vrany <jan.vrany@labware.com>
1809 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1810 (mi_tsv_created): Likewise.
1811 (mi_tsv_deleted): Likewise.
1813 2021-02-25 Tom de Vries <tdevries@suse.de>
1816 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1817 section_kind for &dwo_file->sections.info.
1819 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1822 * f-lang.c (fortran_argument_convert): Delete declaration.
1823 (fortran_prepare_argument): New function.
1824 (evaluate_subexp_f): Move logic to new function
1825 fortran_prepare_argument.
1827 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1829 * f-exp.y (f77_keywords): Add 'associated'.
1830 * f-lang.c (fortran_associated): New function.
1831 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1832 (operator_length_f): Likewise.
1833 (print_unop_or_binop_subexp_f): New function.
1834 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1835 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1836 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1837 (operator_check_f): Likewise.
1838 * std-operator.def: Add FORTRAN_ASSOCIATED.
1840 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1842 * f-exp.y (fortran_operators): Add ".xor.".
1844 2021-02-24 Tom de Vries <tdevries@suse.de>
1847 * dwarf2/attribute.c (attribute::form_is_signed): New function
1849 * dwarf2/attribute.h (attribute::as_signed): ... here.
1850 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1851 (attribute::form_is_signed): Declare.
1852 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1853 for DW_AT_decl_file.
1855 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1857 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1858 order for <sys/ptrace.h> and <asm/ptrace.h>.
1860 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1862 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1865 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1867 * exec.c (set_section_command): Move variable declarations into
1868 the function body, and use std::string instead of a fixed size
1871 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1873 * exec.c (exec_target::get_section_table): Delete member function.
1874 (section_table_read_available_memory): Use current_top_target, not
1875 just the exec_ops target.
1876 * target-delegates.c: Regenerate.
1877 * target.c (default_get_section_table): New function.
1878 * target.h (target_ops::get_section_table): Change default
1879 behaviour to call default_get_section_table.
1880 (default_get_section_table): Declare.
1882 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1884 * exec.c (exec_target::close): Call new clear_target_sections
1886 (program_space::add_target_sections): Update name of member
1888 (program_space::add_target_sections): Update name of member
1890 (program_space::remove_target_sections): Likewise.
1891 (exec_one_fork): Use new target_sections member function.
1892 (exec_target::get_section_table): Likewise.
1893 (exec_target::files_info): Likewise.
1894 (set_section_command): Likewise.
1895 (exec_set_section_address): Likewise.
1896 (exec_target::has_memory): Use new target_sections member
1898 * progspace.h (program_space::clear_target_sections): New member
1900 (program_space::target_sections): Rename member variable to
1901 m_target_sections, replace with a new member function.
1902 (program_space::m_target_sections): New member variable.
1903 * solib-dsbt.c (scan_dyntag): Use new member function.
1904 * solib-svr4.c (scan_dyntag): Likewise.
1906 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1908 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1910 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1911 (section_table_read_available_memory): Make local const.
1912 (exec_target::xfer_partial): Make local const.
1913 (print_section_info): Make parameter const.
1914 * gdb/exec.h (print_section_info): Likewise.
1915 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1917 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1919 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1921 * gdb/s390-tdep.c (s390_load): Likewise.
1922 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1923 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1924 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1926 (target_debug_print_const_target_section_table_p): ...this.
1927 * gdb/target-delegates.c: Regenerate.
1928 * gdb/target.c (target_get_section_table): Make return type const.
1929 (target_section_by_addr): Likewise. Also make some locals const.
1930 (memory_xfer_partial_1): Make some locals const.
1931 * gdb/target.h (struct target_ops) <get_section_table>: Make
1933 (target_section_by_addr): Likewise.
1934 (target_get_section_table): Likewise.
1936 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1938 * NEWS: Mention new 'maint info target-sections' command.
1939 * maint.c (maintenance_info_target_sections): New function.
1940 (_initialize_maint_cmds): Register new command.
1942 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1944 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1945 (riscv_features_from_bfd): ...this. Change parameter type to
1946 'bfd*', and update as required.
1947 (riscv_find_default_target_description): Update call to
1948 riscv_features_from_bfd. Select a default xlen based on
1950 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1952 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1954 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1955 dynamic types in UNOP_IND.
1957 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1960 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1962 (~dwarf2_queue_guard): Clear queue.
1963 (queue_comp_unit): Assert that queue is
1965 (process_queue): Adjust.
1966 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1968 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1971 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1972 to decide whether or not to enqueue it for expansion.
1973 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1974 after calling maybe_queue_comp_unit.
1976 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1978 * linux-nat.c (linux_nat_filter_event): Return void.
1980 2021-02-22 Tom Tromey <tromey@adacore.com>
1982 * solib-svr4.c (enable_break): Update.
1983 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1985 (target_bfd_reopen): Change parameter type.
1986 * bfd-target.h (target_bfd_reopen): Change parameter type.
1988 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1990 * thread.c (add_thread_silent): Add assert.
1991 (find_thread_ptid): Add assert.
1993 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1996 * inf-ptrace.c (struct target_unpusher): Move to target.h.
1997 (target_unpush_up): Likewise.
1998 * procfs.c (procfs_target::attach): Push target early. Use
1999 target_unpush_up to unpush target in case of error.
2000 * target.h (struct target_unpusher): Move here.
2001 (target_unpush_up): Likewise.
2003 2021-02-19 Kevin Buettner <kevinb@redhat.com>
2005 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2006 (which in turn includes <gnulib/config.h>) before include
2009 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
2012 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2013 (decode_j_type_insn): Likewise.
2014 (decode_cj_type_insn): Likewise.
2015 (decode_b_type_insn): Likewise.
2018 2021-02-18 Tom Tromey <tom@tromey.com>
2020 * expression.h (struct expression) <evaluate>: Declare method.
2021 * eval.c (evaluate_subexp): Simplify.
2022 (expression::evaluate): New method.
2023 (evaluate_expression, evaluate_type): Use expression::evaluate.
2025 2021-02-17 Kevin Buettner <kevinb@redhat.com>
2027 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2029 (ada_lookup_name_info): Likewise.
2031 2021-02-13 Mike Frysinger <vapier@gentoo.org>
2033 * aclocal.m4: Regenerate.
2035 2021-02-12 Tom de Vries <tdevries@suse.de>
2038 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2039 (lin_thread_signals): New static var.
2040 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2042 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2043 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2045 * linux-thread-db.c (check_thread_signals): Use
2046 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2048 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2050 * f-exp.y (f77_keywords): Add allocated.
2051 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2052 (operator_length_f): Likewise.
2053 (print_subexp_f): Likewise.
2054 (dump_subexp_body_f): Likewise.
2055 (operator_check_f): Likewise.
2056 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2058 2021-02-11 Tom de Vries <tdevries@suse.de>
2061 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2062 Return true for DW_FORM_strx.
2064 2021-02-11 Tom Tromey <tromey@adacore.com>
2067 * parse.c (write_exp_symbol_reference): Write sym.block.
2069 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2071 * NEWS: Mention changes to 'maint info sections'.
2072 * maint.c (match_substring): Return a bool, fix whitespace issue.
2073 (struct single_bfd_flag_info): New struct.
2074 (bfd_flag_info): New static global.
2075 (match_bfd_flags): Return a bool, use bfd_flag_info.
2076 (print_bfd_flags): Use bfd_flag_info.
2077 (maint_print_section_info): Delete trailing whitespace.
2078 (struct maint_info_sections_opts): New struct.
2079 (maint_info_sections_option_defs): New static global.
2080 (maint_info_sections_completer): New function.
2081 (maintenance_info_sections): Use option parsing mechanism.
2082 (_initialize_maint_cmds): Update command help text for 'maint info
2083 sections' and register a command completer.
2085 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2087 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2088 functionality merged into...
2089 (maint_print_all_sections): ...this new function.
2090 (maintenance_info_sections): Make use of maint_print_all_sections,
2091 allow all objects to be printed even where there's no executable.
2093 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2095 * breakpoint.c (resolve_sal_pc): Make use of
2096 bound_minimal_symbol::obj_section.
2097 * maint.c (maintenance_translate_address): Likewise.
2098 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2099 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2101 * printcmd.c (info_address_command): Make use of
2102 bound_minimal_symbol::obj_section.
2104 2021-02-11 Alan Modra <amodra@gmail.com>
2106 * arm-symbian-tdep.c: Delete.
2107 * NEWS: Mention arm-symbian removal.
2108 * Makefile.in: Remove arm-symbian-tdep entries.
2109 * configure.tgt: Remove arm*-*-symbianelf*.
2110 * doc/gdb.texinfo: Remove mention of SymbianOS.
2111 * osabi.c (gdb_osabi_names): Remove "Symbian".
2112 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2113 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2114 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2116 * testsuite/gdb.base/dup-sect.exp: Likewise.
2117 * testsuite/gdb.base/long_long.exp: Likewise.
2118 * testsuite/gdb.base/solib-weak.exp: Likewise.
2119 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2120 * testsuite/gdb.python/py-section-script.exp: Likewise.
2121 * testsuite/lib/dwarf.exp: Likewise.
2122 * testsuite/lib/gdb.exp: Likewise.
2124 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2126 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2127 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2128 (one_or_two_args): New pattern.
2129 (f77_keywords): Add lbound and ubound.
2130 * f-lang.c (fortran_bounds_all_dims): New function.
2131 (fortran_bounds_for_dimension): New function.
2132 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2133 (operator_length_f): Likewise.
2134 (print_subexp_f): Likewise.
2135 (dump_subexp_body_f): Likewise.
2136 (operator_check_f): Likewise.
2137 * std-operator.def (FORTRAN_LBOUND): Define.
2138 (FORTRAN_UBOUND): Define.
2140 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2142 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2143 and set_section_index member functions where appropriate.
2144 * coffread.c (coff_symtab_read): Likewise.
2145 (process_coff_symbol): Likewise.
2146 * ctfread.c (set_symbol_address): Likewise.
2147 * dwarf2/read.c (add_partial_symbol): Likewise.
2148 (var_decode_location): Likewise.
2149 * language.c: Likewise.
2150 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2151 (compact_minimal_symbols): Likewise.
2152 (minimal_symbol_upper_bound): Likewise.
2153 * objfiles.c (relocate_one_symbol): Likewise.
2154 * psympriv.h (partial_symbol::obj_section): Likewise.
2155 (partial_symbol::address): Likewise.
2156 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2157 * stabsread.c (scan_file_globals): Likewise.
2158 * symmisc.c (dump_msymbols): Likewise.
2159 * symtab.c (general_symbol_info::obj_section): Likewise.
2160 (fixup_section): Likewise.
2161 (get_msymbol_address): Likewise.
2162 * symtab.h (general_symbol_info::section): Rename to...
2163 (general_symbol_info::m_section): ...this.
2164 (general_symbol_info::set_section_index): New member function.
2165 (general_symbol_info::section_index): Likewise.
2166 (SYMBOL_SECTION): Delete.
2167 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2168 set_section_index member functions where appropriate.
2169 (MSYMBOL_SECTION): Delete.
2170 (symbol::symbol): Update to initialize 'm_section'.
2171 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2172 (process_xcoff_symbol): Likewise.
2174 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2176 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2177 MSYMBOL_OBJ_SECTION.
2178 * findvar.c (language_defn::read_var_value): Likewise.
2179 * infcmd.c (jump_command): Likewise.
2180 * linespec.c (minsym_found): Likewise.
2181 * maint.c (maintenance_translate_address): Likewise.
2182 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2183 (minimal_symbol_upper_bound): Likewise.
2184 * parse.c (find_minsym_type_and_address): Likewise.
2185 (operator_check_standard): Likewise.
2186 * printcmd.c (info_address_command): Likewise.
2187 * symmisc.c (dump_msymbols): Likewise.
2188 (print_symbol): Likewise.
2189 * symtab.c (general_symbol_info::obj_section): Define new
2191 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2192 (find_pc_sect_compunit_symtab): Likewise.
2193 (find_function_start_sal): Likewise.
2194 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2195 MSYMBOL_OBJ_SECTION.
2196 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2198 (SYMBOL_OBJ_SECTION): Delete.
2199 (MSYMBOL_OBJ_SECTION): Delete.
2201 2021-02-09 Tom Tromey <tom@tromey.com>
2203 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2205 2021-02-09 Tom de Vries <tdevries@suse.de>
2208 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2209 construct an array type. Add assert to ensure that element_type is
2212 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2214 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2215 (gcore_collect_regset_section_cb): Delete.
2216 (gcore_collect_thread_registers): Delete.
2217 (gcore_build_thread_register_notes): Delete.
2218 (gcore_find_signalled_thread): Delete.
2219 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2220 'gdbarch' and 'thread_info' declarations.
2221 (gcore_build_thread_register_notes): Delete declaration.
2222 (gcore_find_signalled_thread): Likewise.
2223 * fbsd-tdep.c: Remove 'gcore.h' include.
2224 (struct fbsd_collect_regset_section_cb_data): New struct.
2225 (fbsd_collect_regset_section_cb): New function.
2226 (fbsd_collect_thread_registers): New function.
2227 (struct fbsd_corefile_thread_data): New struct.
2228 (fbsd_corefile_thread): New function.
2229 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2230 * linux-tdep.c: Remove 'gcore.h' include.
2231 (struct linux_collect_regset_section_cb_data): New struct.
2232 (linux_collect_regset_section_cb): New function.
2233 (linux_collect_thread_registers): New function.
2234 (linux_corefile_thread): Call Linux specific code.
2235 (find_signalled_thread): New function.
2236 (linux_make_corefile_notes): Call find_signalled_thread.
2238 2021-02-09 Tom Tromey <tromey@adacore.com>
2240 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2242 * value.c (value_contents_copy_raw): Now static.
2243 * value.h (value_contents_copy_raw): Don't declare.
2245 2021-02-09 Tom Tromey <tromey@adacore.com>
2247 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2250 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
2253 * arc-linux-tdep.c (handle_atomic_sequence): New.
2254 (arc_linux_software_single_step): Call handle_atomic_sequence().
2256 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2258 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2260 (REQUIRE_WINDOW): Call is_valid member function.
2261 (REQUIRE_WINDOW_FOR_SETTER): New define.
2262 (gdbpy_tui_is_valid): Call is_valid member function.
2263 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2264 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2266 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2267 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2270 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2272 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2273 for the title is not nullptr.
2275 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2277 * tui-layout.c (saved_tui_windows): Delete.
2278 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2279 call new get_windows member function instead.
2280 (tui_get_window_by_name): Check in tui_windows.
2281 (tui_layout_window::apply): Don't add to tui_windows.
2282 * tui-layout.h (tui_layout_base::get_windows): New member function.
2283 (tui_layout_window::get_windows): Likewise.
2284 (tui_layout_split::get_windows): Likewise.
2286 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2288 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2289 of the window objects.
2291 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2293 * python/python.c (gdbpy_print_stack): Reformat an error message.
2295 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2297 * tui/tui-interp.c (tui_command_line_handler): New function.
2298 (tui_interp::resume): Register tui_command_line_handler as the
2300 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2302 (tui_getc_1): Delete handling of '\n' and '\r'.
2303 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2305 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2307 * tui/tui-regs.c (tui_data_window::display_registers_from):
2308 Mark invisible register sub windows.
2309 (tui_data_window::check_register_values): Ignore invisible
2310 register sub windows.
2312 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2314 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2315 n_spaces with a negative value.
2317 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2319 * tui/tui-regs.c (tui_data_window::display_registers_from):
2320 Add refresh_window call.
2322 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2324 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2326 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2328 * symmisc.c (std_in, std_out, std_err): Remove.
2329 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2331 2021-02-05 Tom de Vries <tdevries@suse.de>
2333 PR breakpoints/27330
2334 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2335 glibc object file has debug info.
2337 2021-02-05 Tom de Vries <tdevries@suse.de>
2340 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2342 2021-02-05 Tom de Vries <tdevries@suse.de>
2344 PR breakpoints/27313
2345 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2348 2021-02-05 Tom Tromey <tom@tromey.com>
2350 * compile/compile-c-support.c (get_compile_context)
2351 (c_get_compile_context, cplus_get_compile_context): Change return
2353 * language.c (language_defn::get_compile_instance): New method.
2354 * language.h (language_defn::get_compile_instance): Change return
2355 type. No longer inline.
2356 * c-lang.c (c_language::get_compile_instance): Change return type.
2357 (cplus_language::get_compile_instance): Change return type.
2358 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2360 * compile/compile.c (compile_to_object): Update.
2362 2021-02-05 Tom Tromey <tom@tromey.com>
2364 * parser-defs.h (write_exp_symbol_reference): Declare.
2365 * parse.c (write_exp_symbol_reference): New function.
2366 * p-exp.y (variable): Use write_exp_symbol_reference.
2367 * m2-exp.y (variable): Use write_exp_symbol_reference.
2368 * f-exp.y (variable): Use write_exp_symbol_reference.
2369 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2370 * c-exp.y (variable): Use write_exp_symbol_reference.
2372 2021-02-05 Tom de Vries <tdevries@suse.de>
2375 * valarith.c (complex_binop): Throw an error if complex type can't
2378 2021-02-05 Tom de Vries <tdevries@suse.de>
2381 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2384 2021-02-05 Tom de Vries <tdevries@suse.de>
2386 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2388 2021-02-04 Mike Frysinger <vapier@gentoo.org>
2390 * configure.tgt (riscv*-*-*): Set gdb_sim.
2392 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2394 * target.c (target_is_non_stop_p): Return bool.
2395 * target.h (target_is_non_stop_p): Return bool.
2397 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2399 * record-full.c (record_full_async_inferior_event_handler):
2400 Don't clear async event handler.
2401 (record_full_base_target::wait): Clear async event handler at
2404 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2406 * record-btrace.c (record_btrace_handle_async_inferior_event):
2407 Don't clear async event handler.
2408 (record_btrace_target::wait): Clear async event handler at
2411 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2413 * remote.c (remote_target::wait): Clear async event handler at
2414 beginning, mark if needed at the end.
2415 (remote_async_inferior_event_handler): Don't set or clear async
2418 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2420 * async-event.h (async_event_handler_func): Add documentation.
2421 * async-event.c (check_async_event_handlers): Don't clear
2422 async_event_handler ready flag.
2423 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2425 * record-btrace.c (record_btrace_handle_async_inferior_event):
2427 * record-full.c (record_full_async_inferior_event_handler):
2429 * remote-notif.c (remote_async_get_pending_events_handler):
2431 * remote.c (remote_async_inferior_event_handler): Likewise.
2433 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2435 * infrun.c (handle_inferior_event): Move stop_soon variable to
2438 2021-02-03 Pedro Alves <pedro@palves.net>
2440 * infcmd.c (detach_command): Hold strong reference to target, and
2441 if all-stop on entry, restart threads on exit.
2442 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2443 (restart_stepped_thread): ... this new function. Also handle
2445 (restart_after_all_stop_detach): New function.
2446 * infrun.h (restart_after_all_stop_detach): Declare.
2448 2021-02-03 Pedro Alves <pedro@palves.net>
2450 * infrun.c (struct step_over_info): Initialize fields.
2451 (prepare_for_detach): Handle ongoing in-line step over.
2453 2021-02-03 Pedro Alves <pedro@palves.net>
2455 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2457 * remote.c (remote_target::remote_detach_1): ... and here ...
2458 * target.c (target_detach): ... instead of here.
2459 * target.h (target_ops::detach): Add comment.
2461 2021-02-03 Pedro Alves <pedro@palves.net>
2463 * infrun.c (struct wait_one_event): Move higher up.
2464 (prepare_for_detach): Abort in-progress displaced steps instead of
2465 letting them complete.
2466 (handle_one): If the inferior is detaching, don't add the thread
2467 back to the global step-over chain.
2468 (restart_threads): Don't restart threads if detaching.
2469 (handle_signal_stop): Remove inferior::detaching reference.
2471 2021-02-03 Pedro Alves <pedro@palves.net>
2473 * infrun.c (prepare_for_detach): Don't release scoped_restore
2476 2021-02-03 Pedro Alves <pedro@palves.net>
2478 * infrun.c (handle_one): New function, factored out from ...
2479 (stop_all_threads): ... here.
2481 2021-02-03 Pedro Alves <pedro@palves.net>
2483 * remote.c (remote_notif_stop_ack): Don't error out on
2484 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2485 (remote_target::discard_pending_stop_replies): Don't delete
2486 in-flight notification; instead, clear its contents.
2488 2021-02-03 Pedro Alves <pedro@palves.net>
2490 * remote.c (extended_remote_target::attach): Set target async in
2491 the target-non-stop path too.
2493 2021-02-03 Pedro Alves <pedro@palves.net>
2496 * infrun.c (handle_signal_stop): Move main context_switch call
2497 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2499 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2501 * NEWS (Changed commands): Add entry for the behavior change of
2502 the inferior command.
2503 * inferior.c (inferior_command): When no argument is given to the
2504 inferior command, display info about the currently selected
2507 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2509 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2511 (read_attribute_reprocess): Adjust.
2513 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2515 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2516 <gnu_ranges_base>: ... this...
2517 <rnglists_base>: ... and this.
2518 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2519 <gnu_ranges_base>: ... this...
2520 <rnglists_base>: ... and this.
2521 (read_cutu_die_from_dwo): Adjust
2522 (dwarf2_get_pc_bounds): Adjust
2523 (dwarf2_record_block_ranges): Adjust.
2524 (read_full_die_1): Adjust
2525 (partial_die_info::read): Adjust.
2526 (read_rnglist_index): Adjust.
2528 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2531 * dwarf2/read.c (read_loclists_rnglists_header): Add
2532 header_offset parameter and use it.
2533 (read_loclist_index): Read header of the current contribution,
2534 not the one at the beginning of the section.
2535 (read_rnglist_index): Likewise.
2537 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2540 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2541 requires_reprocessing flag.
2542 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2544 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2545 and DW_FORM_loclistx.
2546 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2547 instead of set_address for DW_FORM_loclistx and
2550 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2552 * dwarf2/read.c (read_loclist_index): Remove bound check for
2554 (read_rnglist_index): Likewise.
2556 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2558 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2561 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2563 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2565 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2567 * dwarf2/read.c (read_loclist_index): Change complaints into
2570 2021-02-02 Tom de Vries <tdevries@suse.de>
2573 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2576 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2578 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2579 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2580 here from linux-tdep.c and given a new name. Minor cleanups.
2581 (gcore_collect_regset_section_cb): Likewise.
2582 (gcore_collect_thread_registers): Likewise.
2583 (gcore_build_thread_register_notes): Likewise.
2584 (gcore_find_signalled_thread): Likewise.
2585 * gcore.h (gcore_build_thread_register_notes): Declare.
2586 (gcore_find_signalled_thread): Declare.
2587 * fbsd-tdep.c: Add 'gcore.h' include.
2588 (struct fbsd_collect_regset_section_cb_data): Delete.
2589 (fbsd_collect_regset_section_cb): Delete.
2590 (fbsd_collect_thread_registers): Delete.
2591 (struct fbsd_corefile_thread_data): Delete.
2592 (fbsd_corefile_thread): Delete.
2593 (fbsd_make_corefile_notes): Call
2594 gcore_build_thread_register_notes instead of the now deleted
2596 * linux-tdep.c: Add 'gcore.h' include.
2597 (struct linux_collect_regset_section_cb_data): Delete.
2598 (linux_collect_regset_section_cb): Delete.
2599 (linux_collect_thread_registers): Delete.
2600 (linux_corefile_thread): Call
2601 gcore_build_thread_register_notes.
2602 (find_signalled_thread): Delete.
2603 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2605 2021-01-29 Tom de Vries <tdevries@suse.de>
2607 PR breakpoints/26063
2608 * infrun.c (process_event_stop_test): Reset
2609 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2612 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2614 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2615 assert. Extend the header comment.
2617 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2619 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2620 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2621 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2622 (tui_locator_win_info_ptr): Delete declaration.
2623 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2624 (tui_disasm_window::set_contents): Fetch state from tui_location
2626 (tui_get_begin_asm_address): Likewise.
2627 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2629 (get_locator_window): Delete.
2630 (initialize_known_windows): Treat locator window just like all the
2632 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2633 (tui_source_window::set_contents): Fetch state from tui_location
2635 (tui_source_window::showing_source_p): Likewise.
2636 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2638 (tui_locator_win_info_ptr): Delete.
2639 (tui_locator_window::make_status_line): Fetch state from
2640 tui_location global.
2641 (tui_locator_window::rerender): Remove check of 'handle',
2642 reindent function body.
2643 (tui_locator_window::set_locator_fullname): Delete.
2644 (tui_locator_window::set_locator_info): Delete.
2645 (tui_update_locator_fullname): Delete.
2646 (tui_show_frame_info): Likewise.
2647 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2648 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2649 tui/tui-location.h and renamed to
2650 tui_location_tracker::set_location.
2651 (tui_locator_window::set_locator_fullname): Moved to
2652 tui/tui-location.h and renamed to
2653 tui_location_tracker::set_fullname.
2654 (tui_locator_window::full_name): Delete.
2655 (tui_locator_window::proc_name): Delete.
2656 (tui_locator_window::line_no): Delete.
2657 (tui_locator_window::addr): Delete.
2658 (tui_locator_window::gdbarch): Delete.
2659 (tui_update_locator_fullname): Delete declaration.
2660 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2662 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2663 (tui_display_main): Call function on tui_location directly.
2664 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2665 * tui/tui-location.c: New file.
2666 * tui/tui-location.h: New file.
2668 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2670 * gdbtypes.h (get_type_arch): Rename to...
2671 (struct type) <arch>: ... this, update all users.
2673 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2675 * gdbtypes.h (struct type) <arch>: Rename to...
2676 <arch_owner>: ... this, update all users.
2677 <objfile>: Rename to...
2678 <objfile_owner>: ... this, update all users.
2680 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2682 * gdbcmd.h (execute_command_to_string): Update comment.
2683 * top.c (execute_command_to_string): Update header comment.
2685 2021-01-28 Tom de Vries <tdevries@suse.de>
2687 PR breakpoints/27205
2688 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2689 (create_longjmp_master_breakpoint_names): New function, factored out
2691 (create_longjmp_master_breakpoint): ... here. Only try to install
2692 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2693 breakpoint in libc.so failed.
2695 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2698 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2699 unique_ptr is released when the wrapped pointer is kept for later
2702 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2704 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2705 BLR and BR instructions.
2706 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2707 (enum aarch64_masks): New.
2709 2021-01-26 Tom Tromey <tromey@adacore.com>
2711 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2712 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2713 (windows_init_thread_list, windows_nat::handle_load_dll)
2714 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2715 (windows_nat_target::resume)
2716 (windows_nat_target::get_windows_debug_event)
2717 (windows_nat_target::interrupt, windows_xfer_memory)
2718 (windows_nat_target::close): Update.
2719 * nat/windows-nat.c (DEBUG_EVENTS): Use
2720 debug_prefixed_printf_cond.
2721 (matching_pending_stop, fetch_pending_stop)
2722 (continue_last_debug_event): Update.
2724 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2726 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2727 elfcore_write_file_note.
2729 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
2731 * arc-tdep.c (arc_add_reggroups): New function.
2732 (arc_gdbarch_init): Call arc_add_reggroups.
2734 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
2736 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2738 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2739 Simon Marchi <simon.marchi@polymtl.ca>
2740 Tom de Vries <tdevries@suse.de>
2742 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2745 2021-01-25 Tom Tromey <tromey@adacore.com>
2747 * dwarf2/read.c (get_mpz): New function.
2748 (get_dwarf2_rational_constant): Use it.
2750 2021-01-25 Tom Tromey <tromey@adacore.com>
2752 * ada-lang.c (resolve_subexp): Handle array context.
2754 2021-01-23 Tom Tromey <tom@tromey.com>
2757 * compile/compile-loc2c.c (note_register): New function.
2758 (pushf_register_address, pushf_register): Use it.
2760 2021-01-23 Tom Tromey <tom@tromey.com>
2762 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2763 Change type of "registers_used".
2764 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2765 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2766 (locexpr_generate_c_location, loclist_generate_c_location): Change
2767 type of "registers_used".
2768 * compile/compile.h (compile_dwarf_expr_to_c)
2769 (compile_dwarf_bounds_to_c): Update.
2770 * compile/compile-loc2c.c (pushf_register_address)
2771 (pushf_register, do_compile_dwarf_expr_to_c)
2772 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2773 of "registers_used".
2774 * compile/compile-c.h (generate_c_for_variable_locations):
2776 * compile/compile-c-symbols.c (generate_vla_size)
2777 (generate_c_for_for_one_variable): Change type of
2779 (generate_c_for_variable_locations): Return std::vector.
2780 * compile/compile-c-support.c (generate_register_struct): Change
2781 type of "registers_used".
2784 2021-01-23 Tom Tromey <tom@tromey.com>
2786 * compile/compile-internal.h (class compile_instance)
2787 <set_arguments>: Change return type.
2788 * compile/compile.c (compile_to_object): Remove call to reset.
2789 (compile_instance::set_arguments): Change return type.
2791 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2793 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2794 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2796 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2798 * Makefile.in (SELFTESTS_SRCS): Add
2799 unittests/gdb_tilde_expand-selftests.c.
2800 * unittests/gdb_tilde_expand-selftests.c: New file.
2802 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2805 * NEWS: Mention new command.
2806 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2807 (version_style): Define.
2808 (cli_style_option::cli_style_option): Add intensity parameter, and
2810 (_initialize_cli_style): Register version style set/show commands.
2811 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2812 (version_style): Declare.
2813 * top.c (print_gdb_version): Use version_stype, and styled_string
2814 to print the GDB version string.
2816 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2818 * utils.c (emit_style_escape): Only emit an escape sequence if the
2819 requested style is different than the current applied style.
2820 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2821 current applied_style.
2822 (fputs_styled): Remove is_default check.
2823 (fputs_styled_unfiltered): Likewise.
2824 (vfprintf_styled_no_gdbfmt): Likewise.
2826 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2828 * remote.h (remote_debug_printf): New.
2829 (remote_debug_printf_nofunc): New.
2830 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2831 * remote.c: Use above macros throughout file.
2833 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2835 * remote.h (remote_debug): Change to bool.
2836 * remote.c (remote_debug): Change to bool.
2837 (_initialize_remote): Adjust.
2839 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2841 * target.h (remote_debug): Move to...
2842 * remote.h (remote_debug): ... here.
2843 * top.c (remote_debug): Move to...
2844 * remote.c (remote_debug): ... here.
2845 * remote-sim.c: Include remote.h.
2847 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2849 * cli/cli-cmds.c (show_remote_debug): Remove.
2850 (show_remote_timeout): Remove.
2851 (_initialize_cli_cmds): Don't register commands.
2852 * remote.c (show_remote_debug): Move here.
2853 (show_remote_timeout): Move here.
2854 (_initialize_remote): Register commands.
2856 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2858 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2859 type::objfile method instead.
2861 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2863 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2864 use the type::is_objfile_owned method.
2866 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
2868 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2869 (TYPE_OWNER): Remove.
2870 (TYPE_OBJFILE): Adjust.
2871 (struct main_type) <flag_objfile_owned>: Rename to...
2872 <m_flag_objfile_owned>: ... this.
2873 <owner>: Rename to...
2874 <m_owner>: ... this.
2875 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2877 (TYPE_ALLOC): Adjust.
2878 * gdbtypes.c (alloc_type): Adjust.
2879 (alloc_type_arch): Adjust.
2880 (alloc_type_copy): Adjust.
2881 (get_type_arch): Adjust.
2882 (smash_type): Adjust.
2883 (lookup_array_range_type): Adjust.
2884 (recursive_dump_type): Adjust.
2885 (copy_type_recursive): Adjust.
2886 * compile/compile-c-types.c (convert_func): Adjust.
2887 (convert_type_basic): Adjust.
2888 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2891 (language_arch_info::type_and_symbol::alloc_type_symbol):
2894 2021-01-21 Luis Machado <luis.machado@linaro.org>
2896 * coffread.c (enter_linenos): Passing string to complaint.
2897 * valops.c (value_assign): Make array view.
2899 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2901 * auto-load.h (debug_auto_load): Move here.
2902 (auto_load_debug_printf): New.
2903 * auto-load.c: Use auto_load_debug_printf.
2904 (debug_auto_load): Move to header.
2905 * linux-thread-db.c (try_thread_db_load): Use
2906 auto_load_debug_printf.
2907 * main.c (captured_main_1): Likewise.
2909 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2911 * f-valprint.c (f77_array_offset_tbl): Remove.
2913 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2915 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2917 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2919 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2922 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
2925 * python/py-breakpoint.c (bppy_get_location): Handle
2926 bp_hardware_breakpoint.
2927 (bppy_init): Likewise.
2928 (gdbpy_breakpoint_created): Likewise.
2930 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2932 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2934 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2936 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2937 (_initialize_gdb_bfd): Adjust.
2939 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2942 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2944 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2946 * dwarf2/read.c (follow_die_offset): Add logging.
2947 (dwarf2_per_objfile::age_comp_units): Add logging.
2949 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2951 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2952 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2953 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2954 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2955 * arm-tdep.c (struct frame_unwind): Make static.
2956 * auto-load.c (auto_load_safe_path_vec): Make static.
2957 * csky-tdep.c (csky_stub_unwind): Make static.
2958 * gdbarch.c (gdbarch_data_registry): Make static.
2959 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2960 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2961 * i386-tdep.c (i386_frame_setup_skip_insns,
2962 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2964 * infrun.c (observer_mode): Make static.
2965 * linux-nat.c (sigchld_action): Make static.
2966 * linux-thread-db.c (thread_db_list): Make static.
2967 * maint-test-options.c (maintenance_test_options_list):
2968 * mep-tdep.c (mep_csr_registers): Make static.
2969 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2970 (stats): Make static.
2971 * nat/linux-osdata.c (struct osdata_type): Make static.
2972 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2973 * progspace.c (last_program_space_num): Make static.
2974 * python/py-param.c (struct parm_constant): Remove struct type
2976 (parm_constants): Make static.
2977 * python/py-record-btrace.c (btpy_list_methods): Make static.
2978 * python/py-record.c (recpy_gap_type): Make static.
2979 * record.c (record_goto_cmdlist): Make static.
2980 * regcache.c (regcache_descr_handle): Make static.
2981 * registry.h (DEFINE_REGISTRY): Make definition static.
2982 * symmisc.c (std_in, std_out, std_err): Make static.
2983 * top.c (previous_saved_command_line): Make static.
2984 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2986 * unittests/command-def-selftests.c (nr_duplicates,
2987 nr_invalid_prefixcmd, lists): Make static.
2988 * unittests/observable-selftests.c (test_notification): Make
2990 * unittests/optional/assignment/1.cc (counter): Make static.
2991 * unittests/optional/assignment/2.cc (counter): Make static.
2992 * unittests/optional/assignment/3.cc (counter): Make static.
2993 * unittests/optional/assignment/4.cc (counter): Make static.
2994 * unittests/optional/assignment/5.cc (counter): Make static.
2995 * unittests/optional/assignment/6.cc (counter): Make static.
2997 2021-01-20 Joel Sherrill <joel@rtems.org>
3000 * remote.c (struct remote_thread_info) <resume_state>: Rename
3002 <get_resume_state>: ... this.
3003 (remote_target::resume): Adjust.
3004 (remote_target::commit_resume): Adjust.
3005 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3007 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3008 Tom Tromey <tom@tromey.com>
3010 * stap-probe.c (stap_parse_single_operand): Handle '!'
3012 (stap_parse_argument_conditionally): Likewise.
3013 Skip spaces after processing open-parenthesis sub-expression.
3014 (stap_parse_argument_1): Skip spaces after call to
3015 stap_parse_argument_conditionally.
3016 Handle case when right-side expression is a parenthesized
3018 Skip spaces after call to stap_parse_argument_1.
3020 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3022 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3024 2021-01-19 Luis Machado <luis.machado@linaro.org>
3026 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3027 memory and save data.
3028 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3029 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3030 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3031 (trad_frame_value_bytes_p): Remove.
3032 (trad_frame_reset_saved_regs): Adjust documentation.
3033 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3034 constructor and reset the state of the registers.
3035 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3036 (trad_frame_value_bytes_p, trad_frame_set_value)
3037 (trad_frame_set_realreg, trad_frame_set_addr)
3038 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3039 (trad_frame_set_reg_realreg): Update to call member function.
3040 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3041 (trad_frame_get_prev_register): Likewise.
3043 * aarch64-tdep.c (aarch64_analyze_prologue)
3044 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3045 (aarch64_prologue_prev_register): Update to use member functions.
3046 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3047 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3048 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3049 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3050 (arm_make_epilogue_frame_cache): Likewise.
3051 * avr-tdep.c (avr_frame_unwind_cache)
3052 (avr_frame_prev_register): Likewise.
3053 * cris-tdep.c (cris_scan_prologue): Likewise.
3054 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3055 * frv-tdep.c (frv_analyze_prologue): Likewise.
3056 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3057 * lm32-tdep.c (lm32_frame_cache): Likewise.
3058 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3059 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3060 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3061 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3062 (reset_saved_regs): Adjust to set realreg.
3063 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3064 call member functions.
3065 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3066 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3067 (s390_backchain_frame_unwind_cache): Likewise.
3068 * score-tdep.c (score7_analyze_prologue)
3069 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3070 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3071 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3072 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3073 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3074 * tilegx-tdep.c (tilegx_analyze_prologue)
3075 (tilegx_frame_cache): Likewise.
3076 * v850-tdep.c (v850_frame_cache): Likewise.
3077 * vax-tdep.c (vax_frame_cache): Likewise.
3079 2021-01-19 Luis Machado <luis.machado@linaro.org>
3081 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3083 (put_frame_register_bytes): Likewise.
3084 Adjust documentation.
3085 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3086 (safe_frame_unwind_memory): Likewise.
3087 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3088 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3090 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3091 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3092 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3093 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3094 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3095 * dwarf2/loc.c (rw_pieced_value): Likewise.
3096 * hppa-tdep.c (hppa_frame_cache): Likewise.
3097 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3098 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3099 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3100 (i386_linux_rt_sigtramp_start): Likewise.
3101 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3102 * i386-tdep.c (i386_register_to_value): Likewise.
3103 * i387-tdep.c (i387_register_to_value): Likewise.
3104 * ia64-tdep.c (ia64_register_to_value): Likewise.
3105 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3106 (m32r_linux_rt_sigtramp_start): Likewise.
3107 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3108 * m68k-tdep.c (m68k_register_to_value): Likewise.
3109 * mips-tdep.c (mips_register_to_value)
3110 (mips_value_to_register): Likewise.
3111 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3112 (ppcfbsd_sigtramp_frame_cache): Likewise.
3113 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3114 (ppcobsd_sigtramp_frame_cache): Likewise.
3115 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3116 (rs6000_register_to_value): Likewise.
3117 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3118 * tramp-frame.c (tramp_frame_start): Likewise.
3119 * valops.c (value_assign): Likewise.
3121 2021-01-19 Luis Machado <luis.machado@linaro.org>
3123 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3125 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3126 instead of buffer and size.
3127 (trad_frame_set_reg_value_bytes): Likewise.
3128 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3129 (trad_frame_set_value_bytes): Likewise.
3131 2021-01-18 Mike Frysinger <vapier@gentoo.org>
3133 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3135 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3137 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3138 (riscv_fbsd_gregset): Use riscv_supply_regset.
3139 (riscv_fbsd_fpregset): Likewise.
3140 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3141 (riscv_linux_fregset): Likewise.
3142 * riscv-tdep.c (riscv_supply_regset): Define new function.
3143 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3145 2021-01-18 Tom de Vries <tdevries@suse.de>
3148 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3150 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3153 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3155 * remote.c (class remote_target) <remote_hostio_send_command,
3156 remote_hostio_parse_result>: Constify parameter.
3157 (remote_hostio_parse_result): Likewise.
3158 (remote_target::remote_hostio_send_command): Adjust.
3159 (remote_target::remote_hostio_pread_vFile): Adjust.
3160 (remote_target::fileio_readlink): Adjust.
3161 (remote_target::fileio_fstat): Adjust.
3163 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3165 * remote.c (remote_target::start_remote): Move wait_status to
3168 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3170 * remote.c (class remote_target):
3171 <add_current_inferior_and_thread>: Constify parameter.
3172 (stop_reply_extract_thread): Likewise.
3173 (remote_target::get_current_thread): Likewise.
3174 (remote_target::add_current_inferior_and_thread): Likewise.
3176 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3178 * remote.c (class remote_target)
3179 <remote_unpack_thread_info_response,
3180 parse_threadlist_response>: Constify parameter and/or return
3181 value and or local variable.
3182 (stub_unpack_int): Likewise.
3183 (unpack_nibble): Likewise.
3184 (unpack_byte): Likewise.
3185 (unpack_int): Likewise.
3186 (unpack_string): Likewise.
3187 (unpack_threadid): Likewise.
3188 (remote_target::remote_unpack_thread_info_response): Likewise.
3189 (remote_target::parse_threadlist_response): Likewise.
3191 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3193 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3195 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
3197 * MAINTAINERS (Write After Approval): Add myself.
3199 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3201 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3202 because is_trivially_default_constructible was first implemented with
3205 2021-01-14 Tom de Vries <tdevries@suse.de>
3207 PR breakpoints/27151
3208 * objfiles.h (in_plt_section): Handle .plt.sec.
3210 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3214 (remote_target::select_thread_for_ambiguous_stop_reply): New
3216 (remote_target::process_stop_reply): Call
3217 select_thread_for_ambiguous_stop_reply.
3219 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3221 * record-btrace.c (class record_btrace_target): Remove.
3222 (record_btrace_target::commit_resume): Remove.
3223 * record-full.c (class record_full_target): Remove.
3224 (record_full_target::commit_resume): Remove.
3226 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3228 * remote.c (enum class resume_state): New.
3229 (struct resumed_pending_vcont_info): New.
3230 (struct remote_thread_info) <resume_state, set_not_resumed,
3231 set_resumed_pending_vcont, resumed_pending_vcont_info,
3232 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3234 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3235 (remote_target::remote_add_thread): Adjust.
3236 (remote_target::process_initial_stop_replies): Adjust.
3237 (remote_target::resume): Adjust.
3238 (remote_target::commit_resume): Rely on state in
3239 remote_thread_info and not on tp->executing.
3240 (remote_target::process_stop_reply): Adjust.
3242 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3244 * arc-tdep.h (arc_debug_printf): New.
3245 * arc-tdep.c: Use arc_debug_printf.
3246 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3247 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3248 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3250 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3252 * arc-tdep.h (arc_debug): Change type to bool.
3253 * arc-tdep.c (arc_debug): Change type to bool.
3254 (arc_analyze_prologue): Adjust.
3255 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3256 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3258 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3260 * auto-load.c (auto_load_objfile_script_1): Use bool.
3261 (execute_script_contents): Use bool.
3263 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3265 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3267 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3269 * extension-priv.h (struct extension_language_script_ops)
3270 <auto_load_enabled>: Return bool.
3271 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3273 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3275 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3277 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3278 move comment to header.
3279 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3281 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3282 move comment to header.
3284 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3286 * auto-load.h (file_is_auto_load_safe): Change return type to
3287 bool, move comment here.
3288 * auto-load.c (file_is_auto_load_safe): Change return type and
3289 advice_printed to bool. Move comment to header.
3291 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3293 * jit.c (jit_debug_printf): New, use throughout file.
3295 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3297 * infrun.c (normal_stop): Fix indentation.
3299 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3301 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3303 * symfile.h: ... here.
3304 * symfile.c: Update doc.
3306 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3308 * target.h (baud_rate, serial_parity): Move declarations...
3309 * serial.h: ... here.
3310 * main.c: Include serial.h.
3311 * serial.c (baud_rate, serial_parity): Update doc.
3313 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3315 * top.c (pre_init_ui_hook): Remove.
3317 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3319 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3320 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3321 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3322 * features/aarch64-fpu.xml: Add bfloat16 type.
3324 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3326 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3328 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3330 * f-exp.y (dot_ops): Rename to...
3331 (fortran_operators): ...this. Add a header comment. Add symbol
3333 (yylex): Update to use fortran_operators not dot_ops. Remove
3334 special handling for '**', this is now included in
3337 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3339 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3340 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3341 * aarch64-tdep.c: Use aarch64_debug_printf.
3343 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3345 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3348 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3350 * jit.c (jit_debug): Change type to bool.
3351 (_initialize_jit): Adjust.
3353 2021-01-09 Tom Tromey <tom@tromey.com>
3356 * compile/compile.c (compile_to_object): Avoid crash when
3357 osabi_triplet_regexp returns NULL.
3359 2021-01-09 Tom Tromey <tom@tromey.com>
3361 * tracepoint.h (class collection_list) <append_exp>: Take a
3363 * tracepoint.c (collection_list::append_exp): Take a std::string.
3364 (encode_actions_1): Update.
3366 2021-01-08 Tom Tromey <tromey@adacore.com>
3368 * parse.c (parse_expression): Add void_context_p parameter. Use
3369 parse_exp_in_context.
3370 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3372 (print_command, call_command): Update.
3373 * expression.h (parse_expression): Add void_context_p parameter.
3375 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3377 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3378 for internalvar components that have a dynamic location.
3380 2021-01-08 Tom de Vries <tdevries@suse.de>
3383 * breakpoint.c (create_exception_master_breakpoint_probe)
3384 (create_exception_master_breakpoint_hook): Factor out
3386 (create_exception_master_breakpoint): ... here. Only try to install
3387 the master exception breakpoint in objfile.debug using the
3388 _Unwind_DebugHook method, if the install using probes in objfile
3391 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3393 * f-lang.c (fortran_value_subarray): Call value_from_component.
3395 2021-01-07 Mike Frysinger <vapier@gentoo.org>
3397 * remote-sim.c: Include memory-map.h.
3398 (gdbsim_target): Define memory_map override.
3399 (gdbsim_target::memory_map): Define.
3401 2021-01-07 Tom Tromey <tromey@adacore.com>
3403 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3405 2021-01-07 Tom Tromey <tromey@adacore.com>
3407 * ada-lang.c (add_component_interval): Start loop using vector's
3410 2021-01-06 Tom Tromey <tromey@adacore.com>
3412 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3414 * valarith.c (fixed_point_binop): Handle multiplication
3415 and division specially.
3416 * valops.c (value_to_gdb_mpq): New function.
3417 (value_cast_to_fixed_point): Use it.
3419 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3421 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3422 Call wnoutrefresh instead of tui_win_info::refresh_window.
3424 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3426 * tui/tui-source.c (tui_source_window::show_line_number):
3427 Redraw second space after line number.
3429 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3432 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3433 Fix source pad size in prefresh.
3434 (tui_source_window_base::show_source_content): Grow source pad
3437 2021-01-04 Mike Frysinger <vapier@gentoo.org>
3439 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3440 (bfin_frame_align): Use align_down.
3442 2021-01-04 Tom de Vries <tdevries@suse.de>
3444 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3445 terminators that do not terminate anything.
3447 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3449 * debug.c (debug_print_depth): New.
3450 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3451 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3452 * infrun.c (start_step_over): Use
3453 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3454 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3455 INFRUN_SCOPED_DEBUG_START_END.
3456 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3458 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3460 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3462 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3464 * utils.c (vfprintf_unfiltered): Print timestamp only when
3465 previous debug output ended with a newline.
3467 2021-01-04 Luis Machado <luis.machado@linaro.org>
3469 Update all users of trad_frame_saved_reg to use the new member
3472 Remote all struct keywords from declarations of trad_frame_saved_reg
3473 types, except on forward declarations.
3475 * aarch64-tdep.c: Update.
3476 * alpha-mdebug-tdep.c: Update.
3477 * alpha-tdep.c: Update.
3478 * arc-tdep.c: Update.
3479 * arm-tdep.c: Update.
3480 * avr-tdep.c: Update.
3481 * cris-tdep.c: Update.
3482 * csky-tdep.c: Update.
3483 * frv-tdep.c: Update.
3484 * hppa-linux-tdep.c: Update.
3485 * hppa-tdep.c: Update.
3486 * hppa-tdep.h: Update.
3487 * lm32-tdep.c: Update.
3488 * m32r-linux-tdep.c: Update.
3489 * m32r-tdep.c: Update.
3490 * m68hc11-tdep.c: Update.
3491 * mips-tdep.c: Update.
3492 * moxie-tdep.c: Update.
3493 * riscv-tdep.c: Update.
3494 * rs6000-tdep.c: Update.
3495 * s390-linux-tdep.c: Update.
3496 * s390-tdep.c: Update.
3497 * score-tdep.c: Update.
3498 * sparc-netbsd-tdep.c: Update.
3499 * sparc-sol2-tdep.c: Update.
3500 * sparc64-fbsd-tdep.c: Update.
3501 * sparc64-netbsd-tdep.c: Update.
3502 * sparc64-obsd-tdep.c: Update.
3503 * sparc64-sol2-tdep.c: Update.
3504 * tilegx-tdep.c: Update.
3505 * v850-tdep.c: Update.
3506 * vax-tdep.c: Update.
3508 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3509 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3511 * trad-frame.c: Update.
3512 Remove TF_REG_* enum.
3513 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3514 a trivially-constructible struct.
3515 (trad_frame_reset_saved_regs): Adjust to use member function.
3516 (trad_frame_value_p): Likewise.
3517 (trad_frame_addr_p): Likewise.
3518 (trad_frame_realreg_p): Likewise.
3519 (trad_frame_value_bytes_p): Likewise.
3520 (trad_frame_set_value): Likewise.
3521 (trad_frame_set_realreg): Likewise.
3522 (trad_frame_set_addr): Likewise.
3523 (trad_frame_set_unknown): Likewise.
3524 (trad_frame_set_value_bytes): Likewise.
3525 (trad_frame_get_prev_register): Likewise.
3526 * trad-frame.h: Update.
3527 (trad_frame_saved_reg_kind): New enum.
3528 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3529 <m_kind, m_reg>: New member fields.
3530 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3531 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3532 <is_addr, is_unknown, is_value_bytes>: New member functions.
3534 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3536 * target-float.c: Fix typos.
3538 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
3540 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3542 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3544 * gdbarch.sh: Update copyright year range.
3546 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3548 Update copyright year range in copyright header of all GDB files.
3550 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3552 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3553 to the list of directories to update.
3555 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3557 * top.c (print_gdb_version): Update copyright year.
3559 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3561 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
3563 For older changes see ChangeLog-2020.
3569 version-control: never