1 2021-03-15 Tom Tromey <tromey@adacore.com>
3 * ada-exp.y (simple_exp): Always push a result for unary '+'.
5 2021-03-15 Tom Tromey <tromey@adacore.com>
7 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
8 ada_ensure_varsize_limit.
10 2021-03-15 Tom Tromey <tromey@adacore.com>
12 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
14 * ada-exp.y (maybe_overload): New function.
15 (ada_wrap_overload): New function.
16 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
17 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
18 (or_else_exp, xor_exp, primary): Update.
20 2021-03-15 Tom Tromey <tromey@adacore.com>
23 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
26 2021-03-15 Tom Tromey <tromey@adacore.com>
28 * ada-exp.y (exp1): Handle resolution of the right hand side of an
31 2021-03-15 Tom Tromey <tromey@adacore.com>
33 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
35 (ada_assign_operation::evaluate): Update.
36 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
39 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
41 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
43 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
45 * python/python.c (gdbpy_source_objfile_script): Use
46 make_scoped_restore to restore gdbpy_current_objfile.
47 (gdbpy_execute_objfile_script): Likewise.
49 2021-03-14 Tom Tromey <tom@tromey.com>
51 * dwarf2/read.c (read_attribute_value): Use cu_header
54 2021-03-14 Tom Tromey <tom@tromey.com>
56 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
57 (peek_die_abbrev): Use reader.abfd.
59 2021-03-14 Tom Tromey <tom@tromey.com>
61 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
64 2021-03-13 Tom Tromey <tom@tromey.com>
66 * dwarf2/read.c (struct partial_die_info): Update.
67 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
68 (load_partial_dies, partial_die_info::partial_die_info): Update.
69 * dwarf2/abbrev.h (lookup_abbrev): Constify.
71 2021-03-13 Tom Tromey <tom@tromey.com>
73 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
75 2021-03-12 Christian Biesinger <cbiesinger@google.com>
78 * cp-support.c: Use scoped_segv_handler_restore.
79 * event-top.c (thread_local_segv_handler): Made static.
80 (scoped_segv_handler_restore::scoped_segv_handler_restore):
82 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
84 * event-top.h (class scoped_segv_handler_restore): New class.
85 (thread_local_segv_handler): Removed.
87 2021-03-10 Tom Tromey <tromey@adacore.com>
89 * parser-defs.h (parser_state): Change completion to bool.
90 <parse_completion>: Likewise.
91 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
92 (ada_resolve_variable, ada_resolve_function): Update.
93 * ada-lang.c (ada_find_operator_symbol): Change
94 parse_completion to bool.
95 (ada_resolve_funcall, ada_resolve_variable)
96 (ada_resolve_function): Likewise.
98 2021-03-09 Tom Tromey <tromey@adacore.com>
100 * eval.c (operation::evaluate_funcall): Use function formal
101 parameter types when evaluating.
103 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
105 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
106 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
107 and owner to m_owner.
109 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
111 * f-exp.h (eval_op_f_loc): Declare.
112 (expr::fortran_loc_operation): New typedef.
113 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
115 (f77_keywords): Add LOC keyword.
116 * f-lang.c (eval_op_f_loc): New function.
117 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
119 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
121 * f-exp.h (eval_op_f_array_shape): Declare.
122 (fortran_array_shape_operation): New type.
123 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
125 (f77_keywords): Add "shape" keyword.
126 * f-lang.c (fortran_array_shape): New function.
127 (eval_op_f_array_shape): New function.
128 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
130 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
132 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
134 (expr::fortran_array_size_1arg): New type.
135 (expr::fortran_array_size_2arg): Likewise.
136 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
137 UNOP_OR_BINOP_INTRINSIC.
138 (f77_keywords): Add "size" keyword.
139 * f-lang.c (fortran_array_size): New function.
140 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
141 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
143 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
145 * f-exp.h (eval_op_f_rank): Declare.
146 (expr::fortran_rank_operation): New typedef.
147 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
149 (f77_keywords): Add "rank" keyword.
150 * f-lang.c (eval_op_f_rank): New function.
151 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
153 2021-03-08 Tom Tromey <tom@tromey.com>
155 * printcmd.c (set_command): Remove null check.
156 * value.c (init_if_undefined_command): Remove null check.
158 2021-03-08 Tom Tromey <tom@tromey.com>
160 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
162 * p-exp.y (variable): Update.
163 * go-exp.y (variable): Update.
164 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
165 Remove overload for objfile.
166 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
168 (check_objfile): Likewise.
169 (dump_for_expression): Likewise. Remove overload for objfile.
170 (class var_msym_value_operation): Use bound_minimal_symbol.
171 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
173 (var_msym_value_operation::evaluate_for_address)
174 (var_msym_value_operation::evaluate_for_sizeof)
175 (var_msym_value_operation::evaluate_for_cast): Update.
176 * d-exp.y (PrimaryExpression): Update.
177 * c-exp.y (variable): Update.
178 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
179 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
181 * ada-exp.y (write_var_or_type): Update.
183 2021-03-08 Tom Tromey <tom@tromey.com>
185 * parser-defs.h (exp_uses_objfile): Return bool.
186 * parse.c (exp_uses_objfile): Return bool.
188 2021-03-08 Tom Tromey <tom@tromey.com>
190 * value.h (eval_skip_value): Don't declare.
191 * opencl-lang.c (eval_opencl_assign): Update.
192 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
193 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
194 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
195 * expression.h (enum noside) <EVAL_SKIP>: Remove.
196 * expop.h (typeof_operation::evaluate)
197 (decltype_operation::evaluate, unop_addr_operation::evaluate)
198 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
199 (cxx_cast_operation::evaluate): Update.
200 * eval.c (eval_skip_value): Remove.
201 (eval_op_scope, eval_op_var_entry_value)
202 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
203 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
204 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
205 (eval_op_binary, eval_op_subscript, eval_op_equal)
206 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
207 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
208 (eval_op_complement, eval_op_lognot, eval_op_ind)
209 (eval_op_memval, eval_op_preinc, eval_op_predec)
210 (eval_op_postinc, eval_op_postdec, eval_op_type)
211 (eval_binop_assign_modify, eval_op_objc_msgcall)
212 (eval_multi_subscript, logical_and_operation::evaluate)
213 (logical_or_operation::evaluate, array_operation::evaluate)
214 (operation::evaluate_for_cast)
215 (var_msym_value_operation::evaluate_for_cast)
216 (var_value_operation::evaluate_for_cast): Update.
217 * c-lang.c (c_string_operation::evaluate): Update.
218 * c-exp.h (objc_nsstring_operation::evaluate)
219 (objc_selector_operation::evaluate): Update.
220 * ada-lang.c (ada_assign_operation::evaluate)
221 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
222 (ada_atr_size): Update.
224 2021-03-08 Tom Tromey <tom@tromey.com>
226 * eval.c: Merge "namespace" scopes.
228 2021-03-08 Tom Tromey <tom@tromey.com>
230 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
232 * parse.c (expr_builder::expr_builder, expr_builder::release):
235 2021-03-08 Tom Tromey <tom@tromey.com>
237 * parse.c (expression::expression, expression::~expression):
239 * expression.h (struct expression): Inline constructor. Remove
242 2021-03-08 Tom Tromey <tom@tromey.com>
244 * std-operator.def (BINOP_END): Remove.
245 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
246 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
247 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
248 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
249 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
252 2021-03-08 Tom Tromey <tom@tromey.com>
254 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
256 2021-03-08 Tom Tromey <tom@tromey.com>
258 * std-operator.def (OP_EXTENDED0): Remove.
260 2021-03-08 Tom Tromey <tom@tromey.com>
262 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
263 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
266 2021-03-08 Tom Tromey <tom@tromey.com>
268 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
269 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
271 2021-03-08 Tom Tromey <tom@tromey.com>
273 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
274 * ada-lang.c (ada_binop_minmax): Update.
275 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
276 Use BINOP_MIN and BINOP_MAX.
278 2021-03-08 Tom Tromey <tom@tromey.com>
280 * value.h (evaluate_subexp_with_coercion): Don't declare.
281 * parse.c (exp_descriptor_standard): Remove.
282 (expr_builder::expr_builder, expr_builder::release): Update.
283 (expression::expression): Remove size_t parameter.
284 (expression::~expression): Simplify.
285 (expression::resize): Remove.
286 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
287 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
288 (write_exp_elt_longcst, write_exp_elt_floatcst)
289 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
290 (write_exp_string_vector, write_exp_bitstring): Remove.
291 * p-lang.h (class pascal_language) <opcode_print_table,
292 op_print_tab>: Remove.
293 * p-lang.c (pascal_language::op_print_tab): Remove.
294 * opencl-lang.c (class opencl_language) <opcode_print_table>:
296 * objc-lang.c (objc_op_print_tab): Remove.
297 (class objc_language) <opcode_print_table>: Remove.
298 * m2-lang.h (class m2_language) <opcode_print_table,
299 op_print_tab>: Remove.
300 * m2-lang.c (m2_language::op_print_tab): Remove.
301 * language.h (struct language_defn) <post_parser, expression_ops,
302 opcode_print_table>: Remove.
303 * language.c (language_defn::expression_ops)
304 (auto_or_unknown_language::opcode_print_table): Remove.
305 * go-lang.h (class go_language) <opcode_print_table,
306 op_print_tab>: Remove.
307 * go-lang.c (go_language::op_print_tab): Remove.
308 * f-lang.h (class f_language) <opcode_print_table>: Remove
309 <op_print_tab>: Remove.
310 * f-lang.c (f_language::op_print_tab): Remove.
311 * expression.h (union exp_element): Remove.
312 (struct expression): Remove size_t parameter from constructor.
314 <first_opcode>: Update.
315 <nelts, elts>: Remove.
316 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
317 (evaluate_subexp_standard, print_expression, op_string)
318 (dump_raw_expression): Don't declare.
319 * expprint.c (print_expression, print_subexp)
320 (print_subexp_funcall, print_subexp_standard, op_string)
321 (dump_raw_expression, dump_subexp, dump_subexp_body)
322 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
323 (dump_prefix_expression): Update.
324 * eval.c (evaluate_subexp): Remove.
325 (evaluate_expression, evaluate_type): Update.
326 (evaluate_subexpression_type): Remove.
327 (fetch_subexp_value): Remove "pc" parameter. Update.
328 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
329 (evaluate_subexp_standard, evaluate_subexp_for_address)
330 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
331 (evaluate_subexp_for_cast): Remove.
332 (parse_and_eval_type): Update.
333 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
334 * d-lang.c (d_op_print_tab): Remove.
335 (class d_language) <opcode_print_table>: Remove.
336 * c-lang.h (c_op_print_tab): Don't declare.
337 * c-lang.c (c_op_print_tab): Remove.
338 (class c_language, class cplus_language, class asm_language, class
339 minimal_language) <opcode_print_table>: Remove.
340 * breakpoint.c (update_watchpoint, watchpoint_check)
341 (watchpoint_exp_is_const, watch_command_1): Update.
342 * ax-gdb.h (union exp_element): Don't declare.
343 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
344 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
345 (gen_expr_binop_rest): Remove.
346 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
347 * ada-lang.c (ada_op_print_tab): Remove.
348 (class ada_language) <post_parser, opcode_print_table>: Remove.
350 2021-03-08 Tom Tromey <tom@tromey.com>
352 * go-lang.c (go_language::expression_ops): Don't declare.
353 * go-lang.h (class go_language) <expression_ops>: Remove.
354 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
356 (class opencl_language) <expression_ops>: Remove.
357 * d-lang.c (class d_language) <expression_ops>: Remove.
358 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
359 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
360 (class c_language, class cplus_language, class asm_language)
361 (class minimal_language) <expression_ops>: Remove.
363 2021-03-08 Tom Tromey <tom@tromey.com>
365 * ada-lang.c (resolve_subexp, replace_operator_with_call)
366 (evaluate_subexp_type, assign_aggregate)
367 (aggregate_assign_positional, aggregate_assign_from_choices)
368 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
369 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
370 (ada_operator_check, ada_forward_operator_length)
371 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
373 (post_parser): Update.
374 (class ada_language) <expresssion_ops>: Remove.
376 2021-03-08 Tom Tromey <tom@tromey.com>
378 * m2-lang.h (class m2_language) <expresssion_ops,
379 exp_descriptor_modula2>: Remove.
380 * m2-lang.c (evaluate_subexp_modula2)
381 (m2_language::exp_descriptor_modula2): Remove.
383 2021-03-08 Tom Tromey <tom@tromey.com>
385 * f-lang.h (class f_language) <expresssion_ops>: Remove.
386 <exp_descriptor_tab>: Remove.
387 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
388 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
389 (print_subexp_f, dump_subexp_body_f, operator_check_f)
390 (f_language::exp_descriptor_tab, fortran_prepare_argument):
393 2021-03-08 Tom Tromey <tom@tromey.com>
395 * rust-lang.h (class rust_language) <expression_ops,
396 exp_descriptor_tab>: Remove.
397 * rust-lang.c (rust_evaluate_funcall): Remove.
398 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
400 (rust_evaluate_subexp): Remove.
401 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
402 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
403 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
405 2021-03-08 Tom Tromey <tom@tromey.com>
407 * ada-exp.y: Create operations.
408 (empty_stoken): Remove.
409 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
410 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
411 (components): New global.
412 (push_component, choice_component, pop_component, pop_components):
414 (associations): New global
415 (push_association, pop_association, pop_associations): New
418 (write_var_from_sym, write_int): Create operations.
419 (write_exp_op_with_string): Remove.
420 (write_object_renaming, write_selectors, write_ambiguous_var)
421 (write_var_or_type, write_name_assoc): Create operations.
422 * ada-lang.h (ada_index_type): Declare.
423 * ada-lang.c (ada_index_type): No longer static.
425 2021-03-08 Tom Tromey <tom@tromey.com>
427 * f-exp.y: Create operations.
428 (f_language::parser): Update.
430 2021-03-08 Tom Tromey <tom@tromey.com>
432 * m2-exp.y: Create operations.
433 (m2_language::parser): Update.
435 2021-03-08 Tom Tromey <tom@tromey.com>
437 * p-exp.y: Create operations.
438 (pascal_language::parser): Update.
440 2021-03-08 Tom Tromey <tom@tromey.com>
442 * d-exp.y: Create operations.
445 2021-03-08 Tom Tromey <tom@tromey.com>
447 * go-exp.y: Create operations.
448 (go_language::parser): Update.
450 2021-03-08 Tom Tromey <tom@tromey.com>
452 * objc-lang.c (end_msglist): Create operations.
453 * c-exp.y: Change parser to create operations.
454 (write_destructor_name): Remove.
457 2021-03-08 Tom Tromey <tom@tromey.com>
459 * rust-exp.y: Create operations.
460 (rust_parser::convert_params_to_expression): Change return type.
461 (binop_maker_ftype): New typedef.
462 (maker_map): New global.
463 (rust_parser::convert_ast_to_expression): Change return type.
464 (rust_language::parser): Update.
465 (_initialize_rust_exp): Initialize maker_map.
467 2021-03-08 Tom Tromey <tom@tromey.com>
469 * stap-probe.c (binop_maker_ftype): New typedef.
470 (stap_maker_map): New global.
471 (stap_make_binop): New function.
472 (stap_parse_register_operand): Return operation_up.
473 (stap_parse_single_operand, stap_parse_argument_conditionally)
474 (stap_parse_argument_1): Likewise.
475 (stap_parse_argument): Create operations.
476 (stap_probe::parse_arguments): Update.
477 (_initialize_stap_probe): Initialize stap_maker_map.
478 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
480 * i386-tdep.h (i386_stap_parse_special_token): Change return
482 * i386-tdep.c (i386_stap_parse_special_token_triplet)
483 (i386_stap_parse_special_token_three_arg_disp)
484 (i386_stap_parse_special_token): Change return type.
485 * gdbarch.sh (stap_parse_special_token): Change return type.
486 * gdbarch.c: Rebuild.
487 * gdbarch.h: Rebuild.
488 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
490 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
493 2021-03-08 Tom Tromey <tom@tromey.com>
495 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
496 * gdbarch.h: Rebuild.
497 * gdbarch.c: Rebuild.
498 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
499 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
501 (amd64_dtrace_parse_probe_argument): Update.
503 2021-03-08 Tom Tromey <tom@tromey.com>
505 * parser-defs.h (struct parser_state) <push, push_new,
506 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
508 <m_operations>: New member.
509 * parse.c (parser_state::push_c_string)
510 (parser_state::push_symbol, parser_state::push_dollar): New
513 2021-03-08 Tom Tromey <tom@tromey.com>
515 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
517 (struct parser_state) <mark_struct_expression>: New method.
518 * parse.c (parser_state::mark_struct_expression): Update assert.
519 (parser_state::mark_struct_expression): New method.
520 (parser_state::mark_completion_tag): Update assert.
521 (parse_expression_for_completion): Handle expout_last_op.
523 2021-03-08 Tom Tromey <tom@tromey.com>
525 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
527 * value.h (fetch_subexp_value): Add "op" parameter.
528 * value.c (init_if_undefined_command): Update.
529 * tracepoint.c (validate_actionline, encode_actions_1): Update.
530 * stap-probe.c (stap_probe::compile_to_ax): Update.
531 * printcmd.c (set_command): Update.
532 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
534 * parser-defs.h (struct expr_builder) <set_operation>: New
536 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
537 * expression.h (struct expression) <first_opcode>: Update.
539 * expprint.c (dump_raw_expression, dump_prefix_expression):
541 * expop.h (class var_value_operation) <get_symbol>: New method.
542 (class register_operation) <get_name>: New method.
543 (class equal_operation): No longer a typedef, now a subclass.
544 (class unop_memval_operation) <get_type>: New method.
545 (class assign_operation) <get_lhs>: New method.
546 (class unop_cast_operation) <get_type>: New method.
547 * eval.c (evaluate_expression, evaluate_type)
548 (evaluate_subexpression_type): Update.
549 (fetch_subexp_value): Add "op" parameter.
550 (parse_and_eval_type): Update.
551 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
552 * breakpoint.c (update_watchpoint, watchpoint_check)
553 (watchpoint_exp_is_const, watch_command_1): Update.
554 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
557 2021-03-08 Tom Tromey <tom@tromey.com>
559 * ada-lang.c (ada_value_binop): Do not use op_string.
561 2021-03-08 Tom Tromey <tom@tromey.com>
563 * expprint.c (dump_for_expression): New overload.
564 * expop.h (check_objfile, dump_for_expression): Declare new
566 * ada-lang.c (check_objfile): New overload.
567 (assign_component, ada_aggregate_component::uses_objfile)
568 (ada_aggregate_component::dump, ada_aggregate_component::assign)
569 (ada_aggregate_component::assign_aggregate)
570 (ada_positional_component::uses_objfile)
571 (ada_positional_component::dump, ada_positional_component::assign)
572 (ada_discrete_range_association::uses_objfile)
573 (ada_discrete_range_association::dump)
574 (ada_discrete_range_association::assign)
575 (ada_name_association::uses_objfile, ada_name_association::dump)
576 (ada_name_association::assign)
577 (ada_choices_component::uses_objfile, ada_choices_component::dump)
578 (ada_choices_component::assign)
579 (ada_others_component::uses_objfile, ada_others_component::dump)
580 (ada_others_component::assign, ada_assign_operation::evaluate):
582 * ada-exp.h (ada_string_operation) <get_name>: New method.
583 (class ada_assign_operation): New.
584 (class ada_component): New.
585 (ada_component_up): New typedef.
586 (class ada_aggregate_operation, class ada_aggregate_component)
587 (class ada_positional_component, class ada_others_component)
588 (class ada_association): New.
589 (ada_association_up): New typedef.
590 (class ada_choices_component)
591 (class ada_discrete_range_association)
592 (class ada_name_association): New.
594 2021-03-08 Tom Tromey <tom@tromey.com>
596 * ada-lang.c (ada_var_value_operation::resolve)
597 (ada_funcall_operation::resolve)
598 (ada_ternop_slice_operation::resolve): New methods.
599 * ada-exp.h (struct ada_resolvable): New.
600 (class ada_var_value_operation): Derive from ada_resolvable.
601 <get_block, resolve>: New methods.
602 (class ada_funcall_operation): Derive from ada_resolvable.
603 <resolve>: New method.
604 (class ada_ternop_slice_operation): Derive from ada_resolvable.
605 <resolve>: New method.
607 2021-03-08 Tom Tromey <tom@tromey.com>
609 * ada-lang.c (ada_funcall_operation::evaluate): New method.
610 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
612 (class ada_funcall_operation): New.
614 2021-03-08 Tom Tromey <tom@tromey.com>
616 * ada-lang.c (ada_structop_operation::evaluate): New method.
617 * ada-exp.h (class ada_structop_operation): New.
619 2021-03-08 Tom Tromey <tom@tromey.com>
621 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
622 * ada-exp.h (class ada_unop_ind_operation): New.
624 2021-03-08 Tom Tromey <tom@tromey.com>
626 * ada-lang.c (ada_binop_exp): No longer static.
627 * ada-exp.h (ada_binop_exp_operation): New typedef.
629 2021-03-08 Tom Tromey <tom@tromey.com>
631 * ada-lang.c (ada_val_atr): No longer static.
632 (ada_atr_val_operation::evaluate): New method.
633 * ada-exp.h (class ada_atr_val_operation): New.
635 2021-03-08 Tom Tromey <tom@tromey.com>
637 * ada-lang.c (ada_pos_atr): No longer static.
638 * ada-exp.h (ada_pos_operation): New typedef.
640 2021-03-08 Tom Tromey <tom@tromey.com>
642 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
644 (ada_evaluate_subexp): Use it.
646 2021-03-08 Tom Tromey <tom@tromey.com>
648 * ada-lang.c (ada_binop_minmax): No longer static.
649 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
652 2021-03-08 Tom Tromey <tom@tromey.com>
654 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
656 * ada-exp.h (class ada_var_msym_value_operation): New.
658 2021-03-08 Tom Tromey <tom@tromey.com>
660 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
661 (ada_var_value_operation::evaluate): New methods.
662 * ada-exp.h (class ada_var_value_operation): New.
664 2021-03-08 Tom Tromey <tom@tromey.com>
666 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
667 * ada-exp.h (class ada_unop_atr_operation): New.
669 2021-03-08 Tom Tromey <tom@tromey.com>
671 * ada-lang.c (ada_binop_in_bounds): No longer static.
672 * ada-exp.h (class ada_binop_in_bounds_operation): New.
674 2021-03-08 Tom Tromey <tom@tromey.com>
676 * ada-lang.c (ada_ternop_slice): No longer static.
677 * ada-exp.h (class ada_ternop_slice_operation): New.
679 2021-03-08 Tom Tromey <tom@tromey.com>
681 * ada-exp.h (ada_bitwise_operation): New template class.
682 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
683 (ada_bitwise_xor_operation): New typedefs.
685 2021-03-08 Tom Tromey <tom@tromey.com>
687 * ada-lang.c (ada_equal_binop): No longer static.
688 * ada-exp.h (class ada_binop_equal_operation): New.
690 2021-03-08 Tom Tromey <tom@tromey.com>
692 * ada-lang.c (ada_mult_binop): No longer static.
693 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
694 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
696 2021-03-08 Tom Tromey <tom@tromey.com>
698 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
699 * ada-exp.h (class ada_binop_addsub_operation): New.
701 2021-03-08 Tom Tromey <tom@tromey.com>
703 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
704 (ada_resolve_variable): Declare.
705 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
706 (ada_resolve_variable): New functions.
707 (resolve_subexp): Update.
709 2021-03-08 Tom Tromey <tom@tromey.com>
711 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
713 * c-exp.h (class opencl_ternop_cond_operation): New.
715 2021-03-08 Tom Tromey <tom@tromey.com>
717 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
719 * c-exp.h (class opencl_logical_binop_operation): New.
721 2021-03-08 Tom Tromey <tom@tromey.com>
723 * opencl-lang.c (opencl_structop_operation::evaluate): New
725 * c-exp.h (class opencl_structop_operation): New.
727 2021-03-08 Tom Tromey <tom@tromey.com>
729 * opencl-lang.c (opencl_logical_not): No longer static. Change
731 (evaluate_subexp_opencl): Update.
732 * c-exp.h (opencl_notequal_operation): New typedef.
734 2021-03-08 Tom Tromey <tom@tromey.com>
736 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
737 static. Change parameters.
738 (eval_opencl_assign): No longer static. Add "op" parameter.
739 (evaluate_subexp_opencl): Update.
740 * c-exp.h (opencl_binop_operation): New template class.
741 (opencl_assign_operation, opencl_equal_operation)
742 (opencl_notequal_operation, opencl_less_operation)
743 (opencl_gtr_operation, opencl_geq_operation)
744 (opencl_leq_operation): New typedefs.
746 2021-03-08 Tom Tromey <tom@tromey.com>
748 * opencl-lang.c (opencl_value_cast): No longer static.
749 * c-exp.h (opencl_cast_type_operation): New typedef.
751 2021-03-08 Tom Tromey <tom@tromey.com>
753 * f-exp.h (eval_op_f_allocated): Declare.
754 (fortran_allocated_operation): New typedef.
755 * f-lang.c (eval_op_f_allocated): No longer static.
757 2021-03-08 Tom Tromey <tom@tromey.com>
759 * f-lang.c (eval_op_f_associated): New functions.
760 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
763 2021-03-08 Tom Tromey <tom@tromey.com>
765 * f-lang.c (fortran_bound_1arg::evaluate)
766 (fortran_bound_2arg::evaluate): New methods.
767 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
770 2021-03-08 Tom Tromey <tom@tromey.com>
772 * expop.h (class unop_addr_operation) <get_expression>: New
774 * f-lang.c (fortran_undetermined::value_subarray)
775 (fortran_undetermined::evaluate): New methods.
776 (fortran_prepare_argument): New overload.
777 * f-exp.h (class fortran_range_operation)
778 (class fortran_undetermined): New classes.
780 2021-03-08 Tom Tromey <tom@tromey.com>
782 * rust-lang.c (rust_structop::evaluate_funcall): New method.
783 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
786 2021-03-08 Tom Tromey <tom@tromey.com>
788 * expression.h (class operation) <evaluate_funcall>: New methods.
789 * expop.h (class scope_operation) <evaluate_funcall>: New method.
790 (class var_value_operation) <evaluate_funcall>: New method.
791 (class structop_base_operation) <evaluate_funcall>: New method.
792 (class var_msym_value_operation) <evaluate_funcall>: New method.
793 (class structop_member_base): New class.
794 (class structop_member_operation): Derive from
795 structop_member_base.
796 (class structop_mptr_operation): Derive from
797 structop_member_base.
798 (class funcall_operation): New class.
799 * eval.c (operation::evaluate_funcall)
800 (var_value_operation::evaluate_funcall)
801 (scope_operation::evaluate_funcall)
802 (structop_member_base::evaluate_funcall)
803 (structop_base_operation::evaluate_funcall): New methods.
805 2021-03-08 Tom Tromey <tom@tromey.com>
807 * expop.h (class array_operation): New.
808 * eval.c (array_operation::evaluate_struct_tuple)
809 (array_operation::evaluate): New methods.
811 2021-03-08 Tom Tromey <tom@tromey.com>
813 * expop.h (class adl_func_operation): New.
814 * eval.c (adl_func_operation::evaluate): New method.
816 2021-03-08 Tom Tromey <tom@tromey.com>
818 * ada-lang.c (ada_unop_in_range): No longer static.
819 * ada-exp.h (class ada_unop_range_operation): New.
821 2021-03-08 Tom Tromey <tom@tromey.com>
823 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
825 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
826 (ada_atr_size_operation, ada_abs_operation): New typedefs.
828 2021-03-08 Tom Tromey <tom@tromey.com>
830 * expop.h (class logical_and_operation)
831 (class logical_or_operation): New.
832 * eval.c (logical_and_operation::evaluate)
833 (logical_or_operation::evaluate): New methods.
834 * ax-gdb.c (logical_and_operation::do_generate_ax)
835 (logical_or_operation::do_generate_ax): New methods.
837 2021-03-08 Tom Tromey <tom@tromey.com>
839 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
841 * m2-exp.h: New file.
843 2021-03-08 Tom Tromey <tom@tromey.com>
845 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
846 * rust-exp.h (class rust_aggregate_operation): New.
848 2021-03-08 Tom Tromey <tom@tromey.com>
850 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
852 * rust-exp.h (class rust_struct_anon): New.
853 (class rust_structop): New.
855 2021-03-08 Tom Tromey <tom@tromey.com>
857 * rust-lang.c (rust_range): No longer static.
858 * rust-exp.h (class rust_range_operation): New.
860 2021-03-08 Tom Tromey <tom@tromey.com>
862 * rust-lang.c (rust_subscript): No longer static.
863 * rust-exp.h (class rust_subscript_operation): New.
865 2021-03-08 Tom Tromey <tom@tromey.com>
867 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
869 (rust_evaluate_subexp): Update.
870 * rust-exp.h (class rust_unop_ind_operation): New.
872 2021-03-08 Tom Tromey <tom@tromey.com>
874 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
875 longer static. Add "opcode" parameter.
876 (rust_evaluate_subexp): Update.
877 * rust-exp.h: New file.
879 2021-03-08 Tom Tromey <tom@tromey.com>
881 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
882 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
883 (eval_op_f_kind): No longer static. Add "opcode" parameter.
884 (evaluate_subexp_f): Update.
887 2021-03-08 Tom Tromey <tom@tromey.com>
889 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
890 * ada-exp.h (class ada_ternop_range_operation): New.
892 2021-03-08 Tom Tromey <tom@tromey.com>
894 * ada-lang.c (ada_qual_operation::evaluate): New method.
895 * ada-exp.h (class ada_qual_operation): New.
897 2021-03-08 Tom Tromey <tom@tromey.com>
899 * ada-lang.c (ada_string_operation::evaluate): New method.
900 * ada-exp.h (class ada_string_operation): New.
902 2021-03-08 Tom Tromey <tom@tromey.com>
904 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
905 * ada-exp.h: New file.
907 2021-03-08 Tom Tromey <tom@tromey.com>
909 * expop.h (class multi_subscript_operation): New.
910 * eval.c (multi_subscript_operation::evaluate): New method.
912 2021-03-08 Tom Tromey <tom@tromey.com>
914 * eval.c (objc_msgcall_operation::evaluate): New method.
915 * c-exp.h (class objc_msgcall_operation): New.
917 2021-03-08 Tom Tromey <tom@tromey.com>
919 * expop.h (class var_value_operation): New.
920 * eval.c (var_value_operation::evaluate)
921 (var_value_operation::evaluate_for_address)
922 (var_value_operation::evaluate_with_coercion)
923 (var_value_operation::evaluate_for_sizeof)
924 (var_value_operation::evaluate_for_cast): New methods.
925 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
927 2021-03-08 Tom Tromey <tom@tromey.com>
929 * expop.h (cxx_cast_ftype): New typedef.
930 (cxx_cast_operation): New template.
931 (dynamic_cast_operation, reinterpret_cast_operation): New
934 2021-03-08 Tom Tromey <tom@tromey.com>
936 * expop.h (class unop_cast_type_operation): New.
937 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
940 2021-03-08 Tom Tromey <tom@tromey.com>
942 * expop.h (class unop_cast_operation): New.
943 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
945 2021-03-08 Tom Tromey <tom@tromey.com>
947 * expop.h (class assign_modify_operation): New.
948 * eval.c (eval_binop_assign_modify): No longer static.
949 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
951 2021-03-08 Tom Tromey <tom@tromey.com>
953 * expop.h (class assign_operation): New.
954 * ax-gdb.c (assign_operation::do_generate_ax): New method.
956 2021-03-08 Tom Tromey <tom@tromey.com>
958 * expop.h (class type_instance_operation): New.
959 * eval.c (type_instance_operation::evaluate): New method.
961 2021-03-08 Tom Tromey <tom@tromey.com>
963 * expop.h (class op_this_operation): New.
964 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
966 2021-03-08 Tom Tromey <tom@tromey.com>
968 * expop.h (class unop_memval_operation)
969 (class unop_memval_type_operation): New.
970 * eval.c (eval_op_memval): No longer static.
971 (unop_memval_operation::evaluate_for_address)
972 (unop_memval_type_operation::evaluate_for_address)
973 (unop_memval_operation::evaluate_for_sizeof)
974 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
975 * ax-gdb.c (unop_memval_operation::do_generate_ax)
976 (unop_memval_type_operation::do_generate_ax): New methods.
978 2021-03-08 Tom Tromey <tom@tromey.com>
980 * expop.h (class unop_alignof_operation): New.
981 * eval.c (eval_op_alignof): No longer static.
983 2021-03-08 Tom Tromey <tom@tromey.com>
985 * expop.h (class unop_sizeof_operation): New.
986 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
988 2021-03-08 Tom Tromey <tom@tromey.com>
990 * expop.h (class unop_addr_operation): New.
991 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
993 2021-03-08 Tom Tromey <tom@tromey.com>
995 * expop.h (class typeid_operation): New.
997 2021-03-08 Tom Tromey <tom@tromey.com>
999 * expop.h (class decltype_operation): New.
1001 2021-03-08 Tom Tromey <tom@tromey.com>
1003 * expop.h (class typeof_operation): New.
1005 2021-03-08 Tom Tromey <tom@tromey.com>
1007 * expop.h (class type_operation): New.
1008 * eval.c (eval_op_type): No longer static.
1010 2021-03-08 Tom Tromey <tom@tromey.com>
1012 * expop.h (class unop_ind_base_operation)
1013 (class unop_ind_operation): New.
1014 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1015 (unop_ind_base_operation::evaluate_for_address)
1016 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1017 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1019 2021-03-08 Tom Tromey <tom@tromey.com>
1021 * expop.h (unop_incr_operation): New template.
1022 (preinc_operation, predec_operation, postinc_operation)
1023 (postdec_operation): New typedefs.
1024 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1025 (eval_op_postdec): No longer static.
1027 2021-03-08 Tom Tromey <tom@tromey.com>
1029 * expop.h (unary_ftype): New typedef.
1030 (unop_operation, usual_ax_binop_operation): New templates.
1031 (unary_plus_operation, unary_neg_operation)
1032 (unary_complement_operation, unary_logical_not_operation): New
1034 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1035 (eval_op_lognot): No longer static.
1036 * ax-gdb.c (gen_expr_unop): New function.
1038 2021-03-08 Tom Tromey <tom@tromey.com>
1040 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1042 2021-03-08 Tom Tromey <tom@tromey.com>
1044 * expop.h (class repeat_operation): New.
1045 * eval.c (eval_op_repeat): No longer static. Remove "op"
1047 (evaluate_subexp_standard): Update.
1048 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1050 2021-03-08 Tom Tromey <tom@tromey.com>
1052 * expop.h (class comparison_operation): New.
1053 (equal_operation, notequal_operation, less_operation)
1054 (gtr_operation, geq_operation, leq_operation): New typedefs.
1055 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1056 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1058 2021-03-08 Tom Tromey <tom@tromey.com>
1060 * expop.h (class subscript_operation): New.
1061 * eval.c (eval_op_subscript): No longer static.
1063 2021-03-08 Tom Tromey <tom@tromey.com>
1065 * expop.h (class binop_operation, class usual_ax_binop_operation):
1067 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1068 (div_operation, rem_operation, lsh_operation, rsh_operation)
1069 (bitwise_and_operation, bitwise_ior_operation)
1070 (bitwise_xor_operation): New typedefs.
1071 * eval.c (eval_op_binary): No longer static.
1073 2021-03-08 Tom Tromey <tom@tromey.com>
1075 * expop.h (class sub_operation): New.
1076 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1077 (evaluate_subexp_standard): Update.
1079 2021-03-08 Tom Tromey <tom@tromey.com>
1081 * expop.h (class add_operation): New.
1082 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1083 (evaluate_subexp_standard): Update.
1085 2021-03-08 Tom Tromey <tom@tromey.com>
1087 * expop.h (class concat_operation): New.
1088 * eval.c (eval_op_concat): No longer static. Remove "op"
1090 (evaluate_subexp_standard): Update.
1092 2021-03-08 Tom Tromey <tom@tromey.com>
1094 * expop.h (class structop_member_operation)
1095 (class structop_mptr_operation): New.
1096 * eval.c (eval_op_member): No longer static.
1098 2021-03-08 Tom Tromey <tom@tromey.com>
1100 * expop.h (class structop_ptr_operation): New.
1101 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1104 2021-03-08 Tom Tromey <tom@tromey.com>
1106 * expop.h (class structop_base_operation)
1107 (class structop_operation): New.
1108 * eval.c (eval_op_structop_struct): No longer static.
1110 2021-03-08 Tom Tromey <tom@tromey.com>
1112 * expop.h (class complex_operation): New.
1114 2021-03-08 Tom Tromey <tom@tromey.com>
1116 * eval.c (eval_op_objc_selector): No longer static.
1117 * c-exp.h (class objc_selector_operation): New.
1119 2021-03-08 Tom Tromey <tom@tromey.com>
1121 * eval.c: Include c-exp.h.
1122 * c-exp.h (class objc_nsstring_operation): New.
1124 2021-03-08 Tom Tromey <tom@tromey.com>
1126 * c-lang.c (c_string_operation::evaluate): New method.
1127 * c-exp.h: New file.
1129 2021-03-08 Tom Tromey <tom@tromey.com>
1131 * expop.h (class ternop_cond_operation): New.
1132 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1134 2021-03-08 Tom Tromey <tom@tromey.com>
1136 * expop.h (class ternop_slice_operation): New.
1137 * eval.c (eval_op_ternop): No longer static.
1139 2021-03-08 Tom Tromey <tom@tromey.com>
1141 * expop.h (class string_operation): New.
1142 * eval.c (eval_op_string): No longer static.
1144 2021-03-08 Tom Tromey <tom@tromey.com>
1146 * expop.h (class internalvar_operation): New.
1147 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1149 2021-03-08 Tom Tromey <tom@tromey.com>
1151 * expop.h (class bool_operation): New.
1153 2021-03-08 Tom Tromey <tom@tromey.com>
1155 * expop.h (class register_operation): New.
1156 * eval.c (eval_op_register): No longer static.
1157 * ax-gdb.c (register_operation::do_generate_ax): New method.
1159 2021-03-08 Tom Tromey <tom@tromey.com>
1161 * expop.h (class last_operation): New.
1163 2021-03-08 Tom Tromey <tom@tromey.com>
1165 * expop.h (class func_static_var_operation): New.
1166 * eval.c (eval_op_func_static_var): No longer static.
1168 2021-03-08 Tom Tromey <tom@tromey.com>
1170 * expop.h (class var_entry_value_operation): New.
1171 * eval.c (eval_op_var_entry_value): No longer static.
1173 2021-03-08 Tom Tromey <tom@tromey.com>
1175 * expression.h (class operation) <set_outermost>: New method.
1176 * expop.h (class var_msym_value_operation): New.
1177 * eval.c (eval_op_var_msym_value): No longer static.
1178 (var_msym_value_operation::evaluate_for_address)
1179 (var_msym_value_operation::evaluate_for_sizeof)
1180 (var_msym_value_operation::evaluate_for_cast): New methods.
1181 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1184 2021-03-08 Tom Tromey <tom@tromey.com>
1186 * expop.h (class long_const_operation): New.
1187 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1189 2021-03-08 Tom Tromey <tom@tromey.com>
1191 * expop.h (class scope_operation): New.
1192 * eval.c (eval_op_scope): No longer static.
1193 (scope_operation::evaluate_for_address): New method.
1194 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1196 2021-03-08 Tom Tromey <tom@tromey.com>
1198 * expprint.c (float_const_operation::dump): New method.
1199 * expop.h (float_data): New typedef.
1200 (class float_const_operation): New.
1202 2021-03-08 Tom Tromey <tom@tromey.com>
1204 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1205 * ax-gdb.c (gen_expr_binop): New function.
1206 (gen_expr_structop): Likewise.
1208 2021-03-08 Tom Tromey <tom@tromey.com>
1210 * expprint.c (expr::dump_for_expression): New functions.
1211 * expop.h (dump_for_expression): New overloads.
1212 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1215 2021-03-08 Tom Tromey <tom@tromey.com>
1217 * expression.h (expr::operation): New class.
1218 (expr::make_operation): New function.
1219 (expr::operation_up): New typedef.
1220 * expop.h: New file.
1221 * eval.c (operation::evaluate_for_cast)
1222 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1224 * ax-gdb.c (operation::generate_ax): New method.
1226 2021-03-08 Tom Tromey <tom@tromey.com>
1228 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1229 (gen_expr_binop_rest): New overload.
1231 2021-03-08 Tom Tromey <tom@tromey.com>
1233 * eval.c (eval_multi_subscript): New function.
1234 (evaluate_subexp_standard): Use it.
1236 2021-03-08 Tom Tromey <tom@tromey.com>
1238 * ada-lang.c (ada_binop_exp): New function.
1239 (ada_evaluate_subexp): Use it.
1241 2021-03-08 Tom Tromey <tom@tromey.com>
1243 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1245 (ada_evaluate_subexp): Use it.
1247 2021-03-08 Tom Tromey <tom@tromey.com>
1249 * ada-lang.c (ada_binop_minmax): New function.
1250 (ada_evaluate_subexp): Use it.
1252 2021-03-08 Tom Tromey <tom@tromey.com>
1254 * ada-lang.c (ada_unop_atr): New function.
1255 (ada_evaluate_subexp): Use it.
1257 2021-03-08 Tom Tromey <tom@tromey.com>
1259 * ada-lang.c (ada_binop_in_bounds): New function.
1260 (ada_evaluate_subexp): Use it.
1262 2021-03-08 Tom Tromey <tom@tromey.com>
1264 * ada-lang.c (ada_ternop_slice): New function.
1265 (ada_evaluate_subexp): Use it.
1267 2021-03-08 Tom Tromey <tom@tromey.com>
1269 * ada-lang.c (ada_equal_binop): New function.
1270 (ada_evaluate_subexp): Use it.
1272 2021-03-08 Tom Tromey <tom@tromey.com>
1274 * ada-lang.c (ada_mult_binop): New function.
1275 (ada_evaluate_subexp): Use it.
1277 2021-03-08 Tom Tromey <tom@tromey.com>
1279 * ada-lang.c (ada_abs): New function.
1280 (ada_evaluate_subexp): Use it.
1282 2021-03-08 Tom Tromey <tom@tromey.com>
1284 * ada-lang.c (ada_atr_size): New function.
1285 (ada_evaluate_subexp): Use it.
1287 2021-03-08 Tom Tromey <tom@tromey.com>
1289 * ada-lang.c (ada_atr_tag): New function.
1290 (ada_evaluate_subexp): Use it.
1292 2021-03-08 Tom Tromey <tom@tromey.com>
1294 * ada-lang.c (ada_unop_in_range): New function.
1295 (ada_evaluate_subexp): Use it.
1297 2021-03-08 Tom Tromey <tom@tromey.com>
1299 * ada-lang.c (ada_unop_neg): New function.
1300 (ada_evaluate_subexp): Use it.
1302 2021-03-08 Tom Tromey <tom@tromey.com>
1304 * ada-lang.c (eval_ternop_in_range): New function.
1305 (ada_evaluate_subexp): Use it.
1307 2021-03-08 Tom Tromey <tom@tromey.com>
1309 * opencl-lang.c (eval_opencl_assign): New function.
1310 (evaluate_subexp_opencl): Use it.
1312 2021-03-08 Tom Tromey <tom@tromey.com>
1314 * eval.c (eval_op_objc_msgcall): New function.
1315 (evaluate_subexp_standard): Use it.
1317 2021-03-08 Tom Tromey <tom@tromey.com>
1319 * eval.c (eval_binop_assign_modify): New function.
1320 (evaluate_subexp_standard): Use it.
1322 2021-03-08 Tom Tromey <tom@tromey.com>
1324 * m2-lang.c (eval_op_m2_subscript): New function.
1325 (evaluate_subexp_modula2): Use it.
1327 2021-03-08 Tom Tromey <tom@tromey.com>
1329 * m2-lang.c (eval_op_m2_high): New function.
1330 (evaluate_subexp_modula2): Use it.
1332 2021-03-08 Tom Tromey <tom@tromey.com>
1334 * eval.c (evaluate_subexp_for_address_base): New function.
1335 (evaluate_subexp_for_address): Use it.
1336 (evaluate_subexp_for_sizeof_base): New function.
1337 (evaluate_subexp_for_sizeof): Use it.
1339 2021-03-08 Tom Tromey <tom@tromey.com>
1341 * rust-lang.c (eval_op_rust_structop): New function.
1342 (rust_evaluate_subexp): Use it.
1344 2021-03-08 Tom Tromey <tom@tromey.com>
1346 * rust-lang.c (eval_op_rust_struct_anon): New function.
1347 (rust_evaluate_subexp): Use it.
1349 2021-03-08 Tom Tromey <tom@tromey.com>
1351 * rust-lang.c (eval_op_rust_array): New function.
1352 (rust_evaluate_subexp): Use it.
1354 2021-03-08 Tom Tromey <tom@tromey.com>
1356 * rust-lang.c (eval_op_rust_complement): New function.
1357 (rust_evaluate_subexp): Use it.
1359 2021-03-08 Tom Tromey <tom@tromey.com>
1361 * rust-lang.c (eval_op_rust_ind): New function.
1362 (rust_evaluate_subexp): Use it.
1364 2021-03-08 Tom Tromey <tom@tromey.com>
1366 * rust-lang.c (rust_subscript): Change parameters.
1367 (rust_evaluate_subexp): Update.
1369 2021-03-08 Tom Tromey <tom@tromey.com>
1371 * rust-lang.c (rust_range): Change parameters.
1372 (rust_evaluate_subexp): Update.
1374 2021-03-08 Tom Tromey <tom@tromey.com>
1376 * f-lang.c (eval_op_f_allocated): New function.
1377 (evaluate_subexp_f): Use it.
1379 2021-03-08 Tom Tromey <tom@tromey.com>
1381 * f-lang.c (fortran_require_array): New function.
1382 (evaluate_subexp_f): Use it.
1384 2021-03-08 Tom Tromey <tom@tromey.com>
1386 * f-lang.c (eval_op_f_kind): New function.
1387 (evaluate_subexp_f): Use it.
1389 2021-03-08 Tom Tromey <tom@tromey.com>
1391 * f-lang.c (eval_op_f_cmplx): New function.
1392 (evaluate_subexp_f): Use it.
1394 2021-03-08 Tom Tromey <tom@tromey.com>
1396 * f-lang.c (eval_op_f_modulo): New function.
1397 (evaluate_subexp_f): Use it.
1399 2021-03-08 Tom Tromey <tom@tromey.com>
1401 * f-lang.c (eval_op_f_floor): New function.
1402 (evaluate_subexp_f): Use it.
1404 2021-03-08 Tom Tromey <tom@tromey.com>
1406 * f-lang.c (eval_op_f_ceil): New function.
1407 (evaluate_subexp_f): Use it.
1409 2021-03-08 Tom Tromey <tom@tromey.com>
1411 * f-lang.c (eval_op_f_mod): New function.
1412 (evaluate_subexp_f): Use it.
1414 2021-03-08 Tom Tromey <tom@tromey.com>
1416 * f-lang.c (eval_op_f_abs): New function.
1417 (evaluate_subexp_f): Use it.
1419 2021-03-08 Tom Tromey <tom@tromey.com>
1421 * eval.c (eval_op_type): New function.
1422 (evaluate_subexp_standard): Use it.
1424 2021-03-08 Tom Tromey <tom@tromey.com>
1426 * eval.c (eval_op_postdec): New function.
1427 (evaluate_subexp_standard): Use it.
1429 2021-03-08 Tom Tromey <tom@tromey.com>
1431 * eval.c (eval_op_postinc): New function.
1432 (evaluate_subexp_standard): Use it.
1434 2021-03-08 Tom Tromey <tom@tromey.com>
1436 * eval.c (eval_op_predec): New file.
1437 (evaluate_subexp_standard): Use it.
1439 2021-03-08 Tom Tromey <tom@tromey.com>
1441 * eval.c (eval_op_preinc): New function.
1442 (evaluate_subexp_standard): Use it.
1444 2021-03-08 Tom Tromey <tom@tromey.com>
1446 * eval.c (eval_op_memval): New function.
1447 (evaluate_subexp_standard): Use it.
1449 2021-03-08 Tom Tromey <tom@tromey.com>
1451 * eval.c (eval_op_alignof): New function.
1452 (evaluate_subexp_standard): Use it.
1454 2021-03-08 Tom Tromey <tom@tromey.com>
1456 * eval.c (eval_op_ind): New function.
1457 (evaluate_subexp_standard): Use it.
1459 2021-03-08 Tom Tromey <tom@tromey.com>
1461 * eval.c (eval_op_lognot): New function.
1462 (evaluate_subexp_standard): Use it.
1464 2021-03-08 Tom Tromey <tom@tromey.com>
1466 * eval.c (eval_op_complement): New function.
1467 (evaluate_subexp_standard): Use it.
1469 2021-03-08 Tom Tromey <tom@tromey.com>
1471 * eval.c (eval_op_neg): New function.
1472 (evaluate_subexp_standard): Use it.
1474 2021-03-08 Tom Tromey <tom@tromey.com>
1476 * eval.c (eval_op_plus): New function.
1477 (evaluate_subexp_standard): Use it.
1479 2021-03-08 Tom Tromey <tom@tromey.com>
1481 * eval.c (eval_op_repeat): New function.
1482 (evaluate_subexp_standard): Use it.
1484 2021-03-08 Tom Tromey <tom@tromey.com>
1486 * eval.c (eval_op_leq): New function.
1487 (evaluate_subexp_standard): Use it.
1489 2021-03-08 Tom Tromey <tom@tromey.com>
1491 * eval.c (eval_op_geq): New function.
1492 (evaluate_subexp_standard): Use it.
1494 2021-03-08 Tom Tromey <tom@tromey.com>
1496 * eval.c (eval_op_gtr): New function.
1497 (evaluate_subexp_standard): Use it.
1499 2021-03-08 Tom Tromey <tom@tromey.com>
1501 * eval.c (eval_op_less): New function.
1502 (evaluate_subexp_standard): Use it.
1504 2021-03-08 Tom Tromey <tom@tromey.com>
1506 * eval.c (eval_op_notequal): New function.
1507 (evaluate_subexp_standard): Use it.
1509 2021-03-08 Tom Tromey <tom@tromey.com>
1511 * eval.c (eval_op_equal): New function.
1512 (evaluate_subexp_standard): Use it.
1514 2021-03-08 Tom Tromey <tom@tromey.com>
1516 * eval.c (eval_op_subscript): New function.
1517 (evaluate_subexp_standard): Use it.
1519 2021-03-08 Tom Tromey <tom@tromey.com>
1521 * eval.c (eval_op_binary): New function.
1522 (evaluate_subexp_standard): Use it.
1524 2021-03-08 Tom Tromey <tom@tromey.com>
1526 * eval.c (eval_op_sub): New function.
1527 (evaluate_subexp_standard): Use it.
1529 2021-03-08 Tom Tromey <tom@tromey.com>
1531 * eval.c (eval_op_add): New function.
1532 (evaluate_subexp_standard): Use it.
1534 2021-03-08 Tom Tromey <tom@tromey.com>
1536 * eval.c (eval_op_member): New function.
1537 (evaluate_subexp_standard): Use it.
1539 2021-03-08 Tom Tromey <tom@tromey.com>
1541 * eval.c (eval_op_structop_ptr): New function.
1542 (evaluate_subexp_standard): Use it.
1544 2021-03-08 Tom Tromey <tom@tromey.com>
1546 * eval.c (eval_op_structop_struct): New function.
1547 (evaluate_subexp_standard): Use it.
1549 2021-03-08 Tom Tromey <tom@tromey.com>
1551 * eval.c (eval_op_ternop): New function.
1552 (evaluate_subexp_standard): Use it.
1554 2021-03-08 Tom Tromey <tom@tromey.com>
1556 * eval.c (eval_op_concat): New function.
1557 (evaluate_subexp_standard): Use it.
1559 2021-03-08 Tom Tromey <tom@tromey.com>
1561 * eval.c (eval_op_objc_selector): New function.
1562 (evaluate_subexp_standard): Use it.
1564 2021-03-08 Tom Tromey <tom@tromey.com>
1566 * eval.c (eval_op_string): New function.
1567 (evaluate_subexp_standard): Use it.
1569 2021-03-08 Tom Tromey <tom@tromey.com>
1571 * eval.c (eval_op_register): New function.
1572 (evaluate_subexp_standard): Use it.
1574 2021-03-08 Tom Tromey <tom@tromey.com>
1576 * eval.c (eval_op_func_static_var): New function.
1577 (evaluate_subexp_standard): Use it.
1579 2021-03-08 Tom Tromey <tom@tromey.com>
1581 * eval.c (eval_op_var_msym_value): New function.
1582 (evaluate_subexp_standard): Use it.
1584 2021-03-08 Tom Tromey <tom@tromey.com>
1586 * eval.c (eval_op_var_entry_value): New function.
1587 (evaluate_subexp_standard): Use it.
1589 2021-03-08 Tom Tromey <tom@tromey.com>
1591 * eval.c (eval_op_scope): New function.
1592 (evaluate_subexp_standard): Use it.
1594 2021-03-06 Chernov Sergey <klen_s@mail.ru>
1597 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1599 2021-03-06 Tom Tromey <tom@tromey.com>
1601 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1602 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1603 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1604 (locate_dwz_sections, dwz_search_other_debugdirs)
1605 (dwarf2_get_dwz_file): Move to dwz.c.
1606 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1608 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1609 (dwarf2_get_dwz_file): Move from read.c.
1611 2021-03-06 Tom Tromey <tom@tromey.com>
1613 * debuginfod-support.h: Include scoped_fd.h.
1615 2021-03-06 Tom Tromey <tom@tromey.com>
1617 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1618 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1619 (get_abbrev_section_for_cu, read_attribute_value)
1620 (get_debug_line_section): Update.
1621 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1623 2021-03-06 Tom Tromey <tom@tromey.com>
1625 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1627 * dwarf2/read.c (section_is_p): Remove.
1628 (dwarf2_per_bfd::locate_sections)
1629 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1630 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1631 (dwarf2_locate_common_dwp_sections)
1632 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1635 2021-03-06 Tom Tromey <tom@tromey.com>
1637 * xcoffread.c: Include sect-names.h.
1638 * symfile.h (struct dwarf2_section_names, struct
1639 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1640 * dwarf2/sect-names.h: New file, from symfile.h.
1641 * dwarf2/read.c: Include sect-names.h.
1643 2021-03-06 Tom Tromey <tom@tromey.com>
1645 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1646 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1647 (abbrev_table::read): Update.
1648 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1649 (struct abbrev_info): Reformat.
1650 <attrs>: Now an array.
1651 (struct abbrev_table) <alloc_abbrev>: Remove.
1653 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1655 * ctfread.c (ctf_psymtab_add_enums): New function.
1656 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1658 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1660 * ctfread.c (read_func_kind_type): Set up function arguments.
1662 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1663 Andrew Burgess <andrew.burgess@embecosm.com>
1665 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1667 (riscv_csrset): New static global.
1668 (riscv_update_csrmap): New function.
1669 (riscv_iterate_over_regset_sections): Process CSRs.
1671 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1673 * riscv-tdep.c (riscv_feature_name_csr): Define.
1674 (riscv_feature_name_cpu): Define.
1675 (riscv_feature_name_fpu): Define.
1676 (riscv_feature_name_virtual): Define.
1677 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1678 (riscv_freg_feature): Use riscv_feature_name_fpu.
1679 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1680 (riscv_csr_feature): Use riscv_feature_name_csr.
1681 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1683 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1684 Craig Blackmore <craig.blackmore@embecosm.com>
1686 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1687 (ALLDEPFILES): Add riscv-none-tdep.c.
1688 * configure: Regenerate.
1689 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1691 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1692 * elf-none-tdep.c: New file.
1693 * elf-none-tdep.h: New file.
1694 * riscv-none-tdep.c: New file.
1696 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1697 Andrew Burgess <andrew.burgess@embecosm.com>
1699 * corelow.c: Add 'xml-tdesc.h' include.
1700 (core_target::read_description): Load the target description from
1701 the core file when possible.
1702 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1704 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1705 (gcore_elf_make_tdesc_note): New function.
1706 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1707 * linux-tdep.c (linux_make_corefile_notes): Add target description
1710 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1712 * Makefile.in (SFILES): Add gcore-elf.c.
1713 (HFILES_NO_SRCDIR): Add gcore-elf.h
1714 * configure: Regenerate.
1715 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1717 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1718 (struct fbsd_collect_regset_section_cb_data): Delete.
1719 (fbsd_collect_regset_section_cb): Delete.
1720 (fbsd_collect_thread_registers): Delete.
1721 (struct fbsd_corefile_thread_data): Delete.
1722 (fbsd_corefile_thread): Delete.
1723 (fbsd_make_corefile_notes): Call
1724 gcore_elf_build_thread_register_notes instead of the now deleted
1726 * gcore-elf.c: New file, the content was moved here from
1727 linux-tdep.c, functions were renamed and given minor cleanup.
1728 * gcore-elf.h: New file.
1729 * gcore.c (gcore_find_signalled_thread): Moved here from
1730 linux-tdep.c and given a new name. Minor cleanups.
1731 * gcore.h (gcore_find_signalled_thread): Declare.
1732 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1733 (struct linux_collect_regset_section_cb_data): Delete.
1734 (linux_collect_regset_section_cb): Delete.
1735 (linux_collect_thread_registers): Delete.
1736 (linux_corefile_thread): Call
1737 gcore_elf_build_thread_register_notes.
1738 (find_signalled_thread): Delete.
1739 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1741 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1744 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1745 process_stratum_target parameter,
1746 sparc_store_inferior_registers): update callers.
1747 * sparc-nat.c (sparc_fetch_inferior_registers,
1748 sparc_store_inferior_registers): Add process_stratum_target
1749 parameter. Switch current thread before calling
1750 sparc_supply_gregset / sparc_collect_rwindow.
1751 (sparc_store_inferior_registers): Likewise.
1752 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1753 (sparc32obsd_collect_uthread): Likewise.
1754 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1756 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1757 sparc64obsd_supply_uthread): Add assertion.
1759 2021-03-04 Tom Tromey <tromey@adacore.com>
1761 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1762 (aux_add_nonlocal_symbols): Update.
1763 (ada_add_block_symbols): Change "found_sym" to bool.
1765 2021-03-03 Tom Tromey <tromey@adacore.com>
1767 * ada-lang.c (ada_resolve_function): Update comment.
1768 (is_nonfunction, add_symbols_from_enclosing_procs)
1769 (remove_extra_symbols): Likewise.
1770 (struct match_data): Add constructor, initializers.
1771 (add_nonlocal_symbols): Remove memset.
1772 (aux_add_nonlocal_symbols): Update comment.
1773 (ada_add_block_renamings, add_nonlocal_symbols)
1774 (ada_add_all_symbols): Likewise.
1775 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1777 2021-03-02 Tom Tromey <tromey@adacore.com>
1779 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1780 (cast_to_gnat_encoded_fixed_point_type): Remove.
1781 (ada_value_cast, ada_evaluate_subexp): Update.
1782 (gnat_encoded_fixed_point_type_info)
1783 (ada_is_gnat_encoded_fixed_point_type)
1784 (gnat_encoded_fixed_point_delta)
1785 (gnat_encoded_fixed_point_scaling_factor): Remove.
1786 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1787 (gnat_encoded_fixed_point_delta)
1788 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1789 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1790 (ada_print_type): Update.
1791 * ada-valprint.c (ada_value_print_num): Update.
1792 * dwarf2/read.c (ada_get_gnat_encoded_number)
1793 (ada_get_gnat_encoded_ratio): New functions.
1794 (finish_fixed_point_type): Use them. Add parameters.
1795 (GNAT_FIXED_POINT_SUFFIX): New define.
1796 (gnat_encoded_fixed_point_type_info): New function.
1797 (read_base_type): Handle gnat encodings.
1799 2021-03-02 Tom Tromey <tromey@adacore.com>
1801 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1802 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1804 (GROW_VECT): Remove.
1805 (grow_vect): Remove.
1807 2021-03-02 Tom Tromey <tromey@adacore.com>
1809 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1810 * ada-lang.c (resolve_subexp): Update.
1811 (ada_resolve_function): Accept a vector.
1812 (is_nonfunction, add_defn_to_vec)
1813 (add_symbols_from_enclosing_procs): Likewise.
1814 (num_defns_collected, defns_collected): Remove.
1815 (remove_extra_symbols): Return a vector.
1816 (remove_irrelevant_renamings): Return void.
1817 (ada_add_local_symbols): Accept a vector.
1818 (struct match_data) <obstackp>: Remove.
1819 <resultp>: New member.
1820 (aux_add_nonlocal_symbols): Update.
1821 (ada_add_block_renamings, add_nonlocal_symbols)
1822 (ada_add_all_symbols): Accept a vector.
1823 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1825 (ada_lookup_symbol): Update.
1826 (ada_add_block_symbols): Accept a vector.
1827 (get_var_value, iterate_over_symbols): Update.
1828 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1831 2021-03-02 Tom Tromey <tromey@adacore.com>
1833 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1835 2021-03-02 Tom Tromey <tromey@adacore.com>
1837 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1840 (ada_pspace_data): Remove destructor.
1841 <sym_cache>: Now a unique_ptr.
1842 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1843 (ada_get_symbol_cache): Use 'new'.
1844 (ada_clear_symbol_cache): Rewrite.
1846 2021-03-02 Tom Tromey <tromey@adacore.com>
1848 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1851 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
1854 * source.c (add_path): Skip empty dirnames.
1856 2021-02-25 Kevin Buettner <kevinb@redhat.com>
1858 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1859 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1861 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1864 * target.c (target_mourn_inferior): Only compare pids in
1865 target_mourn_inferior.
1867 2021-02-25 Jan Matyas <jmatyas@codasip.com>
1870 * remote.c (remote_target::start_remote): Ensure the single
1871 thread, automatically added for remote targets without the
1872 concept of threading, is initially in set to the "resumed"
1874 * remote.c (remote_target::add_current_inferior_and_thread):
1875 Add return value - return the main thread.
1877 2021-02-25 Jan Vrany <jan.vrany@labware.com>
1879 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1880 (mi_tsv_created): Likewise.
1881 (mi_tsv_deleted): Likewise.
1883 2021-02-25 Tom de Vries <tdevries@suse.de>
1886 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1887 section_kind for &dwo_file->sections.info.
1889 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1892 * f-lang.c (fortran_argument_convert): Delete declaration.
1893 (fortran_prepare_argument): New function.
1894 (evaluate_subexp_f): Move logic to new function
1895 fortran_prepare_argument.
1897 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1899 * f-exp.y (f77_keywords): Add 'associated'.
1900 * f-lang.c (fortran_associated): New function.
1901 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1902 (operator_length_f): Likewise.
1903 (print_unop_or_binop_subexp_f): New function.
1904 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1905 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1906 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1907 (operator_check_f): Likewise.
1908 * std-operator.def: Add FORTRAN_ASSOCIATED.
1910 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1912 * f-exp.y (fortran_operators): Add ".xor.".
1914 2021-02-24 Tom de Vries <tdevries@suse.de>
1917 * dwarf2/attribute.c (attribute::form_is_signed): New function
1919 * dwarf2/attribute.h (attribute::as_signed): ... here.
1920 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1921 (attribute::form_is_signed): Declare.
1922 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1923 for DW_AT_decl_file.
1925 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1927 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1928 order for <sys/ptrace.h> and <asm/ptrace.h>.
1930 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1932 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1935 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1937 * exec.c (set_section_command): Move variable declarations into
1938 the function body, and use std::string instead of a fixed size
1941 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1943 * exec.c (exec_target::get_section_table): Delete member function.
1944 (section_table_read_available_memory): Use current_top_target, not
1945 just the exec_ops target.
1946 * target-delegates.c: Regenerate.
1947 * target.c (default_get_section_table): New function.
1948 * target.h (target_ops::get_section_table): Change default
1949 behaviour to call default_get_section_table.
1950 (default_get_section_table): Declare.
1952 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1954 * exec.c (exec_target::close): Call new clear_target_sections
1956 (program_space::add_target_sections): Update name of member
1958 (program_space::add_target_sections): Update name of member
1960 (program_space::remove_target_sections): Likewise.
1961 (exec_one_fork): Use new target_sections member function.
1962 (exec_target::get_section_table): Likewise.
1963 (exec_target::files_info): Likewise.
1964 (set_section_command): Likewise.
1965 (exec_set_section_address): Likewise.
1966 (exec_target::has_memory): Use new target_sections member
1968 * progspace.h (program_space::clear_target_sections): New member
1970 (program_space::target_sections): Rename member variable to
1971 m_target_sections, replace with a new member function.
1972 (program_space::m_target_sections): New member variable.
1973 * solib-dsbt.c (scan_dyntag): Use new member function.
1974 * solib-svr4.c (scan_dyntag): Likewise.
1976 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1978 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1980 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1981 (section_table_read_available_memory): Make local const.
1982 (exec_target::xfer_partial): Make local const.
1983 (print_section_info): Make parameter const.
1984 * gdb/exec.h (print_section_info): Likewise.
1985 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1987 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1989 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1991 * gdb/s390-tdep.c (s390_load): Likewise.
1992 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1993 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1994 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1996 (target_debug_print_const_target_section_table_p): ...this.
1997 * gdb/target-delegates.c: Regenerate.
1998 * gdb/target.c (target_get_section_table): Make return type const.
1999 (target_section_by_addr): Likewise. Also make some locals const.
2000 (memory_xfer_partial_1): Make some locals const.
2001 * gdb/target.h (struct target_ops) <get_section_table>: Make
2003 (target_section_by_addr): Likewise.
2004 (target_get_section_table): Likewise.
2006 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2008 * NEWS: Mention new 'maint info target-sections' command.
2009 * maint.c (maintenance_info_target_sections): New function.
2010 (_initialize_maint_cmds): Register new command.
2012 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2014 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2015 (riscv_features_from_bfd): ...this. Change parameter type to
2016 'bfd*', and update as required.
2017 (riscv_find_default_target_description): Update call to
2018 riscv_features_from_bfd. Select a default xlen based on
2020 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2022 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2024 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2025 dynamic types in UNOP_IND.
2027 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2030 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2032 (~dwarf2_queue_guard): Clear queue.
2033 (queue_comp_unit): Assert that queue is
2035 (process_queue): Adjust.
2036 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2038 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2041 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2042 to decide whether or not to enqueue it for expansion.
2043 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2044 after calling maybe_queue_comp_unit.
2046 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2048 * linux-nat.c (linux_nat_filter_event): Return void.
2050 2021-02-22 Tom Tromey <tromey@adacore.com>
2052 * solib-svr4.c (enable_break): Update.
2053 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2055 (target_bfd_reopen): Change parameter type.
2056 * bfd-target.h (target_bfd_reopen): Change parameter type.
2058 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2060 * thread.c (add_thread_silent): Add assert.
2061 (find_thread_ptid): Add assert.
2063 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2066 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2067 (target_unpush_up): Likewise.
2068 * procfs.c (procfs_target::attach): Push target early. Use
2069 target_unpush_up to unpush target in case of error.
2070 * target.h (struct target_unpusher): Move here.
2071 (target_unpush_up): Likewise.
2073 2021-02-19 Kevin Buettner <kevinb@redhat.com>
2075 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2076 (which in turn includes <gnulib/config.h>) before include
2079 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
2082 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2083 (decode_j_type_insn): Likewise.
2084 (decode_cj_type_insn): Likewise.
2085 (decode_b_type_insn): Likewise.
2088 2021-02-18 Tom Tromey <tom@tromey.com>
2090 * expression.h (struct expression) <evaluate>: Declare method.
2091 * eval.c (evaluate_subexp): Simplify.
2092 (expression::evaluate): New method.
2093 (evaluate_expression, evaluate_type): Use expression::evaluate.
2095 2021-02-17 Kevin Buettner <kevinb@redhat.com>
2097 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2099 (ada_lookup_name_info): Likewise.
2101 2021-02-13 Mike Frysinger <vapier@gentoo.org>
2103 * aclocal.m4: Regenerate.
2105 2021-02-12 Tom de Vries <tdevries@suse.de>
2108 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2109 (lin_thread_signals): New static var.
2110 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2112 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2113 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2115 * linux-thread-db.c (check_thread_signals): Use
2116 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2118 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2120 * f-exp.y (f77_keywords): Add allocated.
2121 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2122 (operator_length_f): Likewise.
2123 (print_subexp_f): Likewise.
2124 (dump_subexp_body_f): Likewise.
2125 (operator_check_f): Likewise.
2126 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2128 2021-02-11 Tom de Vries <tdevries@suse.de>
2131 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2132 Return true for DW_FORM_strx.
2134 2021-02-11 Tom Tromey <tromey@adacore.com>
2137 * parse.c (write_exp_symbol_reference): Write sym.block.
2139 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2141 * NEWS: Mention changes to 'maint info sections'.
2142 * maint.c (match_substring): Return a bool, fix whitespace issue.
2143 (struct single_bfd_flag_info): New struct.
2144 (bfd_flag_info): New static global.
2145 (match_bfd_flags): Return a bool, use bfd_flag_info.
2146 (print_bfd_flags): Use bfd_flag_info.
2147 (maint_print_section_info): Delete trailing whitespace.
2148 (struct maint_info_sections_opts): New struct.
2149 (maint_info_sections_option_defs): New static global.
2150 (maint_info_sections_completer): New function.
2151 (maintenance_info_sections): Use option parsing mechanism.
2152 (_initialize_maint_cmds): Update command help text for 'maint info
2153 sections' and register a command completer.
2155 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2157 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2158 functionality merged into...
2159 (maint_print_all_sections): ...this new function.
2160 (maintenance_info_sections): Make use of maint_print_all_sections,
2161 allow all objects to be printed even where there's no executable.
2163 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2165 * breakpoint.c (resolve_sal_pc): Make use of
2166 bound_minimal_symbol::obj_section.
2167 * maint.c (maintenance_translate_address): Likewise.
2168 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2169 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2171 * printcmd.c (info_address_command): Make use of
2172 bound_minimal_symbol::obj_section.
2174 2021-02-11 Alan Modra <amodra@gmail.com>
2176 * arm-symbian-tdep.c: Delete.
2177 * NEWS: Mention arm-symbian removal.
2178 * Makefile.in: Remove arm-symbian-tdep entries.
2179 * configure.tgt: Remove arm*-*-symbianelf*.
2180 * doc/gdb.texinfo: Remove mention of SymbianOS.
2181 * osabi.c (gdb_osabi_names): Remove "Symbian".
2182 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2183 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2184 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2186 * testsuite/gdb.base/dup-sect.exp: Likewise.
2187 * testsuite/gdb.base/long_long.exp: Likewise.
2188 * testsuite/gdb.base/solib-weak.exp: Likewise.
2189 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2190 * testsuite/gdb.python/py-section-script.exp: Likewise.
2191 * testsuite/lib/dwarf.exp: Likewise.
2192 * testsuite/lib/gdb.exp: Likewise.
2194 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2196 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2197 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2198 (one_or_two_args): New pattern.
2199 (f77_keywords): Add lbound and ubound.
2200 * f-lang.c (fortran_bounds_all_dims): New function.
2201 (fortran_bounds_for_dimension): New function.
2202 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2203 (operator_length_f): Likewise.
2204 (print_subexp_f): Likewise.
2205 (dump_subexp_body_f): Likewise.
2206 (operator_check_f): Likewise.
2207 * std-operator.def (FORTRAN_LBOUND): Define.
2208 (FORTRAN_UBOUND): Define.
2210 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2212 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2213 and set_section_index member functions where appropriate.
2214 * coffread.c (coff_symtab_read): Likewise.
2215 (process_coff_symbol): Likewise.
2216 * ctfread.c (set_symbol_address): Likewise.
2217 * dwarf2/read.c (add_partial_symbol): Likewise.
2218 (var_decode_location): Likewise.
2219 * language.c: Likewise.
2220 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2221 (compact_minimal_symbols): Likewise.
2222 (minimal_symbol_upper_bound): Likewise.
2223 * objfiles.c (relocate_one_symbol): Likewise.
2224 * psympriv.h (partial_symbol::obj_section): Likewise.
2225 (partial_symbol::address): Likewise.
2226 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2227 * stabsread.c (scan_file_globals): Likewise.
2228 * symmisc.c (dump_msymbols): Likewise.
2229 * symtab.c (general_symbol_info::obj_section): Likewise.
2230 (fixup_section): Likewise.
2231 (get_msymbol_address): Likewise.
2232 * symtab.h (general_symbol_info::section): Rename to...
2233 (general_symbol_info::m_section): ...this.
2234 (general_symbol_info::set_section_index): New member function.
2235 (general_symbol_info::section_index): Likewise.
2236 (SYMBOL_SECTION): Delete.
2237 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2238 set_section_index member functions where appropriate.
2239 (MSYMBOL_SECTION): Delete.
2240 (symbol::symbol): Update to initialize 'm_section'.
2241 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2242 (process_xcoff_symbol): Likewise.
2244 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2246 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2247 MSYMBOL_OBJ_SECTION.
2248 * findvar.c (language_defn::read_var_value): Likewise.
2249 * infcmd.c (jump_command): Likewise.
2250 * linespec.c (minsym_found): Likewise.
2251 * maint.c (maintenance_translate_address): Likewise.
2252 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2253 (minimal_symbol_upper_bound): Likewise.
2254 * parse.c (find_minsym_type_and_address): Likewise.
2255 (operator_check_standard): Likewise.
2256 * printcmd.c (info_address_command): Likewise.
2257 * symmisc.c (dump_msymbols): Likewise.
2258 (print_symbol): Likewise.
2259 * symtab.c (general_symbol_info::obj_section): Define new
2261 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2262 (find_pc_sect_compunit_symtab): Likewise.
2263 (find_function_start_sal): Likewise.
2264 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2265 MSYMBOL_OBJ_SECTION.
2266 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2268 (SYMBOL_OBJ_SECTION): Delete.
2269 (MSYMBOL_OBJ_SECTION): Delete.
2271 2021-02-09 Tom Tromey <tom@tromey.com>
2273 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2275 2021-02-09 Tom de Vries <tdevries@suse.de>
2278 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2279 construct an array type. Add assert to ensure that element_type is
2282 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2284 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2285 (gcore_collect_regset_section_cb): Delete.
2286 (gcore_collect_thread_registers): Delete.
2287 (gcore_build_thread_register_notes): Delete.
2288 (gcore_find_signalled_thread): Delete.
2289 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2290 'gdbarch' and 'thread_info' declarations.
2291 (gcore_build_thread_register_notes): Delete declaration.
2292 (gcore_find_signalled_thread): Likewise.
2293 * fbsd-tdep.c: Remove 'gcore.h' include.
2294 (struct fbsd_collect_regset_section_cb_data): New struct.
2295 (fbsd_collect_regset_section_cb): New function.
2296 (fbsd_collect_thread_registers): New function.
2297 (struct fbsd_corefile_thread_data): New struct.
2298 (fbsd_corefile_thread): New function.
2299 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2300 * linux-tdep.c: Remove 'gcore.h' include.
2301 (struct linux_collect_regset_section_cb_data): New struct.
2302 (linux_collect_regset_section_cb): New function.
2303 (linux_collect_thread_registers): New function.
2304 (linux_corefile_thread): Call Linux specific code.
2305 (find_signalled_thread): New function.
2306 (linux_make_corefile_notes): Call find_signalled_thread.
2308 2021-02-09 Tom Tromey <tromey@adacore.com>
2310 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2312 * value.c (value_contents_copy_raw): Now static.
2313 * value.h (value_contents_copy_raw): Don't declare.
2315 2021-02-09 Tom Tromey <tromey@adacore.com>
2317 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2320 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
2323 * arc-linux-tdep.c (handle_atomic_sequence): New.
2324 (arc_linux_software_single_step): Call handle_atomic_sequence().
2326 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2328 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2330 (REQUIRE_WINDOW): Call is_valid member function.
2331 (REQUIRE_WINDOW_FOR_SETTER): New define.
2332 (gdbpy_tui_is_valid): Call is_valid member function.
2333 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2334 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2336 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2337 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2340 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2342 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2343 for the title is not nullptr.
2345 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2347 * tui-layout.c (saved_tui_windows): Delete.
2348 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2349 call new get_windows member function instead.
2350 (tui_get_window_by_name): Check in tui_windows.
2351 (tui_layout_window::apply): Don't add to tui_windows.
2352 * tui-layout.h (tui_layout_base::get_windows): New member function.
2353 (tui_layout_window::get_windows): Likewise.
2354 (tui_layout_split::get_windows): Likewise.
2356 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2358 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2359 of the window objects.
2361 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2363 * python/python.c (gdbpy_print_stack): Reformat an error message.
2365 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2367 * tui/tui-interp.c (tui_command_line_handler): New function.
2368 (tui_interp::resume): Register tui_command_line_handler as the
2370 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2372 (tui_getc_1): Delete handling of '\n' and '\r'.
2373 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2375 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2377 * tui/tui-regs.c (tui_data_window::display_registers_from):
2378 Mark invisible register sub windows.
2379 (tui_data_window::check_register_values): Ignore invisible
2380 register sub windows.
2382 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2384 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2385 n_spaces with a negative value.
2387 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2389 * tui/tui-regs.c (tui_data_window::display_registers_from):
2390 Add refresh_window call.
2392 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2394 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2396 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2398 * symmisc.c (std_in, std_out, std_err): Remove.
2399 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2401 2021-02-05 Tom de Vries <tdevries@suse.de>
2403 PR breakpoints/27330
2404 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2405 glibc object file has debug info.
2407 2021-02-05 Tom de Vries <tdevries@suse.de>
2410 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2412 2021-02-05 Tom de Vries <tdevries@suse.de>
2414 PR breakpoints/27313
2415 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2418 2021-02-05 Tom Tromey <tom@tromey.com>
2420 * compile/compile-c-support.c (get_compile_context)
2421 (c_get_compile_context, cplus_get_compile_context): Change return
2423 * language.c (language_defn::get_compile_instance): New method.
2424 * language.h (language_defn::get_compile_instance): Change return
2425 type. No longer inline.
2426 * c-lang.c (c_language::get_compile_instance): Change return type.
2427 (cplus_language::get_compile_instance): Change return type.
2428 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2430 * compile/compile.c (compile_to_object): Update.
2432 2021-02-05 Tom Tromey <tom@tromey.com>
2434 * parser-defs.h (write_exp_symbol_reference): Declare.
2435 * parse.c (write_exp_symbol_reference): New function.
2436 * p-exp.y (variable): Use write_exp_symbol_reference.
2437 * m2-exp.y (variable): Use write_exp_symbol_reference.
2438 * f-exp.y (variable): Use write_exp_symbol_reference.
2439 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2440 * c-exp.y (variable): Use write_exp_symbol_reference.
2442 2021-02-05 Tom de Vries <tdevries@suse.de>
2445 * valarith.c (complex_binop): Throw an error if complex type can't
2448 2021-02-05 Tom de Vries <tdevries@suse.de>
2451 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2454 2021-02-05 Tom de Vries <tdevries@suse.de>
2456 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2458 2021-02-04 Mike Frysinger <vapier@gentoo.org>
2460 * configure.tgt (riscv*-*-*): Set gdb_sim.
2462 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2464 * target.c (target_is_non_stop_p): Return bool.
2465 * target.h (target_is_non_stop_p): Return bool.
2467 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2469 * record-full.c (record_full_async_inferior_event_handler):
2470 Don't clear async event handler.
2471 (record_full_base_target::wait): Clear async event handler at
2474 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2476 * record-btrace.c (record_btrace_handle_async_inferior_event):
2477 Don't clear async event handler.
2478 (record_btrace_target::wait): Clear async event handler at
2481 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2483 * remote.c (remote_target::wait): Clear async event handler at
2484 beginning, mark if needed at the end.
2485 (remote_async_inferior_event_handler): Don't set or clear async
2488 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2490 * async-event.h (async_event_handler_func): Add documentation.
2491 * async-event.c (check_async_event_handlers): Don't clear
2492 async_event_handler ready flag.
2493 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2495 * record-btrace.c (record_btrace_handle_async_inferior_event):
2497 * record-full.c (record_full_async_inferior_event_handler):
2499 * remote-notif.c (remote_async_get_pending_events_handler):
2501 * remote.c (remote_async_inferior_event_handler): Likewise.
2503 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2505 * infrun.c (handle_inferior_event): Move stop_soon variable to
2508 2021-02-03 Pedro Alves <pedro@palves.net>
2510 * infcmd.c (detach_command): Hold strong reference to target, and
2511 if all-stop on entry, restart threads on exit.
2512 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2513 (restart_stepped_thread): ... this new function. Also handle
2515 (restart_after_all_stop_detach): New function.
2516 * infrun.h (restart_after_all_stop_detach): Declare.
2518 2021-02-03 Pedro Alves <pedro@palves.net>
2520 * infrun.c (struct step_over_info): Initialize fields.
2521 (prepare_for_detach): Handle ongoing in-line step over.
2523 2021-02-03 Pedro Alves <pedro@palves.net>
2525 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2527 * remote.c (remote_target::remote_detach_1): ... and here ...
2528 * target.c (target_detach): ... instead of here.
2529 * target.h (target_ops::detach): Add comment.
2531 2021-02-03 Pedro Alves <pedro@palves.net>
2533 * infrun.c (struct wait_one_event): Move higher up.
2534 (prepare_for_detach): Abort in-progress displaced steps instead of
2535 letting them complete.
2536 (handle_one): If the inferior is detaching, don't add the thread
2537 back to the global step-over chain.
2538 (restart_threads): Don't restart threads if detaching.
2539 (handle_signal_stop): Remove inferior::detaching reference.
2541 2021-02-03 Pedro Alves <pedro@palves.net>
2543 * infrun.c (prepare_for_detach): Don't release scoped_restore
2546 2021-02-03 Pedro Alves <pedro@palves.net>
2548 * infrun.c (handle_one): New function, factored out from ...
2549 (stop_all_threads): ... here.
2551 2021-02-03 Pedro Alves <pedro@palves.net>
2553 * remote.c (remote_notif_stop_ack): Don't error out on
2554 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2555 (remote_target::discard_pending_stop_replies): Don't delete
2556 in-flight notification; instead, clear its contents.
2558 2021-02-03 Pedro Alves <pedro@palves.net>
2560 * remote.c (extended_remote_target::attach): Set target async in
2561 the target-non-stop path too.
2563 2021-02-03 Pedro Alves <pedro@palves.net>
2566 * infrun.c (handle_signal_stop): Move main context_switch call
2567 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2569 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2571 * NEWS (Changed commands): Add entry for the behavior change of
2572 the inferior command.
2573 * inferior.c (inferior_command): When no argument is given to the
2574 inferior command, display info about the currently selected
2577 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2579 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2581 (read_attribute_reprocess): Adjust.
2583 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2585 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2586 <gnu_ranges_base>: ... this...
2587 <rnglists_base>: ... and this.
2588 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2589 <gnu_ranges_base>: ... this...
2590 <rnglists_base>: ... and this.
2591 (read_cutu_die_from_dwo): Adjust
2592 (dwarf2_get_pc_bounds): Adjust
2593 (dwarf2_record_block_ranges): Adjust.
2594 (read_full_die_1): Adjust
2595 (partial_die_info::read): Adjust.
2596 (read_rnglist_index): Adjust.
2598 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2601 * dwarf2/read.c (read_loclists_rnglists_header): Add
2602 header_offset parameter and use it.
2603 (read_loclist_index): Read header of the current contribution,
2604 not the one at the beginning of the section.
2605 (read_rnglist_index): Likewise.
2607 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2610 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2611 requires_reprocessing flag.
2612 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2614 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2615 and DW_FORM_loclistx.
2616 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2617 instead of set_address for DW_FORM_loclistx and
2620 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2622 * dwarf2/read.c (read_loclist_index): Remove bound check for
2624 (read_rnglist_index): Likewise.
2626 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2628 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2631 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2633 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2635 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2637 * dwarf2/read.c (read_loclist_index): Change complaints into
2640 2021-02-02 Tom de Vries <tdevries@suse.de>
2643 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2646 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2648 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2649 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2650 here from linux-tdep.c and given a new name. Minor cleanups.
2651 (gcore_collect_regset_section_cb): Likewise.
2652 (gcore_collect_thread_registers): Likewise.
2653 (gcore_build_thread_register_notes): Likewise.
2654 (gcore_find_signalled_thread): Likewise.
2655 * gcore.h (gcore_build_thread_register_notes): Declare.
2656 (gcore_find_signalled_thread): Declare.
2657 * fbsd-tdep.c: Add 'gcore.h' include.
2658 (struct fbsd_collect_regset_section_cb_data): Delete.
2659 (fbsd_collect_regset_section_cb): Delete.
2660 (fbsd_collect_thread_registers): Delete.
2661 (struct fbsd_corefile_thread_data): Delete.
2662 (fbsd_corefile_thread): Delete.
2663 (fbsd_make_corefile_notes): Call
2664 gcore_build_thread_register_notes instead of the now deleted
2666 * linux-tdep.c: Add 'gcore.h' include.
2667 (struct linux_collect_regset_section_cb_data): Delete.
2668 (linux_collect_regset_section_cb): Delete.
2669 (linux_collect_thread_registers): Delete.
2670 (linux_corefile_thread): Call
2671 gcore_build_thread_register_notes.
2672 (find_signalled_thread): Delete.
2673 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2675 2021-01-29 Tom de Vries <tdevries@suse.de>
2677 PR breakpoints/26063
2678 * infrun.c (process_event_stop_test): Reset
2679 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2682 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2684 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2685 assert. Extend the header comment.
2687 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2689 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2690 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2691 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2692 (tui_locator_win_info_ptr): Delete declaration.
2693 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2694 (tui_disasm_window::set_contents): Fetch state from tui_location
2696 (tui_get_begin_asm_address): Likewise.
2697 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2699 (get_locator_window): Delete.
2700 (initialize_known_windows): Treat locator window just like all the
2702 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2703 (tui_source_window::set_contents): Fetch state from tui_location
2705 (tui_source_window::showing_source_p): Likewise.
2706 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2708 (tui_locator_win_info_ptr): Delete.
2709 (tui_locator_window::make_status_line): Fetch state from
2710 tui_location global.
2711 (tui_locator_window::rerender): Remove check of 'handle',
2712 reindent function body.
2713 (tui_locator_window::set_locator_fullname): Delete.
2714 (tui_locator_window::set_locator_info): Delete.
2715 (tui_update_locator_fullname): Delete.
2716 (tui_show_frame_info): Likewise.
2717 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2718 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2719 tui/tui-location.h and renamed to
2720 tui_location_tracker::set_location.
2721 (tui_locator_window::set_locator_fullname): Moved to
2722 tui/tui-location.h and renamed to
2723 tui_location_tracker::set_fullname.
2724 (tui_locator_window::full_name): Delete.
2725 (tui_locator_window::proc_name): Delete.
2726 (tui_locator_window::line_no): Delete.
2727 (tui_locator_window::addr): Delete.
2728 (tui_locator_window::gdbarch): Delete.
2729 (tui_update_locator_fullname): Delete declaration.
2730 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2732 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2733 (tui_display_main): Call function on tui_location directly.
2734 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2735 * tui/tui-location.c: New file.
2736 * tui/tui-location.h: New file.
2738 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2740 * gdbtypes.h (get_type_arch): Rename to...
2741 (struct type) <arch>: ... this, update all users.
2743 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2745 * gdbtypes.h (struct type) <arch>: Rename to...
2746 <arch_owner>: ... this, update all users.
2747 <objfile>: Rename to...
2748 <objfile_owner>: ... this, update all users.
2750 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2752 * gdbcmd.h (execute_command_to_string): Update comment.
2753 * top.c (execute_command_to_string): Update header comment.
2755 2021-01-28 Tom de Vries <tdevries@suse.de>
2757 PR breakpoints/27205
2758 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2759 (create_longjmp_master_breakpoint_names): New function, factored out
2761 (create_longjmp_master_breakpoint): ... here. Only try to install
2762 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2763 breakpoint in libc.so failed.
2765 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2768 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2769 unique_ptr is released when the wrapped pointer is kept for later
2772 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2774 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2775 BLR and BR instructions.
2776 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2777 (enum aarch64_masks): New.
2779 2021-01-26 Tom Tromey <tromey@adacore.com>
2781 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2782 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2783 (windows_init_thread_list, windows_nat::handle_load_dll)
2784 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2785 (windows_nat_target::resume)
2786 (windows_nat_target::get_windows_debug_event)
2787 (windows_nat_target::interrupt, windows_xfer_memory)
2788 (windows_nat_target::close): Update.
2789 * nat/windows-nat.c (DEBUG_EVENTS): Use
2790 debug_prefixed_printf_cond.
2791 (matching_pending_stop, fetch_pending_stop)
2792 (continue_last_debug_event): Update.
2794 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2796 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2797 elfcore_write_file_note.
2799 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
2801 * arc-tdep.c (arc_add_reggroups): New function.
2802 (arc_gdbarch_init): Call arc_add_reggroups.
2804 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
2806 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2808 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2809 Simon Marchi <simon.marchi@polymtl.ca>
2810 Tom de Vries <tdevries@suse.de>
2812 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2815 2021-01-25 Tom Tromey <tromey@adacore.com>
2817 * dwarf2/read.c (get_mpz): New function.
2818 (get_dwarf2_rational_constant): Use it.
2820 2021-01-25 Tom Tromey <tromey@adacore.com>
2822 * ada-lang.c (resolve_subexp): Handle array context.
2824 2021-01-23 Tom Tromey <tom@tromey.com>
2827 * compile/compile-loc2c.c (note_register): New function.
2828 (pushf_register_address, pushf_register): Use it.
2830 2021-01-23 Tom Tromey <tom@tromey.com>
2832 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2833 Change type of "registers_used".
2834 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2835 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2836 (locexpr_generate_c_location, loclist_generate_c_location): Change
2837 type of "registers_used".
2838 * compile/compile.h (compile_dwarf_expr_to_c)
2839 (compile_dwarf_bounds_to_c): Update.
2840 * compile/compile-loc2c.c (pushf_register_address)
2841 (pushf_register, do_compile_dwarf_expr_to_c)
2842 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2843 of "registers_used".
2844 * compile/compile-c.h (generate_c_for_variable_locations):
2846 * compile/compile-c-symbols.c (generate_vla_size)
2847 (generate_c_for_for_one_variable): Change type of
2849 (generate_c_for_variable_locations): Return std::vector.
2850 * compile/compile-c-support.c (generate_register_struct): Change
2851 type of "registers_used".
2854 2021-01-23 Tom Tromey <tom@tromey.com>
2856 * compile/compile-internal.h (class compile_instance)
2857 <set_arguments>: Change return type.
2858 * compile/compile.c (compile_to_object): Remove call to reset.
2859 (compile_instance::set_arguments): Change return type.
2861 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2863 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2864 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2866 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2868 * Makefile.in (SELFTESTS_SRCS): Add
2869 unittests/gdb_tilde_expand-selftests.c.
2870 * unittests/gdb_tilde_expand-selftests.c: New file.
2872 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2875 * NEWS: Mention new command.
2876 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2877 (version_style): Define.
2878 (cli_style_option::cli_style_option): Add intensity parameter, and
2880 (_initialize_cli_style): Register version style set/show commands.
2881 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2882 (version_style): Declare.
2883 * top.c (print_gdb_version): Use version_stype, and styled_string
2884 to print the GDB version string.
2886 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2888 * utils.c (emit_style_escape): Only emit an escape sequence if the
2889 requested style is different than the current applied style.
2890 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2891 current applied_style.
2892 (fputs_styled): Remove is_default check.
2893 (fputs_styled_unfiltered): Likewise.
2894 (vfprintf_styled_no_gdbfmt): Likewise.
2896 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2898 * remote.h (remote_debug_printf): New.
2899 (remote_debug_printf_nofunc): New.
2900 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2901 * remote.c: Use above macros throughout file.
2903 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2905 * remote.h (remote_debug): Change to bool.
2906 * remote.c (remote_debug): Change to bool.
2907 (_initialize_remote): Adjust.
2909 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2911 * target.h (remote_debug): Move to...
2912 * remote.h (remote_debug): ... here.
2913 * top.c (remote_debug): Move to...
2914 * remote.c (remote_debug): ... here.
2915 * remote-sim.c: Include remote.h.
2917 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2919 * cli/cli-cmds.c (show_remote_debug): Remove.
2920 (show_remote_timeout): Remove.
2921 (_initialize_cli_cmds): Don't register commands.
2922 * remote.c (show_remote_debug): Move here.
2923 (show_remote_timeout): Move here.
2924 (_initialize_remote): Register commands.
2926 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2928 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2929 type::objfile method instead.
2931 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2933 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2934 use the type::is_objfile_owned method.
2936 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
2938 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2939 (TYPE_OWNER): Remove.
2940 (TYPE_OBJFILE): Adjust.
2941 (struct main_type) <flag_objfile_owned>: Rename to...
2942 <m_flag_objfile_owned>: ... this.
2943 <owner>: Rename to...
2944 <m_owner>: ... this.
2945 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2947 (TYPE_ALLOC): Adjust.
2948 * gdbtypes.c (alloc_type): Adjust.
2949 (alloc_type_arch): Adjust.
2950 (alloc_type_copy): Adjust.
2951 (get_type_arch): Adjust.
2952 (smash_type): Adjust.
2953 (lookup_array_range_type): Adjust.
2954 (recursive_dump_type): Adjust.
2955 (copy_type_recursive): Adjust.
2956 * compile/compile-c-types.c (convert_func): Adjust.
2957 (convert_type_basic): Adjust.
2958 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2961 (language_arch_info::type_and_symbol::alloc_type_symbol):
2964 2021-01-21 Luis Machado <luis.machado@linaro.org>
2966 * coffread.c (enter_linenos): Passing string to complaint.
2967 * valops.c (value_assign): Make array view.
2969 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2971 * auto-load.h (debug_auto_load): Move here.
2972 (auto_load_debug_printf): New.
2973 * auto-load.c: Use auto_load_debug_printf.
2974 (debug_auto_load): Move to header.
2975 * linux-thread-db.c (try_thread_db_load): Use
2976 auto_load_debug_printf.
2977 * main.c (captured_main_1): Likewise.
2979 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2981 * f-valprint.c (f77_array_offset_tbl): Remove.
2983 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2985 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2987 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2989 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2992 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
2995 * python/py-breakpoint.c (bppy_get_location): Handle
2996 bp_hardware_breakpoint.
2997 (bppy_init): Likewise.
2998 (gdbpy_breakpoint_created): Likewise.
3000 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3002 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3004 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3006 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3007 (_initialize_gdb_bfd): Adjust.
3009 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3012 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3014 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3016 * dwarf2/read.c (follow_die_offset): Add logging.
3017 (dwarf2_per_objfile::age_comp_units): Add logging.
3019 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3021 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3022 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3023 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3024 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3025 * arm-tdep.c (struct frame_unwind): Make static.
3026 * auto-load.c (auto_load_safe_path_vec): Make static.
3027 * csky-tdep.c (csky_stub_unwind): Make static.
3028 * gdbarch.c (gdbarch_data_registry): Make static.
3029 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3030 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3031 * i386-tdep.c (i386_frame_setup_skip_insns,
3032 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3034 * infrun.c (observer_mode): Make static.
3035 * linux-nat.c (sigchld_action): Make static.
3036 * linux-thread-db.c (thread_db_list): Make static.
3037 * maint-test-options.c (maintenance_test_options_list):
3038 * mep-tdep.c (mep_csr_registers): Make static.
3039 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3040 (stats): Make static.
3041 * nat/linux-osdata.c (struct osdata_type): Make static.
3042 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3043 * progspace.c (last_program_space_num): Make static.
3044 * python/py-param.c (struct parm_constant): Remove struct type
3046 (parm_constants): Make static.
3047 * python/py-record-btrace.c (btpy_list_methods): Make static.
3048 * python/py-record.c (recpy_gap_type): Make static.
3049 * record.c (record_goto_cmdlist): Make static.
3050 * regcache.c (regcache_descr_handle): Make static.
3051 * registry.h (DEFINE_REGISTRY): Make definition static.
3052 * symmisc.c (std_in, std_out, std_err): Make static.
3053 * top.c (previous_saved_command_line): Make static.
3054 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3056 * unittests/command-def-selftests.c (nr_duplicates,
3057 nr_invalid_prefixcmd, lists): Make static.
3058 * unittests/observable-selftests.c (test_notification): Make
3060 * unittests/optional/assignment/1.cc (counter): Make static.
3061 * unittests/optional/assignment/2.cc (counter): Make static.
3062 * unittests/optional/assignment/3.cc (counter): Make static.
3063 * unittests/optional/assignment/4.cc (counter): Make static.
3064 * unittests/optional/assignment/5.cc (counter): Make static.
3065 * unittests/optional/assignment/6.cc (counter): Make static.
3067 2021-01-20 Joel Sherrill <joel@rtems.org>
3070 * remote.c (struct remote_thread_info) <resume_state>: Rename
3072 <get_resume_state>: ... this.
3073 (remote_target::resume): Adjust.
3074 (remote_target::commit_resume): Adjust.
3075 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3077 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3078 Tom Tromey <tom@tromey.com>
3080 * stap-probe.c (stap_parse_single_operand): Handle '!'
3082 (stap_parse_argument_conditionally): Likewise.
3083 Skip spaces after processing open-parenthesis sub-expression.
3084 (stap_parse_argument_1): Skip spaces after call to
3085 stap_parse_argument_conditionally.
3086 Handle case when right-side expression is a parenthesized
3088 Skip spaces after call to stap_parse_argument_1.
3090 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3092 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3094 2021-01-19 Luis Machado <luis.machado@linaro.org>
3096 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3097 memory and save data.
3098 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3099 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3100 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3101 (trad_frame_value_bytes_p): Remove.
3102 (trad_frame_reset_saved_regs): Adjust documentation.
3103 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3104 constructor and reset the state of the registers.
3105 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3106 (trad_frame_value_bytes_p, trad_frame_set_value)
3107 (trad_frame_set_realreg, trad_frame_set_addr)
3108 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3109 (trad_frame_set_reg_realreg): Update to call member function.
3110 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3111 (trad_frame_get_prev_register): Likewise.
3113 * aarch64-tdep.c (aarch64_analyze_prologue)
3114 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3115 (aarch64_prologue_prev_register): Update to use member functions.
3116 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3117 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3118 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3119 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3120 (arm_make_epilogue_frame_cache): Likewise.
3121 * avr-tdep.c (avr_frame_unwind_cache)
3122 (avr_frame_prev_register): Likewise.
3123 * cris-tdep.c (cris_scan_prologue): Likewise.
3124 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3125 * frv-tdep.c (frv_analyze_prologue): Likewise.
3126 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3127 * lm32-tdep.c (lm32_frame_cache): Likewise.
3128 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3129 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3130 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3131 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3132 (reset_saved_regs): Adjust to set realreg.
3133 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3134 call member functions.
3135 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3136 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3137 (s390_backchain_frame_unwind_cache): Likewise.
3138 * score-tdep.c (score7_analyze_prologue)
3139 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3140 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3141 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3142 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3143 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3144 * tilegx-tdep.c (tilegx_analyze_prologue)
3145 (tilegx_frame_cache): Likewise.
3146 * v850-tdep.c (v850_frame_cache): Likewise.
3147 * vax-tdep.c (vax_frame_cache): Likewise.
3149 2021-01-19 Luis Machado <luis.machado@linaro.org>
3151 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3153 (put_frame_register_bytes): Likewise.
3154 Adjust documentation.
3155 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3156 (safe_frame_unwind_memory): Likewise.
3157 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3158 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3160 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3161 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3162 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3163 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3164 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3165 * dwarf2/loc.c (rw_pieced_value): Likewise.
3166 * hppa-tdep.c (hppa_frame_cache): Likewise.
3167 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3168 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3169 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3170 (i386_linux_rt_sigtramp_start): Likewise.
3171 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3172 * i386-tdep.c (i386_register_to_value): Likewise.
3173 * i387-tdep.c (i387_register_to_value): Likewise.
3174 * ia64-tdep.c (ia64_register_to_value): Likewise.
3175 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3176 (m32r_linux_rt_sigtramp_start): Likewise.
3177 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3178 * m68k-tdep.c (m68k_register_to_value): Likewise.
3179 * mips-tdep.c (mips_register_to_value)
3180 (mips_value_to_register): Likewise.
3181 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3182 (ppcfbsd_sigtramp_frame_cache): Likewise.
3183 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3184 (ppcobsd_sigtramp_frame_cache): Likewise.
3185 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3186 (rs6000_register_to_value): Likewise.
3187 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3188 * tramp-frame.c (tramp_frame_start): Likewise.
3189 * valops.c (value_assign): Likewise.
3191 2021-01-19 Luis Machado <luis.machado@linaro.org>
3193 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3195 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3196 instead of buffer and size.
3197 (trad_frame_set_reg_value_bytes): Likewise.
3198 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3199 (trad_frame_set_value_bytes): Likewise.
3201 2021-01-18 Mike Frysinger <vapier@gentoo.org>
3203 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3205 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3207 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3208 (riscv_fbsd_gregset): Use riscv_supply_regset.
3209 (riscv_fbsd_fpregset): Likewise.
3210 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3211 (riscv_linux_fregset): Likewise.
3212 * riscv-tdep.c (riscv_supply_regset): Define new function.
3213 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3215 2021-01-18 Tom de Vries <tdevries@suse.de>
3218 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3220 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3223 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3225 * remote.c (class remote_target) <remote_hostio_send_command,
3226 remote_hostio_parse_result>: Constify parameter.
3227 (remote_hostio_parse_result): Likewise.
3228 (remote_target::remote_hostio_send_command): Adjust.
3229 (remote_target::remote_hostio_pread_vFile): Adjust.
3230 (remote_target::fileio_readlink): Adjust.
3231 (remote_target::fileio_fstat): Adjust.
3233 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3235 * remote.c (remote_target::start_remote): Move wait_status to
3238 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3240 * remote.c (class remote_target):
3241 <add_current_inferior_and_thread>: Constify parameter.
3242 (stop_reply_extract_thread): Likewise.
3243 (remote_target::get_current_thread): Likewise.
3244 (remote_target::add_current_inferior_and_thread): Likewise.
3246 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3248 * remote.c (class remote_target)
3249 <remote_unpack_thread_info_response,
3250 parse_threadlist_response>: Constify parameter and/or return
3251 value and or local variable.
3252 (stub_unpack_int): Likewise.
3253 (unpack_nibble): Likewise.
3254 (unpack_byte): Likewise.
3255 (unpack_int): Likewise.
3256 (unpack_string): Likewise.
3257 (unpack_threadid): Likewise.
3258 (remote_target::remote_unpack_thread_info_response): Likewise.
3259 (remote_target::parse_threadlist_response): Likewise.
3261 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3263 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3265 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
3267 * MAINTAINERS (Write After Approval): Add myself.
3269 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3271 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3272 because is_trivially_default_constructible was first implemented with
3275 2021-01-14 Tom de Vries <tdevries@suse.de>
3277 PR breakpoints/27151
3278 * objfiles.h (in_plt_section): Handle .plt.sec.
3280 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3284 (remote_target::select_thread_for_ambiguous_stop_reply): New
3286 (remote_target::process_stop_reply): Call
3287 select_thread_for_ambiguous_stop_reply.
3289 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3291 * record-btrace.c (class record_btrace_target): Remove.
3292 (record_btrace_target::commit_resume): Remove.
3293 * record-full.c (class record_full_target): Remove.
3294 (record_full_target::commit_resume): Remove.
3296 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3298 * remote.c (enum class resume_state): New.
3299 (struct resumed_pending_vcont_info): New.
3300 (struct remote_thread_info) <resume_state, set_not_resumed,
3301 set_resumed_pending_vcont, resumed_pending_vcont_info,
3302 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3304 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3305 (remote_target::remote_add_thread): Adjust.
3306 (remote_target::process_initial_stop_replies): Adjust.
3307 (remote_target::resume): Adjust.
3308 (remote_target::commit_resume): Rely on state in
3309 remote_thread_info and not on tp->executing.
3310 (remote_target::process_stop_reply): Adjust.
3312 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3314 * arc-tdep.h (arc_debug_printf): New.
3315 * arc-tdep.c: Use arc_debug_printf.
3316 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3317 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3318 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3320 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3322 * arc-tdep.h (arc_debug): Change type to bool.
3323 * arc-tdep.c (arc_debug): Change type to bool.
3324 (arc_analyze_prologue): Adjust.
3325 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3326 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3328 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3330 * auto-load.c (auto_load_objfile_script_1): Use bool.
3331 (execute_script_contents): Use bool.
3333 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3335 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3337 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3339 * extension-priv.h (struct extension_language_script_ops)
3340 <auto_load_enabled>: Return bool.
3341 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3343 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3345 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3347 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3348 move comment to header.
3349 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3351 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3352 move comment to header.
3354 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3356 * auto-load.h (file_is_auto_load_safe): Change return type to
3357 bool, move comment here.
3358 * auto-load.c (file_is_auto_load_safe): Change return type and
3359 advice_printed to bool. Move comment to header.
3361 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3363 * jit.c (jit_debug_printf): New, use throughout file.
3365 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3367 * infrun.c (normal_stop): Fix indentation.
3369 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3371 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3373 * symfile.h: ... here.
3374 * symfile.c: Update doc.
3376 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3378 * target.h (baud_rate, serial_parity): Move declarations...
3379 * serial.h: ... here.
3380 * main.c: Include serial.h.
3381 * serial.c (baud_rate, serial_parity): Update doc.
3383 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3385 * top.c (pre_init_ui_hook): Remove.
3387 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3389 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3390 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3391 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3392 * features/aarch64-fpu.xml: Add bfloat16 type.
3394 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3396 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3398 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3400 * f-exp.y (dot_ops): Rename to...
3401 (fortran_operators): ...this. Add a header comment. Add symbol
3403 (yylex): Update to use fortran_operators not dot_ops. Remove
3404 special handling for '**', this is now included in
3407 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3409 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3410 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3411 * aarch64-tdep.c: Use aarch64_debug_printf.
3413 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3415 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3418 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3420 * jit.c (jit_debug): Change type to bool.
3421 (_initialize_jit): Adjust.
3423 2021-01-09 Tom Tromey <tom@tromey.com>
3426 * compile/compile.c (compile_to_object): Avoid crash when
3427 osabi_triplet_regexp returns NULL.
3429 2021-01-09 Tom Tromey <tom@tromey.com>
3431 * tracepoint.h (class collection_list) <append_exp>: Take a
3433 * tracepoint.c (collection_list::append_exp): Take a std::string.
3434 (encode_actions_1): Update.
3436 2021-01-08 Tom Tromey <tromey@adacore.com>
3438 * parse.c (parse_expression): Add void_context_p parameter. Use
3439 parse_exp_in_context.
3440 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3442 (print_command, call_command): Update.
3443 * expression.h (parse_expression): Add void_context_p parameter.
3445 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3447 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3448 for internalvar components that have a dynamic location.
3450 2021-01-08 Tom de Vries <tdevries@suse.de>
3453 * breakpoint.c (create_exception_master_breakpoint_probe)
3454 (create_exception_master_breakpoint_hook): Factor out
3456 (create_exception_master_breakpoint): ... here. Only try to install
3457 the master exception breakpoint in objfile.debug using the
3458 _Unwind_DebugHook method, if the install using probes in objfile
3461 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3463 * f-lang.c (fortran_value_subarray): Call value_from_component.
3465 2021-01-07 Mike Frysinger <vapier@gentoo.org>
3467 * remote-sim.c: Include memory-map.h.
3468 (gdbsim_target): Define memory_map override.
3469 (gdbsim_target::memory_map): Define.
3471 2021-01-07 Tom Tromey <tromey@adacore.com>
3473 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3475 2021-01-07 Tom Tromey <tromey@adacore.com>
3477 * ada-lang.c (add_component_interval): Start loop using vector's
3480 2021-01-06 Tom Tromey <tromey@adacore.com>
3482 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3484 * valarith.c (fixed_point_binop): Handle multiplication
3485 and division specially.
3486 * valops.c (value_to_gdb_mpq): New function.
3487 (value_cast_to_fixed_point): Use it.
3489 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3491 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3492 Call wnoutrefresh instead of tui_win_info::refresh_window.
3494 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3496 * tui/tui-source.c (tui_source_window::show_line_number):
3497 Redraw second space after line number.
3499 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3502 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3503 Fix source pad size in prefresh.
3504 (tui_source_window_base::show_source_content): Grow source pad
3507 2021-01-04 Mike Frysinger <vapier@gentoo.org>
3509 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3510 (bfin_frame_align): Use align_down.
3512 2021-01-04 Tom de Vries <tdevries@suse.de>
3514 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3515 terminators that do not terminate anything.
3517 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3519 * debug.c (debug_print_depth): New.
3520 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3521 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3522 * infrun.c (start_step_over): Use
3523 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3524 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3525 INFRUN_SCOPED_DEBUG_START_END.
3526 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3528 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3530 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3532 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3534 * utils.c (vfprintf_unfiltered): Print timestamp only when
3535 previous debug output ended with a newline.
3537 2021-01-04 Luis Machado <luis.machado@linaro.org>
3539 Update all users of trad_frame_saved_reg to use the new member
3542 Remote all struct keywords from declarations of trad_frame_saved_reg
3543 types, except on forward declarations.
3545 * aarch64-tdep.c: Update.
3546 * alpha-mdebug-tdep.c: Update.
3547 * alpha-tdep.c: Update.
3548 * arc-tdep.c: Update.
3549 * arm-tdep.c: Update.
3550 * avr-tdep.c: Update.
3551 * cris-tdep.c: Update.
3552 * csky-tdep.c: Update.
3553 * frv-tdep.c: Update.
3554 * hppa-linux-tdep.c: Update.
3555 * hppa-tdep.c: Update.
3556 * hppa-tdep.h: Update.
3557 * lm32-tdep.c: Update.
3558 * m32r-linux-tdep.c: Update.
3559 * m32r-tdep.c: Update.
3560 * m68hc11-tdep.c: Update.
3561 * mips-tdep.c: Update.
3562 * moxie-tdep.c: Update.
3563 * riscv-tdep.c: Update.
3564 * rs6000-tdep.c: Update.
3565 * s390-linux-tdep.c: Update.
3566 * s390-tdep.c: Update.
3567 * score-tdep.c: Update.
3568 * sparc-netbsd-tdep.c: Update.
3569 * sparc-sol2-tdep.c: Update.
3570 * sparc64-fbsd-tdep.c: Update.
3571 * sparc64-netbsd-tdep.c: Update.
3572 * sparc64-obsd-tdep.c: Update.
3573 * sparc64-sol2-tdep.c: Update.
3574 * tilegx-tdep.c: Update.
3575 * v850-tdep.c: Update.
3576 * vax-tdep.c: Update.
3578 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3579 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3581 * trad-frame.c: Update.
3582 Remove TF_REG_* enum.
3583 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3584 a trivially-constructible struct.
3585 (trad_frame_reset_saved_regs): Adjust to use member function.
3586 (trad_frame_value_p): Likewise.
3587 (trad_frame_addr_p): Likewise.
3588 (trad_frame_realreg_p): Likewise.
3589 (trad_frame_value_bytes_p): Likewise.
3590 (trad_frame_set_value): Likewise.
3591 (trad_frame_set_realreg): Likewise.
3592 (trad_frame_set_addr): Likewise.
3593 (trad_frame_set_unknown): Likewise.
3594 (trad_frame_set_value_bytes): Likewise.
3595 (trad_frame_get_prev_register): Likewise.
3596 * trad-frame.h: Update.
3597 (trad_frame_saved_reg_kind): New enum.
3598 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3599 <m_kind, m_reg>: New member fields.
3600 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3601 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3602 <is_addr, is_unknown, is_value_bytes>: New member functions.
3604 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3606 * target-float.c: Fix typos.
3608 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
3610 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3612 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3614 * gdbarch.sh: Update copyright year range.
3616 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3618 Update copyright year range in copyright header of all GDB files.
3620 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3622 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3623 to the list of directories to update.
3625 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3627 * top.c (print_gdb_version): Update copyright year.
3629 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3631 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
3633 For older changes see ChangeLog-2020.
3639 version-control: never