1 2021-03-08 Tom Tromey <tom@tromey.com>
3 * m2-lang.h (class m2_language) <expresssion_ops,
4 exp_descriptor_modula2>: Remove.
5 * m2-lang.c (evaluate_subexp_modula2)
6 (m2_language::exp_descriptor_modula2): Remove.
8 2021-03-08 Tom Tromey <tom@tromey.com>
10 * f-lang.h (class f_language) <expresssion_ops>: Remove.
11 <exp_descriptor_tab>: Remove.
12 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
13 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
14 (print_subexp_f, dump_subexp_body_f, operator_check_f)
15 (f_language::exp_descriptor_tab, fortran_prepare_argument):
18 2021-03-08 Tom Tromey <tom@tromey.com>
20 * rust-lang.h (class rust_language) <expression_ops,
21 exp_descriptor_tab>: Remove.
22 * rust-lang.c (rust_evaluate_funcall): Remove.
23 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
25 (rust_evaluate_subexp): Remove.
26 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
27 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
28 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
30 2021-03-08 Tom Tromey <tom@tromey.com>
32 * ada-exp.y: Create operations.
33 (empty_stoken): Remove.
34 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
35 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
36 (components): New global.
37 (push_component, choice_component, pop_component, pop_components):
39 (associations): New global
40 (push_association, pop_association, pop_associations): New
43 (write_var_from_sym, write_int): Create operations.
44 (write_exp_op_with_string): Remove.
45 (write_object_renaming, write_selectors, write_ambiguous_var)
46 (write_var_or_type, write_name_assoc): Create operations.
47 * ada-lang.h (ada_index_type): Declare.
48 * ada-lang.c (ada_index_type): No longer static.
50 2021-03-08 Tom Tromey <tom@tromey.com>
52 * f-exp.y: Create operations.
53 (f_language::parser): Update.
55 2021-03-08 Tom Tromey <tom@tromey.com>
57 * m2-exp.y: Create operations.
58 (m2_language::parser): Update.
60 2021-03-08 Tom Tromey <tom@tromey.com>
62 * p-exp.y: Create operations.
63 (pascal_language::parser): Update.
65 2021-03-08 Tom Tromey <tom@tromey.com>
67 * d-exp.y: Create operations.
70 2021-03-08 Tom Tromey <tom@tromey.com>
72 * go-exp.y: Create operations.
73 (go_language::parser): Update.
75 2021-03-08 Tom Tromey <tom@tromey.com>
77 * objc-lang.c (end_msglist): Create operations.
78 * c-exp.y: Change parser to create operations.
79 (write_destructor_name): Remove.
82 2021-03-08 Tom Tromey <tom@tromey.com>
84 * rust-exp.y: Create operations.
85 (rust_parser::convert_params_to_expression): Change return type.
86 (binop_maker_ftype): New typedef.
87 (maker_map): New global.
88 (rust_parser::convert_ast_to_expression): Change return type.
89 (rust_language::parser): Update.
90 (_initialize_rust_exp): Initialize maker_map.
92 2021-03-08 Tom Tromey <tom@tromey.com>
94 * stap-probe.c (binop_maker_ftype): New typedef.
95 (stap_maker_map): New global.
96 (stap_make_binop): New function.
97 (stap_parse_register_operand): Return operation_up.
98 (stap_parse_single_operand, stap_parse_argument_conditionally)
99 (stap_parse_argument_1): Likewise.
100 (stap_parse_argument): Create operations.
101 (stap_probe::parse_arguments): Update.
102 (_initialize_stap_probe): Initialize stap_maker_map.
103 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
105 * i386-tdep.h (i386_stap_parse_special_token): Change return
107 * i386-tdep.c (i386_stap_parse_special_token_triplet)
108 (i386_stap_parse_special_token_three_arg_disp)
109 (i386_stap_parse_special_token): Change return type.
110 * gdbarch.sh (stap_parse_special_token): Change return type.
111 * gdbarch.c: Rebuild.
112 * gdbarch.h: Rebuild.
113 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
115 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
118 2021-03-08 Tom Tromey <tom@tromey.com>
120 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
121 * gdbarch.h: Rebuild.
122 * gdbarch.c: Rebuild.
123 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
124 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
126 (amd64_dtrace_parse_probe_argument): Update.
128 2021-03-08 Tom Tromey <tom@tromey.com>
130 * parser-defs.h (struct parser_state) <push, push_new,
131 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
133 <m_operations>: New member.
134 * parse.c (parser_state::push_c_string)
135 (parser_state::push_symbol, parser_state::push_dollar): New
138 2021-03-08 Tom Tromey <tom@tromey.com>
140 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
142 (struct parser_state) <mark_struct_expression>: New method.
143 * parse.c (parser_state::mark_struct_expression): Update assert.
144 (parser_state::mark_struct_expression): New method.
145 (parser_state::mark_completion_tag): Update assert.
146 (parse_expression_for_completion): Handle expout_last_op.
148 2021-03-08 Tom Tromey <tom@tromey.com>
150 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
152 * value.h (fetch_subexp_value): Add "op" parameter.
153 * value.c (init_if_undefined_command): Update.
154 * tracepoint.c (validate_actionline, encode_actions_1): Update.
155 * stap-probe.c (stap_probe::compile_to_ax): Update.
156 * printcmd.c (set_command): Update.
157 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
159 * parser-defs.h (struct expr_builder) <set_operation>: New
161 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
162 * expression.h (struct expression) <first_opcode>: Update.
164 * expprint.c (dump_raw_expression, dump_prefix_expression):
166 * expop.h (class var_value_operation) <get_symbol>: New method.
167 (class register_operation) <get_name>: New method.
168 (class equal_operation): No longer a typedef, now a subclass.
169 (class unop_memval_operation) <get_type>: New method.
170 (class assign_operation) <get_lhs>: New method.
171 (class unop_cast_operation) <get_type>: New method.
172 * eval.c (evaluate_expression, evaluate_type)
173 (evaluate_subexpression_type): Update.
174 (fetch_subexp_value): Add "op" parameter.
175 (parse_and_eval_type): Update.
176 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
177 * breakpoint.c (update_watchpoint, watchpoint_check)
178 (watchpoint_exp_is_const, watch_command_1): Update.
179 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
182 2021-03-08 Tom Tromey <tom@tromey.com>
184 * ada-lang.c (ada_value_binop): Do not use op_string.
186 2021-03-08 Tom Tromey <tom@tromey.com>
188 * expprint.c (dump_for_expression): New overload.
189 * expop.h (check_objfile, dump_for_expression): Declare new
191 * ada-lang.c (check_objfile): New overload.
192 (assign_component, ada_aggregate_component::uses_objfile)
193 (ada_aggregate_component::dump, ada_aggregate_component::assign)
194 (ada_aggregate_component::assign_aggregate)
195 (ada_positional_component::uses_objfile)
196 (ada_positional_component::dump, ada_positional_component::assign)
197 (ada_discrete_range_association::uses_objfile)
198 (ada_discrete_range_association::dump)
199 (ada_discrete_range_association::assign)
200 (ada_name_association::uses_objfile, ada_name_association::dump)
201 (ada_name_association::assign)
202 (ada_choices_component::uses_objfile, ada_choices_component::dump)
203 (ada_choices_component::assign)
204 (ada_others_component::uses_objfile, ada_others_component::dump)
205 (ada_others_component::assign, ada_assign_operation::evaluate):
207 * ada-exp.h (ada_string_operation) <get_name>: New method.
208 (class ada_assign_operation): New.
209 (class ada_component): New.
210 (ada_component_up): New typedef.
211 (class ada_aggregate_operation, class ada_aggregate_component)
212 (class ada_positional_component, class ada_others_component)
213 (class ada_association): New.
214 (ada_association_up): New typedef.
215 (class ada_choices_component)
216 (class ada_discrete_range_association)
217 (class ada_name_association): New.
219 2021-03-08 Tom Tromey <tom@tromey.com>
221 * ada-lang.c (ada_var_value_operation::resolve)
222 (ada_funcall_operation::resolve)
223 (ada_ternop_slice_operation::resolve): New methods.
224 * ada-exp.h (struct ada_resolvable): New.
225 (class ada_var_value_operation): Derive from ada_resolvable.
226 <get_block, resolve>: New methods.
227 (class ada_funcall_operation): Derive from ada_resolvable.
228 <resolve>: New method.
229 (class ada_ternop_slice_operation): Derive from ada_resolvable.
230 <resolve>: New method.
232 2021-03-08 Tom Tromey <tom@tromey.com>
234 * ada-lang.c (ada_funcall_operation::evaluate): New method.
235 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
237 (class ada_funcall_operation): New.
239 2021-03-08 Tom Tromey <tom@tromey.com>
241 * ada-lang.c (ada_structop_operation::evaluate): New method.
242 * ada-exp.h (class ada_structop_operation): New.
244 2021-03-08 Tom Tromey <tom@tromey.com>
246 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
247 * ada-exp.h (class ada_unop_ind_operation): New.
249 2021-03-08 Tom Tromey <tom@tromey.com>
251 * ada-lang.c (ada_binop_exp): No longer static.
252 * ada-exp.h (ada_binop_exp_operation): New typedef.
254 2021-03-08 Tom Tromey <tom@tromey.com>
256 * ada-lang.c (ada_val_atr): No longer static.
257 (ada_atr_val_operation::evaluate): New method.
258 * ada-exp.h (class ada_atr_val_operation): New.
260 2021-03-08 Tom Tromey <tom@tromey.com>
262 * ada-lang.c (ada_pos_atr): No longer static.
263 * ada-exp.h (ada_pos_operation): New typedef.
265 2021-03-08 Tom Tromey <tom@tromey.com>
267 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
269 (ada_evaluate_subexp): Use it.
271 2021-03-08 Tom Tromey <tom@tromey.com>
273 * ada-lang.c (ada_binop_minmax): No longer static.
274 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
277 2021-03-08 Tom Tromey <tom@tromey.com>
279 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
281 * ada-exp.h (class ada_var_msym_value_operation): New.
283 2021-03-08 Tom Tromey <tom@tromey.com>
285 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
286 (ada_var_value_operation::evaluate): New methods.
287 * ada-exp.h (class ada_var_value_operation): New.
289 2021-03-08 Tom Tromey <tom@tromey.com>
291 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
292 * ada-exp.h (class ada_unop_atr_operation): New.
294 2021-03-08 Tom Tromey <tom@tromey.com>
296 * ada-lang.c (ada_binop_in_bounds): No longer static.
297 * ada-exp.h (class ada_binop_in_bounds_operation): New.
299 2021-03-08 Tom Tromey <tom@tromey.com>
301 * ada-lang.c (ada_ternop_slice): No longer static.
302 * ada-exp.h (class ada_ternop_slice_operation): New.
304 2021-03-08 Tom Tromey <tom@tromey.com>
306 * ada-exp.h (ada_bitwise_operation): New template class.
307 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
308 (ada_bitwise_xor_operation): New typedefs.
310 2021-03-08 Tom Tromey <tom@tromey.com>
312 * ada-lang.c (ada_equal_binop): No longer static.
313 * ada-exp.h (class ada_binop_equal_operation): New.
315 2021-03-08 Tom Tromey <tom@tromey.com>
317 * ada-lang.c (ada_mult_binop): No longer static.
318 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
319 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
321 2021-03-08 Tom Tromey <tom@tromey.com>
323 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
324 * ada-exp.h (class ada_binop_addsub_operation): New.
326 2021-03-08 Tom Tromey <tom@tromey.com>
328 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
329 (ada_resolve_variable): Declare.
330 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
331 (ada_resolve_variable): New functions.
332 (resolve_subexp): Update.
334 2021-03-08 Tom Tromey <tom@tromey.com>
336 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
338 * c-exp.h (class opencl_ternop_cond_operation): New.
340 2021-03-08 Tom Tromey <tom@tromey.com>
342 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
344 * c-exp.h (class opencl_logical_binop_operation): New.
346 2021-03-08 Tom Tromey <tom@tromey.com>
348 * opencl-lang.c (opencl_structop_operation::evaluate): New
350 * c-exp.h (class opencl_structop_operation): New.
352 2021-03-08 Tom Tromey <tom@tromey.com>
354 * opencl-lang.c (opencl_logical_not): No longer static. Change
356 (evaluate_subexp_opencl): Update.
357 * c-exp.h (opencl_notequal_operation): New typedef.
359 2021-03-08 Tom Tromey <tom@tromey.com>
361 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
362 static. Change parameters.
363 (eval_opencl_assign): No longer static. Add "op" parameter.
364 (evaluate_subexp_opencl): Update.
365 * c-exp.h (opencl_binop_operation): New template class.
366 (opencl_assign_operation, opencl_equal_operation)
367 (opencl_notequal_operation, opencl_less_operation)
368 (opencl_gtr_operation, opencl_geq_operation)
369 (opencl_leq_operation): New typedefs.
371 2021-03-08 Tom Tromey <tom@tromey.com>
373 * opencl-lang.c (opencl_value_cast): No longer static.
374 * c-exp.h (opencl_cast_type_operation): New typedef.
376 2021-03-08 Tom Tromey <tom@tromey.com>
378 * f-exp.h (eval_op_f_allocated): Declare.
379 (fortran_allocated_operation): New typedef.
380 * f-lang.c (eval_op_f_allocated): No longer static.
382 2021-03-08 Tom Tromey <tom@tromey.com>
384 * f-lang.c (eval_op_f_associated): New functions.
385 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
388 2021-03-08 Tom Tromey <tom@tromey.com>
390 * f-lang.c (fortran_bound_1arg::evaluate)
391 (fortran_bound_2arg::evaluate): New methods.
392 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
395 2021-03-08 Tom Tromey <tom@tromey.com>
397 * expop.h (class unop_addr_operation) <get_expression>: New
399 * f-lang.c (fortran_undetermined::value_subarray)
400 (fortran_undetermined::evaluate): New methods.
401 (fortran_prepare_argument): New overload.
402 * f-exp.h (class fortran_range_operation)
403 (class fortran_undetermined): New classes.
405 2021-03-08 Tom Tromey <tom@tromey.com>
407 * rust-lang.c (rust_structop::evaluate_funcall): New method.
408 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
411 2021-03-08 Tom Tromey <tom@tromey.com>
413 * expression.h (class operation) <evaluate_funcall>: New methods.
414 * expop.h (class scope_operation) <evaluate_funcall>: New method.
415 (class var_value_operation) <evaluate_funcall>: New method.
416 (class structop_base_operation) <evaluate_funcall>: New method.
417 (class var_msym_value_operation) <evaluate_funcall>: New method.
418 (class structop_member_base): New class.
419 (class structop_member_operation): Derive from
420 structop_member_base.
421 (class structop_mptr_operation): Derive from
422 structop_member_base.
423 (class funcall_operation): New class.
424 * eval.c (operation::evaluate_funcall)
425 (var_value_operation::evaluate_funcall)
426 (scope_operation::evaluate_funcall)
427 (structop_member_base::evaluate_funcall)
428 (structop_base_operation::evaluate_funcall): New methods.
430 2021-03-08 Tom Tromey <tom@tromey.com>
432 * expop.h (class array_operation): New.
433 * eval.c (array_operation::evaluate_struct_tuple)
434 (array_operation::evaluate): New methods.
436 2021-03-08 Tom Tromey <tom@tromey.com>
438 * expop.h (class adl_func_operation): New.
439 * eval.c (adl_func_operation::evaluate): New method.
441 2021-03-08 Tom Tromey <tom@tromey.com>
443 * ada-lang.c (ada_unop_in_range): No longer static.
444 * ada-exp.h (class ada_unop_range_operation): New.
446 2021-03-08 Tom Tromey <tom@tromey.com>
448 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
450 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
451 (ada_atr_size_operation, ada_abs_operation): New typedefs.
453 2021-03-08 Tom Tromey <tom@tromey.com>
455 * expop.h (class logical_and_operation)
456 (class logical_or_operation): New.
457 * eval.c (logical_and_operation::evaluate)
458 (logical_or_operation::evaluate): New methods.
459 * ax-gdb.c (logical_and_operation::do_generate_ax)
460 (logical_or_operation::do_generate_ax): New methods.
462 2021-03-08 Tom Tromey <tom@tromey.com>
464 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
466 * m2-exp.h: New file.
468 2021-03-08 Tom Tromey <tom@tromey.com>
470 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
471 * rust-exp.h (class rust_aggregate_operation): New.
473 2021-03-08 Tom Tromey <tom@tromey.com>
475 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
477 * rust-exp.h (class rust_struct_anon): New.
478 (class rust_structop): New.
480 2021-03-08 Tom Tromey <tom@tromey.com>
482 * rust-lang.c (rust_range): No longer static.
483 * rust-exp.h (class rust_range_operation): New.
485 2021-03-08 Tom Tromey <tom@tromey.com>
487 * rust-lang.c (rust_subscript): No longer static.
488 * rust-exp.h (class rust_subscript_operation): New.
490 2021-03-08 Tom Tromey <tom@tromey.com>
492 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
494 (rust_evaluate_subexp): Update.
495 * rust-exp.h (class rust_unop_ind_operation): New.
497 2021-03-08 Tom Tromey <tom@tromey.com>
499 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
500 longer static. Add "opcode" parameter.
501 (rust_evaluate_subexp): Update.
502 * rust-exp.h: New file.
504 2021-03-08 Tom Tromey <tom@tromey.com>
506 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
507 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
508 (eval_op_f_kind): No longer static. Add "opcode" parameter.
509 (evaluate_subexp_f): Update.
512 2021-03-08 Tom Tromey <tom@tromey.com>
514 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
515 * ada-exp.h (class ada_ternop_range_operation): New.
517 2021-03-08 Tom Tromey <tom@tromey.com>
519 * ada-lang.c (ada_qual_operation::evaluate): New method.
520 * ada-exp.h (class ada_qual_operation): New.
522 2021-03-08 Tom Tromey <tom@tromey.com>
524 * ada-lang.c (ada_string_operation::evaluate): New method.
525 * ada-exp.h (class ada_string_operation): New.
527 2021-03-08 Tom Tromey <tom@tromey.com>
529 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
530 * ada-exp.h: New file.
532 2021-03-08 Tom Tromey <tom@tromey.com>
534 * expop.h (class multi_subscript_operation): New.
535 * eval.c (multi_subscript_operation::evaluate): New method.
537 2021-03-08 Tom Tromey <tom@tromey.com>
539 * eval.c (objc_msgcall_operation::evaluate): New method.
540 * c-exp.h (class objc_msgcall_operation): New.
542 2021-03-08 Tom Tromey <tom@tromey.com>
544 * expop.h (class var_value_operation): New.
545 * eval.c (var_value_operation::evaluate)
546 (var_value_operation::evaluate_for_address)
547 (var_value_operation::evaluate_with_coercion)
548 (var_value_operation::evaluate_for_sizeof)
549 (var_value_operation::evaluate_for_cast): New methods.
550 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
552 2021-03-08 Tom Tromey <tom@tromey.com>
554 * expop.h (cxx_cast_ftype): New typedef.
555 (cxx_cast_operation): New template.
556 (dynamic_cast_operation, reinterpret_cast_operation): New
559 2021-03-08 Tom Tromey <tom@tromey.com>
561 * expop.h (class unop_cast_type_operation): New.
562 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
565 2021-03-08 Tom Tromey <tom@tromey.com>
567 * expop.h (class unop_cast_operation): New.
568 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
570 2021-03-08 Tom Tromey <tom@tromey.com>
572 * expop.h (class assign_modify_operation): New.
573 * eval.c (eval_binop_assign_modify): No longer static.
574 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
576 2021-03-08 Tom Tromey <tom@tromey.com>
578 * expop.h (class assign_operation): New.
579 * ax-gdb.c (assign_operation::do_generate_ax): New method.
581 2021-03-08 Tom Tromey <tom@tromey.com>
583 * expop.h (class type_instance_operation): New.
584 * eval.c (type_instance_operation::evaluate): New method.
586 2021-03-08 Tom Tromey <tom@tromey.com>
588 * expop.h (class op_this_operation): New.
589 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
591 2021-03-08 Tom Tromey <tom@tromey.com>
593 * expop.h (class unop_memval_operation)
594 (class unop_memval_type_operation): New.
595 * eval.c (eval_op_memval): No longer static.
596 (unop_memval_operation::evaluate_for_address)
597 (unop_memval_type_operation::evaluate_for_address)
598 (unop_memval_operation::evaluate_for_sizeof)
599 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
600 * ax-gdb.c (unop_memval_operation::do_generate_ax)
601 (unop_memval_type_operation::do_generate_ax): New methods.
603 2021-03-08 Tom Tromey <tom@tromey.com>
605 * expop.h (class unop_alignof_operation): New.
606 * eval.c (eval_op_alignof): No longer static.
608 2021-03-08 Tom Tromey <tom@tromey.com>
610 * expop.h (class unop_sizeof_operation): New.
611 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
613 2021-03-08 Tom Tromey <tom@tromey.com>
615 * expop.h (class unop_addr_operation): New.
616 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
618 2021-03-08 Tom Tromey <tom@tromey.com>
620 * expop.h (class typeid_operation): New.
622 2021-03-08 Tom Tromey <tom@tromey.com>
624 * expop.h (class decltype_operation): New.
626 2021-03-08 Tom Tromey <tom@tromey.com>
628 * expop.h (class typeof_operation): New.
630 2021-03-08 Tom Tromey <tom@tromey.com>
632 * expop.h (class type_operation): New.
633 * eval.c (eval_op_type): No longer static.
635 2021-03-08 Tom Tromey <tom@tromey.com>
637 * expop.h (class unop_ind_base_operation)
638 (class unop_ind_operation): New.
639 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
640 (unop_ind_base_operation::evaluate_for_address)
641 (unop_ind_base_operation::evaluate_for_sizeof): New method.
642 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
644 2021-03-08 Tom Tromey <tom@tromey.com>
646 * expop.h (unop_incr_operation): New template.
647 (preinc_operation, predec_operation, postinc_operation)
648 (postdec_operation): New typedefs.
649 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
650 (eval_op_postdec): No longer static.
652 2021-03-08 Tom Tromey <tom@tromey.com>
654 * expop.h (unary_ftype): New typedef.
655 (unop_operation, usual_ax_binop_operation): New templates.
656 (unary_plus_operation, unary_neg_operation)
657 (unary_complement_operation, unary_logical_not_operation): New
659 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
660 (eval_op_lognot): No longer static.
661 * ax-gdb.c (gen_expr_unop): New function.
663 2021-03-08 Tom Tromey <tom@tromey.com>
665 * ax-gdb.c (comma_operation::do_generate_ax): New method.
667 2021-03-08 Tom Tromey <tom@tromey.com>
669 * expop.h (class repeat_operation): New.
670 * eval.c (eval_op_repeat): No longer static. Remove "op"
672 (evaluate_subexp_standard): Update.
673 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
675 2021-03-08 Tom Tromey <tom@tromey.com>
677 * expop.h (class comparison_operation): New.
678 (equal_operation, notequal_operation, less_operation)
679 (gtr_operation, geq_operation, leq_operation): New typedefs.
680 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
681 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
683 2021-03-08 Tom Tromey <tom@tromey.com>
685 * expop.h (class subscript_operation): New.
686 * eval.c (eval_op_subscript): No longer static.
688 2021-03-08 Tom Tromey <tom@tromey.com>
690 * expop.h (class binop_operation, class usual_ax_binop_operation):
692 (exp_operation, intdiv_operation, mod_operation, mul_operation)
693 (div_operation, rem_operation, lsh_operation, rsh_operation)
694 (bitwise_and_operation, bitwise_ior_operation)
695 (bitwise_xor_operation): New typedefs.
696 * eval.c (eval_op_binary): No longer static.
698 2021-03-08 Tom Tromey <tom@tromey.com>
700 * expop.h (class sub_operation): New.
701 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
702 (evaluate_subexp_standard): Update.
704 2021-03-08 Tom Tromey <tom@tromey.com>
706 * expop.h (class add_operation): New.
707 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
708 (evaluate_subexp_standard): Update.
710 2021-03-08 Tom Tromey <tom@tromey.com>
712 * expop.h (class concat_operation): New.
713 * eval.c (eval_op_concat): No longer static. Remove "op"
715 (evaluate_subexp_standard): Update.
717 2021-03-08 Tom Tromey <tom@tromey.com>
719 * expop.h (class structop_member_operation)
720 (class structop_mptr_operation): New.
721 * eval.c (eval_op_member): No longer static.
723 2021-03-08 Tom Tromey <tom@tromey.com>
725 * expop.h (class structop_ptr_operation): New.
726 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
729 2021-03-08 Tom Tromey <tom@tromey.com>
731 * expop.h (class structop_base_operation)
732 (class structop_operation): New.
733 * eval.c (eval_op_structop_struct): No longer static.
735 2021-03-08 Tom Tromey <tom@tromey.com>
737 * expop.h (class complex_operation): New.
739 2021-03-08 Tom Tromey <tom@tromey.com>
741 * eval.c (eval_op_objc_selector): No longer static.
742 * c-exp.h (class objc_selector_operation): New.
744 2021-03-08 Tom Tromey <tom@tromey.com>
746 * eval.c: Include c-exp.h.
747 * c-exp.h (class objc_nsstring_operation): New.
749 2021-03-08 Tom Tromey <tom@tromey.com>
751 * c-lang.c (c_string_operation::evaluate): New method.
754 2021-03-08 Tom Tromey <tom@tromey.com>
756 * expop.h (class ternop_cond_operation): New.
757 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
759 2021-03-08 Tom Tromey <tom@tromey.com>
761 * expop.h (class ternop_slice_operation): New.
762 * eval.c (eval_op_ternop): No longer static.
764 2021-03-08 Tom Tromey <tom@tromey.com>
766 * expop.h (class string_operation): New.
767 * eval.c (eval_op_string): No longer static.
769 2021-03-08 Tom Tromey <tom@tromey.com>
771 * expop.h (class internalvar_operation): New.
772 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
774 2021-03-08 Tom Tromey <tom@tromey.com>
776 * expop.h (class bool_operation): New.
778 2021-03-08 Tom Tromey <tom@tromey.com>
780 * expop.h (class register_operation): New.
781 * eval.c (eval_op_register): No longer static.
782 * ax-gdb.c (register_operation::do_generate_ax): New method.
784 2021-03-08 Tom Tromey <tom@tromey.com>
786 * expop.h (class last_operation): New.
788 2021-03-08 Tom Tromey <tom@tromey.com>
790 * expop.h (class func_static_var_operation): New.
791 * eval.c (eval_op_func_static_var): No longer static.
793 2021-03-08 Tom Tromey <tom@tromey.com>
795 * expop.h (class var_entry_value_operation): New.
796 * eval.c (eval_op_var_entry_value): No longer static.
798 2021-03-08 Tom Tromey <tom@tromey.com>
800 * expression.h (class operation) <set_outermost>: New method.
801 * expop.h (class var_msym_value_operation): New.
802 * eval.c (eval_op_var_msym_value): No longer static.
803 (var_msym_value_operation::evaluate_for_address)
804 (var_msym_value_operation::evaluate_for_sizeof)
805 (var_msym_value_operation::evaluate_for_cast): New methods.
806 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
809 2021-03-08 Tom Tromey <tom@tromey.com>
811 * expop.h (class long_const_operation): New.
812 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
814 2021-03-08 Tom Tromey <tom@tromey.com>
816 * expop.h (class scope_operation): New.
817 * eval.c (eval_op_scope): No longer static.
818 (scope_operation::evaluate_for_address): New method.
819 * ax-gdb.c (scope_operation::do_generate_ax): New method.
821 2021-03-08 Tom Tromey <tom@tromey.com>
823 * expprint.c (float_const_operation::dump): New method.
824 * expop.h (float_data): New typedef.
825 (class float_const_operation): New.
827 2021-03-08 Tom Tromey <tom@tromey.com>
829 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
830 * ax-gdb.c (gen_expr_binop): New function.
831 (gen_expr_structop): Likewise.
833 2021-03-08 Tom Tromey <tom@tromey.com>
835 * expprint.c (expr::dump_for_expression): New functions.
836 * expop.h (dump_for_expression): New overloads.
837 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
840 2021-03-08 Tom Tromey <tom@tromey.com>
842 * expression.h (expr::operation): New class.
843 (expr::make_operation): New function.
844 (expr::operation_up): New typedef.
846 * eval.c (operation::evaluate_for_cast)
847 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
849 * ax-gdb.c (operation::generate_ax): New method.
851 2021-03-08 Tom Tromey <tom@tromey.com>
853 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
854 (gen_expr_binop_rest): New overload.
856 2021-03-08 Tom Tromey <tom@tromey.com>
858 * eval.c (eval_multi_subscript): New function.
859 (evaluate_subexp_standard): Use it.
861 2021-03-08 Tom Tromey <tom@tromey.com>
863 * ada-lang.c (ada_binop_exp): New function.
864 (ada_evaluate_subexp): Use it.
866 2021-03-08 Tom Tromey <tom@tromey.com>
868 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
870 (ada_evaluate_subexp): Use it.
872 2021-03-08 Tom Tromey <tom@tromey.com>
874 * ada-lang.c (ada_binop_minmax): New function.
875 (ada_evaluate_subexp): Use it.
877 2021-03-08 Tom Tromey <tom@tromey.com>
879 * ada-lang.c (ada_unop_atr): New function.
880 (ada_evaluate_subexp): Use it.
882 2021-03-08 Tom Tromey <tom@tromey.com>
884 * ada-lang.c (ada_binop_in_bounds): New function.
885 (ada_evaluate_subexp): Use it.
887 2021-03-08 Tom Tromey <tom@tromey.com>
889 * ada-lang.c (ada_ternop_slice): New function.
890 (ada_evaluate_subexp): Use it.
892 2021-03-08 Tom Tromey <tom@tromey.com>
894 * ada-lang.c (ada_equal_binop): New function.
895 (ada_evaluate_subexp): Use it.
897 2021-03-08 Tom Tromey <tom@tromey.com>
899 * ada-lang.c (ada_mult_binop): New function.
900 (ada_evaluate_subexp): Use it.
902 2021-03-08 Tom Tromey <tom@tromey.com>
904 * ada-lang.c (ada_abs): New function.
905 (ada_evaluate_subexp): Use it.
907 2021-03-08 Tom Tromey <tom@tromey.com>
909 * ada-lang.c (ada_atr_size): New function.
910 (ada_evaluate_subexp): Use it.
912 2021-03-08 Tom Tromey <tom@tromey.com>
914 * ada-lang.c (ada_atr_tag): New function.
915 (ada_evaluate_subexp): Use it.
917 2021-03-08 Tom Tromey <tom@tromey.com>
919 * ada-lang.c (ada_unop_in_range): New function.
920 (ada_evaluate_subexp): Use it.
922 2021-03-08 Tom Tromey <tom@tromey.com>
924 * ada-lang.c (ada_unop_neg): New function.
925 (ada_evaluate_subexp): Use it.
927 2021-03-08 Tom Tromey <tom@tromey.com>
929 * ada-lang.c (eval_ternop_in_range): New function.
930 (ada_evaluate_subexp): Use it.
932 2021-03-08 Tom Tromey <tom@tromey.com>
934 * opencl-lang.c (eval_opencl_assign): New function.
935 (evaluate_subexp_opencl): Use it.
937 2021-03-08 Tom Tromey <tom@tromey.com>
939 * eval.c (eval_op_objc_msgcall): New function.
940 (evaluate_subexp_standard): Use it.
942 2021-03-08 Tom Tromey <tom@tromey.com>
944 * eval.c (eval_binop_assign_modify): New function.
945 (evaluate_subexp_standard): Use it.
947 2021-03-08 Tom Tromey <tom@tromey.com>
949 * m2-lang.c (eval_op_m2_subscript): New function.
950 (evaluate_subexp_modula2): Use it.
952 2021-03-08 Tom Tromey <tom@tromey.com>
954 * m2-lang.c (eval_op_m2_high): New function.
955 (evaluate_subexp_modula2): Use it.
957 2021-03-08 Tom Tromey <tom@tromey.com>
959 * eval.c (evaluate_subexp_for_address_base): New function.
960 (evaluate_subexp_for_address): Use it.
961 (evaluate_subexp_for_sizeof_base): New function.
962 (evaluate_subexp_for_sizeof): Use it.
964 2021-03-08 Tom Tromey <tom@tromey.com>
966 * rust-lang.c (eval_op_rust_structop): New function.
967 (rust_evaluate_subexp): Use it.
969 2021-03-08 Tom Tromey <tom@tromey.com>
971 * rust-lang.c (eval_op_rust_struct_anon): New function.
972 (rust_evaluate_subexp): Use it.
974 2021-03-08 Tom Tromey <tom@tromey.com>
976 * rust-lang.c (eval_op_rust_array): New function.
977 (rust_evaluate_subexp): Use it.
979 2021-03-08 Tom Tromey <tom@tromey.com>
981 * rust-lang.c (eval_op_rust_complement): New function.
982 (rust_evaluate_subexp): Use it.
984 2021-03-08 Tom Tromey <tom@tromey.com>
986 * rust-lang.c (eval_op_rust_ind): New function.
987 (rust_evaluate_subexp): Use it.
989 2021-03-08 Tom Tromey <tom@tromey.com>
991 * rust-lang.c (rust_subscript): Change parameters.
992 (rust_evaluate_subexp): Update.
994 2021-03-08 Tom Tromey <tom@tromey.com>
996 * rust-lang.c (rust_range): Change parameters.
997 (rust_evaluate_subexp): Update.
999 2021-03-08 Tom Tromey <tom@tromey.com>
1001 * f-lang.c (eval_op_f_allocated): New function.
1002 (evaluate_subexp_f): Use it.
1004 2021-03-08 Tom Tromey <tom@tromey.com>
1006 * f-lang.c (fortran_require_array): New function.
1007 (evaluate_subexp_f): Use it.
1009 2021-03-08 Tom Tromey <tom@tromey.com>
1011 * f-lang.c (eval_op_f_kind): New function.
1012 (evaluate_subexp_f): Use it.
1014 2021-03-08 Tom Tromey <tom@tromey.com>
1016 * f-lang.c (eval_op_f_cmplx): New function.
1017 (evaluate_subexp_f): Use it.
1019 2021-03-08 Tom Tromey <tom@tromey.com>
1021 * f-lang.c (eval_op_f_modulo): New function.
1022 (evaluate_subexp_f): Use it.
1024 2021-03-08 Tom Tromey <tom@tromey.com>
1026 * f-lang.c (eval_op_f_floor): New function.
1027 (evaluate_subexp_f): Use it.
1029 2021-03-08 Tom Tromey <tom@tromey.com>
1031 * f-lang.c (eval_op_f_ceil): New function.
1032 (evaluate_subexp_f): Use it.
1034 2021-03-08 Tom Tromey <tom@tromey.com>
1036 * f-lang.c (eval_op_f_mod): New function.
1037 (evaluate_subexp_f): Use it.
1039 2021-03-08 Tom Tromey <tom@tromey.com>
1041 * f-lang.c (eval_op_f_abs): New function.
1042 (evaluate_subexp_f): Use it.
1044 2021-03-08 Tom Tromey <tom@tromey.com>
1046 * eval.c (eval_op_type): New function.
1047 (evaluate_subexp_standard): Use it.
1049 2021-03-08 Tom Tromey <tom@tromey.com>
1051 * eval.c (eval_op_postdec): New function.
1052 (evaluate_subexp_standard): Use it.
1054 2021-03-08 Tom Tromey <tom@tromey.com>
1056 * eval.c (eval_op_postinc): New function.
1057 (evaluate_subexp_standard): Use it.
1059 2021-03-08 Tom Tromey <tom@tromey.com>
1061 * eval.c (eval_op_predec): New file.
1062 (evaluate_subexp_standard): Use it.
1064 2021-03-08 Tom Tromey <tom@tromey.com>
1066 * eval.c (eval_op_preinc): New function.
1067 (evaluate_subexp_standard): Use it.
1069 2021-03-08 Tom Tromey <tom@tromey.com>
1071 * eval.c (eval_op_memval): New function.
1072 (evaluate_subexp_standard): Use it.
1074 2021-03-08 Tom Tromey <tom@tromey.com>
1076 * eval.c (eval_op_alignof): New function.
1077 (evaluate_subexp_standard): Use it.
1079 2021-03-08 Tom Tromey <tom@tromey.com>
1081 * eval.c (eval_op_ind): New function.
1082 (evaluate_subexp_standard): Use it.
1084 2021-03-08 Tom Tromey <tom@tromey.com>
1086 * eval.c (eval_op_lognot): New function.
1087 (evaluate_subexp_standard): Use it.
1089 2021-03-08 Tom Tromey <tom@tromey.com>
1091 * eval.c (eval_op_complement): New function.
1092 (evaluate_subexp_standard): Use it.
1094 2021-03-08 Tom Tromey <tom@tromey.com>
1096 * eval.c (eval_op_neg): New function.
1097 (evaluate_subexp_standard): Use it.
1099 2021-03-08 Tom Tromey <tom@tromey.com>
1101 * eval.c (eval_op_plus): New function.
1102 (evaluate_subexp_standard): Use it.
1104 2021-03-08 Tom Tromey <tom@tromey.com>
1106 * eval.c (eval_op_repeat): New function.
1107 (evaluate_subexp_standard): Use it.
1109 2021-03-08 Tom Tromey <tom@tromey.com>
1111 * eval.c (eval_op_leq): New function.
1112 (evaluate_subexp_standard): Use it.
1114 2021-03-08 Tom Tromey <tom@tromey.com>
1116 * eval.c (eval_op_geq): New function.
1117 (evaluate_subexp_standard): Use it.
1119 2021-03-08 Tom Tromey <tom@tromey.com>
1121 * eval.c (eval_op_gtr): New function.
1122 (evaluate_subexp_standard): Use it.
1124 2021-03-08 Tom Tromey <tom@tromey.com>
1126 * eval.c (eval_op_less): New function.
1127 (evaluate_subexp_standard): Use it.
1129 2021-03-08 Tom Tromey <tom@tromey.com>
1131 * eval.c (eval_op_notequal): New function.
1132 (evaluate_subexp_standard): Use it.
1134 2021-03-08 Tom Tromey <tom@tromey.com>
1136 * eval.c (eval_op_equal): New function.
1137 (evaluate_subexp_standard): Use it.
1139 2021-03-08 Tom Tromey <tom@tromey.com>
1141 * eval.c (eval_op_subscript): New function.
1142 (evaluate_subexp_standard): Use it.
1144 2021-03-08 Tom Tromey <tom@tromey.com>
1146 * eval.c (eval_op_binary): New function.
1147 (evaluate_subexp_standard): Use it.
1149 2021-03-08 Tom Tromey <tom@tromey.com>
1151 * eval.c (eval_op_sub): New function.
1152 (evaluate_subexp_standard): Use it.
1154 2021-03-08 Tom Tromey <tom@tromey.com>
1156 * eval.c (eval_op_add): New function.
1157 (evaluate_subexp_standard): Use it.
1159 2021-03-08 Tom Tromey <tom@tromey.com>
1161 * eval.c (eval_op_member): New function.
1162 (evaluate_subexp_standard): Use it.
1164 2021-03-08 Tom Tromey <tom@tromey.com>
1166 * eval.c (eval_op_structop_ptr): New function.
1167 (evaluate_subexp_standard): Use it.
1169 2021-03-08 Tom Tromey <tom@tromey.com>
1171 * eval.c (eval_op_structop_struct): New function.
1172 (evaluate_subexp_standard): Use it.
1174 2021-03-08 Tom Tromey <tom@tromey.com>
1176 * eval.c (eval_op_ternop): New function.
1177 (evaluate_subexp_standard): Use it.
1179 2021-03-08 Tom Tromey <tom@tromey.com>
1181 * eval.c (eval_op_concat): New function.
1182 (evaluate_subexp_standard): Use it.
1184 2021-03-08 Tom Tromey <tom@tromey.com>
1186 * eval.c (eval_op_objc_selector): New function.
1187 (evaluate_subexp_standard): Use it.
1189 2021-03-08 Tom Tromey <tom@tromey.com>
1191 * eval.c (eval_op_string): New function.
1192 (evaluate_subexp_standard): Use it.
1194 2021-03-08 Tom Tromey <tom@tromey.com>
1196 * eval.c (eval_op_register): New function.
1197 (evaluate_subexp_standard): Use it.
1199 2021-03-08 Tom Tromey <tom@tromey.com>
1201 * eval.c (eval_op_func_static_var): New function.
1202 (evaluate_subexp_standard): Use it.
1204 2021-03-08 Tom Tromey <tom@tromey.com>
1206 * eval.c (eval_op_var_msym_value): New function.
1207 (evaluate_subexp_standard): Use it.
1209 2021-03-08 Tom Tromey <tom@tromey.com>
1211 * eval.c (eval_op_var_entry_value): New function.
1212 (evaluate_subexp_standard): Use it.
1214 2021-03-08 Tom Tromey <tom@tromey.com>
1216 * eval.c (eval_op_scope): New function.
1217 (evaluate_subexp_standard): Use it.
1219 2021-03-06 Chernov Sergey <klen_s@mail.ru>
1222 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1224 2021-03-06 Tom Tromey <tom@tromey.com>
1226 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1227 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1228 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1229 (locate_dwz_sections, dwz_search_other_debugdirs)
1230 (dwarf2_get_dwz_file): Move to dwz.c.
1231 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1233 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1234 (dwarf2_get_dwz_file): Move from read.c.
1236 2021-03-06 Tom Tromey <tom@tromey.com>
1238 * debuginfod-support.h: Include scoped_fd.h.
1240 2021-03-06 Tom Tromey <tom@tromey.com>
1242 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1243 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1244 (get_abbrev_section_for_cu, read_attribute_value)
1245 (get_debug_line_section): Update.
1246 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1248 2021-03-06 Tom Tromey <tom@tromey.com>
1250 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1252 * dwarf2/read.c (section_is_p): Remove.
1253 (dwarf2_per_bfd::locate_sections)
1254 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1255 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1256 (dwarf2_locate_common_dwp_sections)
1257 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1260 2021-03-06 Tom Tromey <tom@tromey.com>
1262 * xcoffread.c: Include sect-names.h.
1263 * symfile.h (struct dwarf2_section_names, struct
1264 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1265 * dwarf2/sect-names.h: New file, from symfile.h.
1266 * dwarf2/read.c: Include sect-names.h.
1268 2021-03-06 Tom Tromey <tom@tromey.com>
1270 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1271 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1272 (abbrev_table::read): Update.
1273 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1274 (struct abbrev_info): Reformat.
1275 <attrs>: Now an array.
1276 (struct abbrev_table) <alloc_abbrev>: Remove.
1278 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1280 * ctfread.c (ctf_psymtab_add_enums): New function.
1281 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1283 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1285 * ctfread.c (read_func_kind_type): Set up function arguments.
1287 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1288 Andrew Burgess <andrew.burgess@embecosm.com>
1290 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1292 (riscv_csrset): New static global.
1293 (riscv_update_csrmap): New function.
1294 (riscv_iterate_over_regset_sections): Process CSRs.
1296 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1298 * riscv-tdep.c (riscv_feature_name_csr): Define.
1299 (riscv_feature_name_cpu): Define.
1300 (riscv_feature_name_fpu): Define.
1301 (riscv_feature_name_virtual): Define.
1302 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1303 (riscv_freg_feature): Use riscv_feature_name_fpu.
1304 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1305 (riscv_csr_feature): Use riscv_feature_name_csr.
1306 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1308 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1309 Craig Blackmore <craig.blackmore@embecosm.com>
1311 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1312 (ALLDEPFILES): Add riscv-none-tdep.c.
1313 * configure: Regenerate.
1314 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1316 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1317 * elf-none-tdep.c: New file.
1318 * elf-none-tdep.h: New file.
1319 * riscv-none-tdep.c: New file.
1321 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1322 Andrew Burgess <andrew.burgess@embecosm.com>
1324 * corelow.c: Add 'xml-tdesc.h' include.
1325 (core_target::read_description): Load the target description from
1326 the core file when possible.
1327 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1329 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1330 (gcore_elf_make_tdesc_note): New function.
1331 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1332 * linux-tdep.c (linux_make_corefile_notes): Add target description
1335 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1337 * Makefile.in (SFILES): Add gcore-elf.c.
1338 (HFILES_NO_SRCDIR): Add gcore-elf.h
1339 * configure: Regenerate.
1340 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1342 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1343 (struct fbsd_collect_regset_section_cb_data): Delete.
1344 (fbsd_collect_regset_section_cb): Delete.
1345 (fbsd_collect_thread_registers): Delete.
1346 (struct fbsd_corefile_thread_data): Delete.
1347 (fbsd_corefile_thread): Delete.
1348 (fbsd_make_corefile_notes): Call
1349 gcore_elf_build_thread_register_notes instead of the now deleted
1351 * gcore-elf.c: New file, the content was moved here from
1352 linux-tdep.c, functions were renamed and given minor cleanup.
1353 * gcore-elf.h: New file.
1354 * gcore.c (gcore_find_signalled_thread): Moved here from
1355 linux-tdep.c and given a new name. Minor cleanups.
1356 * gcore.h (gcore_find_signalled_thread): Declare.
1357 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1358 (struct linux_collect_regset_section_cb_data): Delete.
1359 (linux_collect_regset_section_cb): Delete.
1360 (linux_collect_thread_registers): Delete.
1361 (linux_corefile_thread): Call
1362 gcore_elf_build_thread_register_notes.
1363 (find_signalled_thread): Delete.
1364 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1366 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1369 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1370 process_stratum_target parameter,
1371 sparc_store_inferior_registers): update callers.
1372 * sparc-nat.c (sparc_fetch_inferior_registers,
1373 sparc_store_inferior_registers): Add process_stratum_target
1374 parameter. Switch current thread before calling
1375 sparc_supply_gregset / sparc_collect_rwindow.
1376 (sparc_store_inferior_registers): Likewise.
1377 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1378 (sparc32obsd_collect_uthread): Likewise.
1379 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1381 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1382 sparc64obsd_supply_uthread): Add assertion.
1384 2021-03-04 Tom Tromey <tromey@adacore.com>
1386 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1387 (aux_add_nonlocal_symbols): Update.
1388 (ada_add_block_symbols): Change "found_sym" to bool.
1390 2021-03-03 Tom Tromey <tromey@adacore.com>
1392 * ada-lang.c (ada_resolve_function): Update comment.
1393 (is_nonfunction, add_symbols_from_enclosing_procs)
1394 (remove_extra_symbols): Likewise.
1395 (struct match_data): Add constructor, initializers.
1396 (add_nonlocal_symbols): Remove memset.
1397 (aux_add_nonlocal_symbols): Update comment.
1398 (ada_add_block_renamings, add_nonlocal_symbols)
1399 (ada_add_all_symbols): Likewise.
1400 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1402 2021-03-02 Tom Tromey <tromey@adacore.com>
1404 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1405 (cast_to_gnat_encoded_fixed_point_type): Remove.
1406 (ada_value_cast, ada_evaluate_subexp): Update.
1407 (gnat_encoded_fixed_point_type_info)
1408 (ada_is_gnat_encoded_fixed_point_type)
1409 (gnat_encoded_fixed_point_delta)
1410 (gnat_encoded_fixed_point_scaling_factor): Remove.
1411 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1412 (gnat_encoded_fixed_point_delta)
1413 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1414 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1415 (ada_print_type): Update.
1416 * ada-valprint.c (ada_value_print_num): Update.
1417 * dwarf2/read.c (ada_get_gnat_encoded_number)
1418 (ada_get_gnat_encoded_ratio): New functions.
1419 (finish_fixed_point_type): Use them. Add parameters.
1420 (GNAT_FIXED_POINT_SUFFIX): New define.
1421 (gnat_encoded_fixed_point_type_info): New function.
1422 (read_base_type): Handle gnat encodings.
1424 2021-03-02 Tom Tromey <tromey@adacore.com>
1426 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1427 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1429 (GROW_VECT): Remove.
1430 (grow_vect): Remove.
1432 2021-03-02 Tom Tromey <tromey@adacore.com>
1434 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1435 * ada-lang.c (resolve_subexp): Update.
1436 (ada_resolve_function): Accept a vector.
1437 (is_nonfunction, add_defn_to_vec)
1438 (add_symbols_from_enclosing_procs): Likewise.
1439 (num_defns_collected, defns_collected): Remove.
1440 (remove_extra_symbols): Return a vector.
1441 (remove_irrelevant_renamings): Return void.
1442 (ada_add_local_symbols): Accept a vector.
1443 (struct match_data) <obstackp>: Remove.
1444 <resultp>: New member.
1445 (aux_add_nonlocal_symbols): Update.
1446 (ada_add_block_renamings, add_nonlocal_symbols)
1447 (ada_add_all_symbols): Accept a vector.
1448 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1450 (ada_lookup_symbol): Update.
1451 (ada_add_block_symbols): Accept a vector.
1452 (get_var_value, iterate_over_symbols): Update.
1453 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1456 2021-03-02 Tom Tromey <tromey@adacore.com>
1458 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1460 2021-03-02 Tom Tromey <tromey@adacore.com>
1462 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1465 (ada_pspace_data): Remove destructor.
1466 <sym_cache>: Now a unique_ptr.
1467 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1468 (ada_get_symbol_cache): Use 'new'.
1469 (ada_clear_symbol_cache): Rewrite.
1471 2021-03-02 Tom Tromey <tromey@adacore.com>
1473 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1476 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
1479 * source.c (add_path): Skip empty dirnames.
1481 2021-02-25 Kevin Buettner <kevinb@redhat.com>
1483 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1484 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1486 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1489 * target.c (target_mourn_inferior): Only compare pids in
1490 target_mourn_inferior.
1492 2021-02-25 Jan Matyas <jmatyas@codasip.com>
1495 * remote.c (remote_target::start_remote): Ensure the single
1496 thread, automatically added for remote targets without the
1497 concept of threading, is initially in set to the "resumed"
1499 * remote.c (remote_target::add_current_inferior_and_thread):
1500 Add return value - return the main thread.
1502 2021-02-25 Jan Vrany <jan.vrany@labware.com>
1504 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1505 (mi_tsv_created): Likewise.
1506 (mi_tsv_deleted): Likewise.
1508 2021-02-25 Tom de Vries <tdevries@suse.de>
1511 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1512 section_kind for &dwo_file->sections.info.
1514 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1517 * f-lang.c (fortran_argument_convert): Delete declaration.
1518 (fortran_prepare_argument): New function.
1519 (evaluate_subexp_f): Move logic to new function
1520 fortran_prepare_argument.
1522 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1524 * f-exp.y (f77_keywords): Add 'associated'.
1525 * f-lang.c (fortran_associated): New function.
1526 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1527 (operator_length_f): Likewise.
1528 (print_unop_or_binop_subexp_f): New function.
1529 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1530 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1531 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1532 (operator_check_f): Likewise.
1533 * std-operator.def: Add FORTRAN_ASSOCIATED.
1535 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1537 * f-exp.y (fortran_operators): Add ".xor.".
1539 2021-02-24 Tom de Vries <tdevries@suse.de>
1542 * dwarf2/attribute.c (attribute::form_is_signed): New function
1544 * dwarf2/attribute.h (attribute::as_signed): ... here.
1545 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1546 (attribute::form_is_signed): Declare.
1547 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1548 for DW_AT_decl_file.
1550 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1552 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1553 order for <sys/ptrace.h> and <asm/ptrace.h>.
1555 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1557 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1560 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1562 * exec.c (set_section_command): Move variable declarations into
1563 the function body, and use std::string instead of a fixed size
1566 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1568 * exec.c (exec_target::get_section_table): Delete member function.
1569 (section_table_read_available_memory): Use current_top_target, not
1570 just the exec_ops target.
1571 * target-delegates.c: Regenerate.
1572 * target.c (default_get_section_table): New function.
1573 * target.h (target_ops::get_section_table): Change default
1574 behaviour to call default_get_section_table.
1575 (default_get_section_table): Declare.
1577 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1579 * exec.c (exec_target::close): Call new clear_target_sections
1581 (program_space::add_target_sections): Update name of member
1583 (program_space::add_target_sections): Update name of member
1585 (program_space::remove_target_sections): Likewise.
1586 (exec_one_fork): Use new target_sections member function.
1587 (exec_target::get_section_table): Likewise.
1588 (exec_target::files_info): Likewise.
1589 (set_section_command): Likewise.
1590 (exec_set_section_address): Likewise.
1591 (exec_target::has_memory): Use new target_sections member
1593 * progspace.h (program_space::clear_target_sections): New member
1595 (program_space::target_sections): Rename member variable to
1596 m_target_sections, replace with a new member function.
1597 (program_space::m_target_sections): New member variable.
1598 * solib-dsbt.c (scan_dyntag): Use new member function.
1599 * solib-svr4.c (scan_dyntag): Likewise.
1601 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1603 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1605 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1606 (section_table_read_available_memory): Make local const.
1607 (exec_target::xfer_partial): Make local const.
1608 (print_section_info): Make parameter const.
1609 * gdb/exec.h (print_section_info): Likewise.
1610 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1612 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1614 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1616 * gdb/s390-tdep.c (s390_load): Likewise.
1617 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1618 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1619 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1621 (target_debug_print_const_target_section_table_p): ...this.
1622 * gdb/target-delegates.c: Regenerate.
1623 * gdb/target.c (target_get_section_table): Make return type const.
1624 (target_section_by_addr): Likewise. Also make some locals const.
1625 (memory_xfer_partial_1): Make some locals const.
1626 * gdb/target.h (struct target_ops) <get_section_table>: Make
1628 (target_section_by_addr): Likewise.
1629 (target_get_section_table): Likewise.
1631 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1633 * NEWS: Mention new 'maint info target-sections' command.
1634 * maint.c (maintenance_info_target_sections): New function.
1635 (_initialize_maint_cmds): Register new command.
1637 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1639 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1640 (riscv_features_from_bfd): ...this. Change parameter type to
1641 'bfd*', and update as required.
1642 (riscv_find_default_target_description): Update call to
1643 riscv_features_from_bfd. Select a default xlen based on
1645 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1647 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1649 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1650 dynamic types in UNOP_IND.
1652 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1655 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1657 (~dwarf2_queue_guard): Clear queue.
1658 (queue_comp_unit): Assert that queue is
1660 (process_queue): Adjust.
1661 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1663 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1666 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1667 to decide whether or not to enqueue it for expansion.
1668 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1669 after calling maybe_queue_comp_unit.
1671 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1673 * linux-nat.c (linux_nat_filter_event): Return void.
1675 2021-02-22 Tom Tromey <tromey@adacore.com>
1677 * solib-svr4.c (enable_break): Update.
1678 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1680 (target_bfd_reopen): Change parameter type.
1681 * bfd-target.h (target_bfd_reopen): Change parameter type.
1683 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1685 * thread.c (add_thread_silent): Add assert.
1686 (find_thread_ptid): Add assert.
1688 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1691 * inf-ptrace.c (struct target_unpusher): Move to target.h.
1692 (target_unpush_up): Likewise.
1693 * procfs.c (procfs_target::attach): Push target early. Use
1694 target_unpush_up to unpush target in case of error.
1695 * target.h (struct target_unpusher): Move here.
1696 (target_unpush_up): Likewise.
1698 2021-02-19 Kevin Buettner <kevinb@redhat.com>
1700 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
1701 (which in turn includes <gnulib/config.h>) before include
1704 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
1707 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
1708 (decode_j_type_insn): Likewise.
1709 (decode_cj_type_insn): Likewise.
1710 (decode_b_type_insn): Likewise.
1713 2021-02-18 Tom Tromey <tom@tromey.com>
1715 * expression.h (struct expression) <evaluate>: Declare method.
1716 * eval.c (evaluate_subexp): Simplify.
1717 (expression::evaluate): New method.
1718 (evaluate_expression, evaluate_type): Use expression::evaluate.
1720 2021-02-17 Kevin Buettner <kevinb@redhat.com>
1722 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1724 (ada_lookup_name_info): Likewise.
1726 2021-02-13 Mike Frysinger <vapier@gentoo.org>
1728 * aclocal.m4: Regenerate.
1730 2021-02-12 Tom de Vries <tdevries@suse.de>
1733 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1734 (lin_thread_signals): New static var.
1735 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1737 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1738 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1740 * linux-thread-db.c (check_thread_signals): Use
1741 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1743 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1745 * f-exp.y (f77_keywords): Add allocated.
1746 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
1747 (operator_length_f): Likewise.
1748 (print_subexp_f): Likewise.
1749 (dump_subexp_body_f): Likewise.
1750 (operator_check_f): Likewise.
1751 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
1753 2021-02-11 Tom de Vries <tdevries@suse.de>
1756 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
1757 Return true for DW_FORM_strx.
1759 2021-02-11 Tom Tromey <tromey@adacore.com>
1762 * parse.c (write_exp_symbol_reference): Write sym.block.
1764 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1766 * NEWS: Mention changes to 'maint info sections'.
1767 * maint.c (match_substring): Return a bool, fix whitespace issue.
1768 (struct single_bfd_flag_info): New struct.
1769 (bfd_flag_info): New static global.
1770 (match_bfd_flags): Return a bool, use bfd_flag_info.
1771 (print_bfd_flags): Use bfd_flag_info.
1772 (maint_print_section_info): Delete trailing whitespace.
1773 (struct maint_info_sections_opts): New struct.
1774 (maint_info_sections_option_defs): New static global.
1775 (maint_info_sections_completer): New function.
1776 (maintenance_info_sections): Use option parsing mechanism.
1777 (_initialize_maint_cmds): Update command help text for 'maint info
1778 sections' and register a command completer.
1780 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1782 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
1783 functionality merged into...
1784 (maint_print_all_sections): ...this new function.
1785 (maintenance_info_sections): Make use of maint_print_all_sections,
1786 allow all objects to be printed even where there's no executable.
1788 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1790 * breakpoint.c (resolve_sal_pc): Make use of
1791 bound_minimal_symbol::obj_section.
1792 * maint.c (maintenance_translate_address): Likewise.
1793 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1794 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1796 * printcmd.c (info_address_command): Make use of
1797 bound_minimal_symbol::obj_section.
1799 2021-02-11 Alan Modra <amodra@gmail.com>
1801 * arm-symbian-tdep.c: Delete.
1802 * NEWS: Mention arm-symbian removal.
1803 * Makefile.in: Remove arm-symbian-tdep entries.
1804 * configure.tgt: Remove arm*-*-symbianelf*.
1805 * doc/gdb.texinfo: Remove mention of SymbianOS.
1806 * osabi.c (gdb_osabi_names): Remove "Symbian".
1807 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
1808 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
1809 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
1811 * testsuite/gdb.base/dup-sect.exp: Likewise.
1812 * testsuite/gdb.base/long_long.exp: Likewise.
1813 * testsuite/gdb.base/solib-weak.exp: Likewise.
1814 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
1815 * testsuite/gdb.python/py-section-script.exp: Likewise.
1816 * testsuite/lib/dwarf.exp: Likewise.
1817 * testsuite/lib/gdb.exp: Likewise.
1819 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1821 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
1822 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
1823 (one_or_two_args): New pattern.
1824 (f77_keywords): Add lbound and ubound.
1825 * f-lang.c (fortran_bounds_all_dims): New function.
1826 (fortran_bounds_for_dimension): New function.
1827 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
1828 (operator_length_f): Likewise.
1829 (print_subexp_f): Likewise.
1830 (dump_subexp_body_f): Likewise.
1831 (operator_check_f): Likewise.
1832 * std-operator.def (FORTRAN_LBOUND): Define.
1833 (FORTRAN_UBOUND): Define.
1835 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1837 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
1838 and set_section_index member functions where appropriate.
1839 * coffread.c (coff_symtab_read): Likewise.
1840 (process_coff_symbol): Likewise.
1841 * ctfread.c (set_symbol_address): Likewise.
1842 * dwarf2/read.c (add_partial_symbol): Likewise.
1843 (var_decode_location): Likewise.
1844 * language.c: Likewise.
1845 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
1846 (compact_minimal_symbols): Likewise.
1847 (minimal_symbol_upper_bound): Likewise.
1848 * objfiles.c (relocate_one_symbol): Likewise.
1849 * psympriv.h (partial_symbol::obj_section): Likewise.
1850 (partial_symbol::address): Likewise.
1851 * psymtab.c (partial_symtab::add_psymbol): Likewise.
1852 * stabsread.c (scan_file_globals): Likewise.
1853 * symmisc.c (dump_msymbols): Likewise.
1854 * symtab.c (general_symbol_info::obj_section): Likewise.
1855 (fixup_section): Likewise.
1856 (get_msymbol_address): Likewise.
1857 * symtab.h (general_symbol_info::section): Rename to...
1858 (general_symbol_info::m_section): ...this.
1859 (general_symbol_info::set_section_index): New member function.
1860 (general_symbol_info::section_index): Likewise.
1861 (SYMBOL_SECTION): Delete.
1862 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
1863 set_section_index member functions where appropriate.
1864 (MSYMBOL_SECTION): Delete.
1865 (symbol::symbol): Update to initialize 'm_section'.
1866 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
1867 (process_xcoff_symbol): Likewise.
1869 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
1871 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
1872 MSYMBOL_OBJ_SECTION.
1873 * findvar.c (language_defn::read_var_value): Likewise.
1874 * infcmd.c (jump_command): Likewise.
1875 * linespec.c (minsym_found): Likewise.
1876 * maint.c (maintenance_translate_address): Likewise.
1877 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
1878 (minimal_symbol_upper_bound): Likewise.
1879 * parse.c (find_minsym_type_and_address): Likewise.
1880 (operator_check_standard): Likewise.
1881 * printcmd.c (info_address_command): Likewise.
1882 * symmisc.c (dump_msymbols): Likewise.
1883 (print_symbol): Likewise.
1884 * symtab.c (general_symbol_info::obj_section): Define new
1886 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
1887 (find_pc_sect_compunit_symtab): Likewise.
1888 (find_function_start_sal): Likewise.
1889 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
1890 MSYMBOL_OBJ_SECTION.
1891 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
1893 (SYMBOL_OBJ_SECTION): Delete.
1894 (MSYMBOL_OBJ_SECTION): Delete.
1896 2021-02-09 Tom Tromey <tom@tromey.com>
1898 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
1900 2021-02-09 Tom de Vries <tdevries@suse.de>
1903 * dwarf2/read.c (read_array_type): Return NULL when not being able to
1904 construct an array type. Add assert to ensure that element_type is
1907 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
1909 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
1910 (gcore_collect_regset_section_cb): Delete.
1911 (gcore_collect_thread_registers): Delete.
1912 (gcore_build_thread_register_notes): Delete.
1913 (gcore_find_signalled_thread): Delete.
1914 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
1915 'gdbarch' and 'thread_info' declarations.
1916 (gcore_build_thread_register_notes): Delete declaration.
1917 (gcore_find_signalled_thread): Likewise.
1918 * fbsd-tdep.c: Remove 'gcore.h' include.
1919 (struct fbsd_collect_regset_section_cb_data): New struct.
1920 (fbsd_collect_regset_section_cb): New function.
1921 (fbsd_collect_thread_registers): New function.
1922 (struct fbsd_corefile_thread_data): New struct.
1923 (fbsd_corefile_thread): New function.
1924 (fbsd_make_corefile_notes): Call FreeBSD specific code.
1925 * linux-tdep.c: Remove 'gcore.h' include.
1926 (struct linux_collect_regset_section_cb_data): New struct.
1927 (linux_collect_regset_section_cb): New function.
1928 (linux_collect_thread_registers): New function.
1929 (linux_corefile_thread): Call Linux specific code.
1930 (find_signalled_thread): New function.
1931 (linux_make_corefile_notes): Call find_signalled_thread.
1933 2021-02-09 Tom Tromey <tromey@adacore.com>
1935 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
1937 * value.c (value_contents_copy_raw): Now static.
1938 * value.h (value_contents_copy_raw): Don't declare.
1940 2021-02-09 Tom Tromey <tromey@adacore.com>
1942 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
1945 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
1948 * arc-linux-tdep.c (handle_atomic_sequence): New.
1949 (arc_linux_software_single_step): Call handle_atomic_sequence().
1951 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1953 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
1955 (REQUIRE_WINDOW): Call is_valid member function.
1956 (REQUIRE_WINDOW_FOR_SETTER): New define.
1957 (gdbpy_tui_is_valid): Call is_valid member function.
1958 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
1959 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
1961 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
1962 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
1965 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1967 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
1968 for the title is not nullptr.
1970 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1972 * tui-layout.c (saved_tui_windows): Delete.
1973 (tui_apply_current_layout): Don't make use of saved_tui_windows,
1974 call new get_windows member function instead.
1975 (tui_get_window_by_name): Check in tui_windows.
1976 (tui_layout_window::apply): Don't add to tui_windows.
1977 * tui-layout.h (tui_layout_base::get_windows): New member function.
1978 (tui_layout_window::get_windows): Likewise.
1979 (tui_layout_split::get_windows): Likewise.
1981 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1983 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
1984 of the window objects.
1986 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1988 * python/python.c (gdbpy_print_stack): Reformat an error message.
1990 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
1992 * tui/tui-interp.c (tui_command_line_handler): New function.
1993 (tui_interp::resume): Register tui_command_line_handler as the
1995 * tui/tui-io.c (tui_inject_newline_into_command_window): New
1997 (tui_getc_1): Delete handling of '\n' and '\r'.
1998 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2000 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2002 * tui/tui-regs.c (tui_data_window::display_registers_from):
2003 Mark invisible register sub windows.
2004 (tui_data_window::check_register_values): Ignore invisible
2005 register sub windows.
2007 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2009 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2010 n_spaces with a negative value.
2012 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2014 * tui/tui-regs.c (tui_data_window::display_registers_from):
2015 Add refresh_window call.
2017 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2019 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2021 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2023 * symmisc.c (std_in, std_out, std_err): Remove.
2024 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2026 2021-02-05 Tom de Vries <tdevries@suse.de>
2028 PR breakpoints/27330
2029 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2030 glibc object file has debug info.
2032 2021-02-05 Tom de Vries <tdevries@suse.de>
2035 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2037 2021-02-05 Tom de Vries <tdevries@suse.de>
2039 PR breakpoints/27313
2040 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2043 2021-02-05 Tom Tromey <tom@tromey.com>
2045 * compile/compile-c-support.c (get_compile_context)
2046 (c_get_compile_context, cplus_get_compile_context): Change return
2048 * language.c (language_defn::get_compile_instance): New method.
2049 * language.h (language_defn::get_compile_instance): Change return
2050 type. No longer inline.
2051 * c-lang.c (c_language::get_compile_instance): Change return type.
2052 (cplus_language::get_compile_instance): Change return type.
2053 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2055 * compile/compile.c (compile_to_object): Update.
2057 2021-02-05 Tom Tromey <tom@tromey.com>
2059 * parser-defs.h (write_exp_symbol_reference): Declare.
2060 * parse.c (write_exp_symbol_reference): New function.
2061 * p-exp.y (variable): Use write_exp_symbol_reference.
2062 * m2-exp.y (variable): Use write_exp_symbol_reference.
2063 * f-exp.y (variable): Use write_exp_symbol_reference.
2064 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2065 * c-exp.y (variable): Use write_exp_symbol_reference.
2067 2021-02-05 Tom de Vries <tdevries@suse.de>
2070 * valarith.c (complex_binop): Throw an error if complex type can't
2073 2021-02-05 Tom de Vries <tdevries@suse.de>
2076 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2079 2021-02-05 Tom de Vries <tdevries@suse.de>
2081 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2083 2021-02-04 Mike Frysinger <vapier@gentoo.org>
2085 * configure.tgt (riscv*-*-*): Set gdb_sim.
2087 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2089 * target.c (target_is_non_stop_p): Return bool.
2090 * target.h (target_is_non_stop_p): Return bool.
2092 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2094 * record-full.c (record_full_async_inferior_event_handler):
2095 Don't clear async event handler.
2096 (record_full_base_target::wait): Clear async event handler at
2099 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2101 * record-btrace.c (record_btrace_handle_async_inferior_event):
2102 Don't clear async event handler.
2103 (record_btrace_target::wait): Clear async event handler at
2106 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2108 * remote.c (remote_target::wait): Clear async event handler at
2109 beginning, mark if needed at the end.
2110 (remote_async_inferior_event_handler): Don't set or clear async
2113 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2115 * async-event.h (async_event_handler_func): Add documentation.
2116 * async-event.c (check_async_event_handlers): Don't clear
2117 async_event_handler ready flag.
2118 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2120 * record-btrace.c (record_btrace_handle_async_inferior_event):
2122 * record-full.c (record_full_async_inferior_event_handler):
2124 * remote-notif.c (remote_async_get_pending_events_handler):
2126 * remote.c (remote_async_inferior_event_handler): Likewise.
2128 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2130 * infrun.c (handle_inferior_event): Move stop_soon variable to
2133 2021-02-03 Pedro Alves <pedro@palves.net>
2135 * infcmd.c (detach_command): Hold strong reference to target, and
2136 if all-stop on entry, restart threads on exit.
2137 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2138 (restart_stepped_thread): ... this new function. Also handle
2140 (restart_after_all_stop_detach): New function.
2141 * infrun.h (restart_after_all_stop_detach): Declare.
2143 2021-02-03 Pedro Alves <pedro@palves.net>
2145 * infrun.c (struct step_over_info): Initialize fields.
2146 (prepare_for_detach): Handle ongoing in-line step over.
2148 2021-02-03 Pedro Alves <pedro@palves.net>
2150 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2152 * remote.c (remote_target::remote_detach_1): ... and here ...
2153 * target.c (target_detach): ... instead of here.
2154 * target.h (target_ops::detach): Add comment.
2156 2021-02-03 Pedro Alves <pedro@palves.net>
2158 * infrun.c (struct wait_one_event): Move higher up.
2159 (prepare_for_detach): Abort in-progress displaced steps instead of
2160 letting them complete.
2161 (handle_one): If the inferior is detaching, don't add the thread
2162 back to the global step-over chain.
2163 (restart_threads): Don't restart threads if detaching.
2164 (handle_signal_stop): Remove inferior::detaching reference.
2166 2021-02-03 Pedro Alves <pedro@palves.net>
2168 * infrun.c (prepare_for_detach): Don't release scoped_restore
2171 2021-02-03 Pedro Alves <pedro@palves.net>
2173 * infrun.c (handle_one): New function, factored out from ...
2174 (stop_all_threads): ... here.
2176 2021-02-03 Pedro Alves <pedro@palves.net>
2178 * remote.c (remote_notif_stop_ack): Don't error out on
2179 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2180 (remote_target::discard_pending_stop_replies): Don't delete
2181 in-flight notification; instead, clear its contents.
2183 2021-02-03 Pedro Alves <pedro@palves.net>
2185 * remote.c (extended_remote_target::attach): Set target async in
2186 the target-non-stop path too.
2188 2021-02-03 Pedro Alves <pedro@palves.net>
2191 * infrun.c (handle_signal_stop): Move main context_switch call
2192 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2194 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2196 * NEWS (Changed commands): Add entry for the behavior change of
2197 the inferior command.
2198 * inferior.c (inferior_command): When no argument is given to the
2199 inferior command, display info about the currently selected
2202 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2204 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2206 (read_attribute_reprocess): Adjust.
2208 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2210 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2211 <gnu_ranges_base>: ... this...
2212 <rnglists_base>: ... and this.
2213 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2214 <gnu_ranges_base>: ... this...
2215 <rnglists_base>: ... and this.
2216 (read_cutu_die_from_dwo): Adjust
2217 (dwarf2_get_pc_bounds): Adjust
2218 (dwarf2_record_block_ranges): Adjust.
2219 (read_full_die_1): Adjust
2220 (partial_die_info::read): Adjust.
2221 (read_rnglist_index): Adjust.
2223 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2226 * dwarf2/read.c (read_loclists_rnglists_header): Add
2227 header_offset parameter and use it.
2228 (read_loclist_index): Read header of the current contribution,
2229 not the one at the beginning of the section.
2230 (read_rnglist_index): Likewise.
2232 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2235 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2236 requires_reprocessing flag.
2237 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2239 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2240 and DW_FORM_loclistx.
2241 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2242 instead of set_address for DW_FORM_loclistx and
2245 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2247 * dwarf2/read.c (read_loclist_index): Remove bound check for
2249 (read_rnglist_index): Likewise.
2251 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2253 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2256 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2258 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2260 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2262 * dwarf2/read.c (read_loclist_index): Change complaints into
2265 2021-02-02 Tom de Vries <tdevries@suse.de>
2268 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2271 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2273 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2274 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2275 here from linux-tdep.c and given a new name. Minor cleanups.
2276 (gcore_collect_regset_section_cb): Likewise.
2277 (gcore_collect_thread_registers): Likewise.
2278 (gcore_build_thread_register_notes): Likewise.
2279 (gcore_find_signalled_thread): Likewise.
2280 * gcore.h (gcore_build_thread_register_notes): Declare.
2281 (gcore_find_signalled_thread): Declare.
2282 * fbsd-tdep.c: Add 'gcore.h' include.
2283 (struct fbsd_collect_regset_section_cb_data): Delete.
2284 (fbsd_collect_regset_section_cb): Delete.
2285 (fbsd_collect_thread_registers): Delete.
2286 (struct fbsd_corefile_thread_data): Delete.
2287 (fbsd_corefile_thread): Delete.
2288 (fbsd_make_corefile_notes): Call
2289 gcore_build_thread_register_notes instead of the now deleted
2291 * linux-tdep.c: Add 'gcore.h' include.
2292 (struct linux_collect_regset_section_cb_data): Delete.
2293 (linux_collect_regset_section_cb): Delete.
2294 (linux_collect_thread_registers): Delete.
2295 (linux_corefile_thread): Call
2296 gcore_build_thread_register_notes.
2297 (find_signalled_thread): Delete.
2298 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2300 2021-01-29 Tom de Vries <tdevries@suse.de>
2302 PR breakpoints/26063
2303 * infrun.c (process_event_stop_test): Reset
2304 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2307 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2309 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2310 assert. Extend the header comment.
2312 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2314 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2315 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2316 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2317 (tui_locator_win_info_ptr): Delete declaration.
2318 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2319 (tui_disasm_window::set_contents): Fetch state from tui_location
2321 (tui_get_begin_asm_address): Likewise.
2322 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2324 (get_locator_window): Delete.
2325 (initialize_known_windows): Treat locator window just like all the
2327 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2328 (tui_source_window::set_contents): Fetch state from tui_location
2330 (tui_source_window::showing_source_p): Likewise.
2331 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2333 (tui_locator_win_info_ptr): Delete.
2334 (tui_locator_window::make_status_line): Fetch state from
2335 tui_location global.
2336 (tui_locator_window::rerender): Remove check of 'handle',
2337 reindent function body.
2338 (tui_locator_window::set_locator_fullname): Delete.
2339 (tui_locator_window::set_locator_info): Delete.
2340 (tui_update_locator_fullname): Delete.
2341 (tui_show_frame_info): Likewise.
2342 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2343 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2344 tui/tui-location.h and renamed to
2345 tui_location_tracker::set_location.
2346 (tui_locator_window::set_locator_fullname): Moved to
2347 tui/tui-location.h and renamed to
2348 tui_location_tracker::set_fullname.
2349 (tui_locator_window::full_name): Delete.
2350 (tui_locator_window::proc_name): Delete.
2351 (tui_locator_window::line_no): Delete.
2352 (tui_locator_window::addr): Delete.
2353 (tui_locator_window::gdbarch): Delete.
2354 (tui_update_locator_fullname): Delete declaration.
2355 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2357 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2358 (tui_display_main): Call function on tui_location directly.
2359 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2360 * tui/tui-location.c: New file.
2361 * tui/tui-location.h: New file.
2363 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2365 * gdbtypes.h (get_type_arch): Rename to...
2366 (struct type) <arch>: ... this, update all users.
2368 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2370 * gdbtypes.h (struct type) <arch>: Rename to...
2371 <arch_owner>: ... this, update all users.
2372 <objfile>: Rename to...
2373 <objfile_owner>: ... this, update all users.
2375 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2377 * gdbcmd.h (execute_command_to_string): Update comment.
2378 * top.c (execute_command_to_string): Update header comment.
2380 2021-01-28 Tom de Vries <tdevries@suse.de>
2382 PR breakpoints/27205
2383 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2384 (create_longjmp_master_breakpoint_names): New function, factored out
2386 (create_longjmp_master_breakpoint): ... here. Only try to install
2387 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2388 breakpoint in libc.so failed.
2390 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2393 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2394 unique_ptr is released when the wrapped pointer is kept for later
2397 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2399 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2400 BLR and BR instructions.
2401 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2402 (enum aarch64_masks): New.
2404 2021-01-26 Tom Tromey <tromey@adacore.com>
2406 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2407 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2408 (windows_init_thread_list, windows_nat::handle_load_dll)
2409 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2410 (windows_nat_target::resume)
2411 (windows_nat_target::get_windows_debug_event)
2412 (windows_nat_target::interrupt, windows_xfer_memory)
2413 (windows_nat_target::close): Update.
2414 * nat/windows-nat.c (DEBUG_EVENTS): Use
2415 debug_prefixed_printf_cond.
2416 (matching_pending_stop, fetch_pending_stop)
2417 (continue_last_debug_event): Update.
2419 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2421 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2422 elfcore_write_file_note.
2424 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
2426 * arc-tdep.c (arc_add_reggroups): New function.
2427 (arc_gdbarch_init): Call arc_add_reggroups.
2429 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
2431 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2433 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2434 Simon Marchi <simon.marchi@polymtl.ca>
2435 Tom de Vries <tdevries@suse.de>
2437 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2440 2021-01-25 Tom Tromey <tromey@adacore.com>
2442 * dwarf2/read.c (get_mpz): New function.
2443 (get_dwarf2_rational_constant): Use it.
2445 2021-01-25 Tom Tromey <tromey@adacore.com>
2447 * ada-lang.c (resolve_subexp): Handle array context.
2449 2021-01-23 Tom Tromey <tom@tromey.com>
2452 * compile/compile-loc2c.c (note_register): New function.
2453 (pushf_register_address, pushf_register): Use it.
2455 2021-01-23 Tom Tromey <tom@tromey.com>
2457 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2458 Change type of "registers_used".
2459 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2460 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2461 (locexpr_generate_c_location, loclist_generate_c_location): Change
2462 type of "registers_used".
2463 * compile/compile.h (compile_dwarf_expr_to_c)
2464 (compile_dwarf_bounds_to_c): Update.
2465 * compile/compile-loc2c.c (pushf_register_address)
2466 (pushf_register, do_compile_dwarf_expr_to_c)
2467 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2468 of "registers_used".
2469 * compile/compile-c.h (generate_c_for_variable_locations):
2471 * compile/compile-c-symbols.c (generate_vla_size)
2472 (generate_c_for_for_one_variable): Change type of
2474 (generate_c_for_variable_locations): Return std::vector.
2475 * compile/compile-c-support.c (generate_register_struct): Change
2476 type of "registers_used".
2479 2021-01-23 Tom Tromey <tom@tromey.com>
2481 * compile/compile-internal.h (class compile_instance)
2482 <set_arguments>: Change return type.
2483 * compile/compile.c (compile_to_object): Remove call to reset.
2484 (compile_instance::set_arguments): Change return type.
2486 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2488 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2489 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2491 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2493 * Makefile.in (SELFTESTS_SRCS): Add
2494 unittests/gdb_tilde_expand-selftests.c.
2495 * unittests/gdb_tilde_expand-selftests.c: New file.
2497 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2500 * NEWS: Mention new command.
2501 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2502 (version_style): Define.
2503 (cli_style_option::cli_style_option): Add intensity parameter, and
2505 (_initialize_cli_style): Register version style set/show commands.
2506 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2507 (version_style): Declare.
2508 * top.c (print_gdb_version): Use version_stype, and styled_string
2509 to print the GDB version string.
2511 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2513 * utils.c (emit_style_escape): Only emit an escape sequence if the
2514 requested style is different than the current applied style.
2515 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2516 current applied_style.
2517 (fputs_styled): Remove is_default check.
2518 (fputs_styled_unfiltered): Likewise.
2519 (vfprintf_styled_no_gdbfmt): Likewise.
2521 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2523 * remote.h (remote_debug_printf): New.
2524 (remote_debug_printf_nofunc): New.
2525 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2526 * remote.c: Use above macros throughout file.
2528 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2530 * remote.h (remote_debug): Change to bool.
2531 * remote.c (remote_debug): Change to bool.
2532 (_initialize_remote): Adjust.
2534 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2536 * target.h (remote_debug): Move to...
2537 * remote.h (remote_debug): ... here.
2538 * top.c (remote_debug): Move to...
2539 * remote.c (remote_debug): ... here.
2540 * remote-sim.c: Include remote.h.
2542 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2544 * cli/cli-cmds.c (show_remote_debug): Remove.
2545 (show_remote_timeout): Remove.
2546 (_initialize_cli_cmds): Don't register commands.
2547 * remote.c (show_remote_debug): Move here.
2548 (show_remote_timeout): Move here.
2549 (_initialize_remote): Register commands.
2551 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2553 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2554 type::objfile method instead.
2556 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2558 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2559 use the type::is_objfile_owned method.
2561 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
2563 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2564 (TYPE_OWNER): Remove.
2565 (TYPE_OBJFILE): Adjust.
2566 (struct main_type) <flag_objfile_owned>: Rename to...
2567 <m_flag_objfile_owned>: ... this.
2568 <owner>: Rename to...
2569 <m_owner>: ... this.
2570 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2572 (TYPE_ALLOC): Adjust.
2573 * gdbtypes.c (alloc_type): Adjust.
2574 (alloc_type_arch): Adjust.
2575 (alloc_type_copy): Adjust.
2576 (get_type_arch): Adjust.
2577 (smash_type): Adjust.
2578 (lookup_array_range_type): Adjust.
2579 (recursive_dump_type): Adjust.
2580 (copy_type_recursive): Adjust.
2581 * compile/compile-c-types.c (convert_func): Adjust.
2582 (convert_type_basic): Adjust.
2583 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2586 (language_arch_info::type_and_symbol::alloc_type_symbol):
2589 2021-01-21 Luis Machado <luis.machado@linaro.org>
2591 * coffread.c (enter_linenos): Passing string to complaint.
2592 * valops.c (value_assign): Make array view.
2594 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2596 * auto-load.h (debug_auto_load): Move here.
2597 (auto_load_debug_printf): New.
2598 * auto-load.c: Use auto_load_debug_printf.
2599 (debug_auto_load): Move to header.
2600 * linux-thread-db.c (try_thread_db_load): Use
2601 auto_load_debug_printf.
2602 * main.c (captured_main_1): Likewise.
2604 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2606 * f-valprint.c (f77_array_offset_tbl): Remove.
2608 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2610 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2612 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2614 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2617 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
2620 * python/py-breakpoint.c (bppy_get_location): Handle
2621 bp_hardware_breakpoint.
2622 (bppy_init): Likewise.
2623 (gdbpy_breakpoint_created): Likewise.
2625 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2627 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2629 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2631 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2632 (_initialize_gdb_bfd): Adjust.
2634 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2637 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2639 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2641 * dwarf2/read.c (follow_die_offset): Add logging.
2642 (dwarf2_per_objfile::age_comp_units): Add logging.
2644 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2646 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2647 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2648 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2649 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2650 * arm-tdep.c (struct frame_unwind): Make static.
2651 * auto-load.c (auto_load_safe_path_vec): Make static.
2652 * csky-tdep.c (csky_stub_unwind): Make static.
2653 * gdbarch.c (gdbarch_data_registry): Make static.
2654 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2655 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2656 * i386-tdep.c (i386_frame_setup_skip_insns,
2657 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2659 * infrun.c (observer_mode): Make static.
2660 * linux-nat.c (sigchld_action): Make static.
2661 * linux-thread-db.c (thread_db_list): Make static.
2662 * maint-test-options.c (maintenance_test_options_list):
2663 * mep-tdep.c (mep_csr_registers): Make static.
2664 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2665 (stats): Make static.
2666 * nat/linux-osdata.c (struct osdata_type): Make static.
2667 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2668 * progspace.c (last_program_space_num): Make static.
2669 * python/py-param.c (struct parm_constant): Remove struct type
2671 (parm_constants): Make static.
2672 * python/py-record-btrace.c (btpy_list_methods): Make static.
2673 * python/py-record.c (recpy_gap_type): Make static.
2674 * record.c (record_goto_cmdlist): Make static.
2675 * regcache.c (regcache_descr_handle): Make static.
2676 * registry.h (DEFINE_REGISTRY): Make definition static.
2677 * symmisc.c (std_in, std_out, std_err): Make static.
2678 * top.c (previous_saved_command_line): Make static.
2679 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2681 * unittests/command-def-selftests.c (nr_duplicates,
2682 nr_invalid_prefixcmd, lists): Make static.
2683 * unittests/observable-selftests.c (test_notification): Make
2685 * unittests/optional/assignment/1.cc (counter): Make static.
2686 * unittests/optional/assignment/2.cc (counter): Make static.
2687 * unittests/optional/assignment/3.cc (counter): Make static.
2688 * unittests/optional/assignment/4.cc (counter): Make static.
2689 * unittests/optional/assignment/5.cc (counter): Make static.
2690 * unittests/optional/assignment/6.cc (counter): Make static.
2692 2021-01-20 Joel Sherrill <joel@rtems.org>
2695 * remote.c (struct remote_thread_info) <resume_state>: Rename
2697 <get_resume_state>: ... this.
2698 (remote_target::resume): Adjust.
2699 (remote_target::commit_resume): Adjust.
2700 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
2702 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
2703 Tom Tromey <tom@tromey.com>
2705 * stap-probe.c (stap_parse_single_operand): Handle '!'
2707 (stap_parse_argument_conditionally): Likewise.
2708 Skip spaces after processing open-parenthesis sub-expression.
2709 (stap_parse_argument_1): Skip spaces after call to
2710 stap_parse_argument_conditionally.
2711 Handle case when right-side expression is a parenthesized
2713 Skip spaces after call to stap_parse_argument_1.
2715 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2717 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2719 2021-01-19 Luis Machado <luis.machado@linaro.org>
2721 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2722 memory and save data.
2723 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2724 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2725 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2726 (trad_frame_value_bytes_p): Remove.
2727 (trad_frame_reset_saved_regs): Adjust documentation.
2728 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2729 constructor and reset the state of the registers.
2730 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2731 (trad_frame_value_bytes_p, trad_frame_set_value)
2732 (trad_frame_set_realreg, trad_frame_set_addr)
2733 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2734 (trad_frame_set_reg_realreg): Update to call member function.
2735 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2736 (trad_frame_get_prev_register): Likewise.
2738 * aarch64-tdep.c (aarch64_analyze_prologue)
2739 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2740 (aarch64_prologue_prev_register): Update to use member functions.
2741 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2742 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
2743 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
2744 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
2745 (arm_make_epilogue_frame_cache): Likewise.
2746 * avr-tdep.c (avr_frame_unwind_cache)
2747 (avr_frame_prev_register): Likewise.
2748 * cris-tdep.c (cris_scan_prologue): Likewise.
2749 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
2750 * frv-tdep.c (frv_analyze_prologue): Likewise.
2751 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
2752 * lm32-tdep.c (lm32_frame_cache): Likewise.
2753 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2754 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2755 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
2756 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
2757 (reset_saved_regs): Adjust to set realreg.
2758 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
2759 call member functions.
2760 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
2761 * s390-tdep.c (s390_prologue_frame_unwind_cache)
2762 (s390_backchain_frame_unwind_cache): Likewise.
2763 * score-tdep.c (score7_analyze_prologue)
2764 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
2765 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
2766 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2767 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
2768 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2769 * tilegx-tdep.c (tilegx_analyze_prologue)
2770 (tilegx_frame_cache): Likewise.
2771 * v850-tdep.c (v850_frame_cache): Likewise.
2772 * vax-tdep.c (vax_frame_cache): Likewise.
2774 2021-01-19 Luis Machado <luis.machado@linaro.org>
2776 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
2778 (put_frame_register_bytes): Likewise.
2779 Adjust documentation.
2780 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
2781 (safe_frame_unwind_memory): Likewise.
2782 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
2783 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
2785 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
2786 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
2787 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2788 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
2789 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
2790 * dwarf2/loc.c (rw_pieced_value): Likewise.
2791 * hppa-tdep.c (hppa_frame_cache): Likewise.
2792 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2793 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2794 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2795 (i386_linux_rt_sigtramp_start): Likewise.
2796 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2797 * i386-tdep.c (i386_register_to_value): Likewise.
2798 * i387-tdep.c (i387_register_to_value): Likewise.
2799 * ia64-tdep.c (ia64_register_to_value): Likewise.
2800 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2801 (m32r_linux_rt_sigtramp_start): Likewise.
2802 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2803 * m68k-tdep.c (m68k_register_to_value): Likewise.
2804 * mips-tdep.c (mips_register_to_value)
2805 (mips_value_to_register): Likewise.
2806 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
2807 (ppcfbsd_sigtramp_frame_cache): Likewise.
2808 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
2809 (ppcobsd_sigtramp_frame_cache): Likewise.
2810 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
2811 (rs6000_register_to_value): Likewise.
2812 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2813 * tramp-frame.c (tramp_frame_start): Likewise.
2814 * valops.c (value_assign): Likewise.
2816 2021-01-19 Luis Machado <luis.machado@linaro.org>
2818 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
2820 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
2821 instead of buffer and size.
2822 (trad_frame_set_reg_value_bytes): Likewise.
2823 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
2824 (trad_frame_set_value_bytes): Likewise.
2826 2021-01-18 Mike Frysinger <vapier@gentoo.org>
2828 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
2830 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
2832 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
2833 (riscv_fbsd_gregset): Use riscv_supply_regset.
2834 (riscv_fbsd_fpregset): Likewise.
2835 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
2836 (riscv_linux_fregset): Likewise.
2837 * riscv-tdep.c (riscv_supply_regset): Define new function.
2838 * riscv-tdep.h (riscv_supply_regset): Declare new function.
2840 2021-01-18 Tom de Vries <tdevries@suse.de>
2843 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
2845 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
2848 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2850 * remote.c (class remote_target) <remote_hostio_send_command,
2851 remote_hostio_parse_result>: Constify parameter.
2852 (remote_hostio_parse_result): Likewise.
2853 (remote_target::remote_hostio_send_command): Adjust.
2854 (remote_target::remote_hostio_pread_vFile): Adjust.
2855 (remote_target::fileio_readlink): Adjust.
2856 (remote_target::fileio_fstat): Adjust.
2858 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2860 * remote.c (remote_target::start_remote): Move wait_status to
2863 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2865 * remote.c (class remote_target):
2866 <add_current_inferior_and_thread>: Constify parameter.
2867 (stop_reply_extract_thread): Likewise.
2868 (remote_target::get_current_thread): Likewise.
2869 (remote_target::add_current_inferior_and_thread): Likewise.
2871 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
2873 * remote.c (class remote_target)
2874 <remote_unpack_thread_info_response,
2875 parse_threadlist_response>: Constify parameter and/or return
2876 value and or local variable.
2877 (stub_unpack_int): Likewise.
2878 (unpack_nibble): Likewise.
2879 (unpack_byte): Likewise.
2880 (unpack_int): Likewise.
2881 (unpack_string): Likewise.
2882 (unpack_threadid): Likewise.
2883 (remote_target::remote_unpack_thread_info_response): Likewise.
2884 (remote_target::parse_threadlist_response): Likewise.
2886 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
2888 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
2890 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
2892 * MAINTAINERS (Write After Approval): Add myself.
2894 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
2896 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
2897 because is_trivially_default_constructible was first implemented with
2900 2021-01-14 Tom de Vries <tdevries@suse.de>
2902 PR breakpoints/27151
2903 * objfiles.h (in_plt_section): Handle .plt.sec.
2905 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
2909 (remote_target::select_thread_for_ambiguous_stop_reply): New
2911 (remote_target::process_stop_reply): Call
2912 select_thread_for_ambiguous_stop_reply.
2914 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
2916 * record-btrace.c (class record_btrace_target): Remove.
2917 (record_btrace_target::commit_resume): Remove.
2918 * record-full.c (class record_full_target): Remove.
2919 (record_full_target::commit_resume): Remove.
2921 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
2923 * remote.c (enum class resume_state): New.
2924 (struct resumed_pending_vcont_info): New.
2925 (struct remote_thread_info) <resume_state, set_not_resumed,
2926 set_resumed_pending_vcont, resumed_pending_vcont_info,
2927 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
2929 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
2930 (remote_target::remote_add_thread): Adjust.
2931 (remote_target::process_initial_stop_replies): Adjust.
2932 (remote_target::resume): Adjust.
2933 (remote_target::commit_resume): Rely on state in
2934 remote_thread_info and not on tp->executing.
2935 (remote_target::process_stop_reply): Adjust.
2937 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2939 * arc-tdep.h (arc_debug_printf): New.
2940 * arc-tdep.c: Use arc_debug_printf.
2941 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
2942 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
2943 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
2945 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2947 * arc-tdep.h (arc_debug): Change type to bool.
2948 * arc-tdep.c (arc_debug): Change type to bool.
2949 (arc_analyze_prologue): Adjust.
2950 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
2951 * arc-linux-nat.c (ps_get_thread_area): Adjust.
2953 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2955 * auto-load.c (auto_load_objfile_script_1): Use bool.
2956 (execute_script_contents): Use bool.
2958 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2960 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
2962 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
2964 * extension-priv.h (struct extension_language_script_ops)
2965 <auto_load_enabled>: Return bool.
2966 * extension.h (ext_lang_auto_load_enabled): Return bool, move
2968 * extension.c (ext_lang_auto_load_enabled): Return bool, move
2970 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
2972 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
2973 move comment to header.
2974 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
2976 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
2977 move comment to header.
2979 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2981 * auto-load.h (file_is_auto_load_safe): Change return type to
2982 bool, move comment here.
2983 * auto-load.c (file_is_auto_load_safe): Change return type and
2984 advice_printed to bool. Move comment to header.
2986 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
2988 * jit.c (jit_debug_printf): New, use throughout file.
2990 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2992 * infrun.c (normal_stop): Fix indentation.
2994 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
2996 * top.h (readnow_symbol_files, readnever_symbol_files): Move
2998 * symfile.h: ... here.
2999 * symfile.c: Update doc.
3001 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3003 * target.h (baud_rate, serial_parity): Move declarations...
3004 * serial.h: ... here.
3005 * main.c: Include serial.h.
3006 * serial.c (baud_rate, serial_parity): Update doc.
3008 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3010 * top.c (pre_init_ui_hook): Remove.
3012 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3014 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3015 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3016 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3017 * features/aarch64-fpu.xml: Add bfloat16 type.
3019 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3021 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3023 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3025 * f-exp.y (dot_ops): Rename to...
3026 (fortran_operators): ...this. Add a header comment. Add symbol
3028 (yylex): Update to use fortran_operators not dot_ops. Remove
3029 special handling for '**', this is now included in
3032 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3034 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3035 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3036 * aarch64-tdep.c: Use aarch64_debug_printf.
3038 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3040 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3043 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3045 * jit.c (jit_debug): Change type to bool.
3046 (_initialize_jit): Adjust.
3048 2021-01-09 Tom Tromey <tom@tromey.com>
3051 * compile/compile.c (compile_to_object): Avoid crash when
3052 osabi_triplet_regexp returns NULL.
3054 2021-01-09 Tom Tromey <tom@tromey.com>
3056 * tracepoint.h (class collection_list) <append_exp>: Take a
3058 * tracepoint.c (collection_list::append_exp): Take a std::string.
3059 (encode_actions_1): Update.
3061 2021-01-08 Tom Tromey <tromey@adacore.com>
3063 * parse.c (parse_expression): Add void_context_p parameter. Use
3064 parse_exp_in_context.
3065 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3067 (print_command, call_command): Update.
3068 * expression.h (parse_expression): Add void_context_p parameter.
3070 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3072 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3073 for internalvar components that have a dynamic location.
3075 2021-01-08 Tom de Vries <tdevries@suse.de>
3078 * breakpoint.c (create_exception_master_breakpoint_probe)
3079 (create_exception_master_breakpoint_hook): Factor out
3081 (create_exception_master_breakpoint): ... here. Only try to install
3082 the master exception breakpoint in objfile.debug using the
3083 _Unwind_DebugHook method, if the install using probes in objfile
3086 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3088 * f-lang.c (fortran_value_subarray): Call value_from_component.
3090 2021-01-07 Mike Frysinger <vapier@gentoo.org>
3092 * remote-sim.c: Include memory-map.h.
3093 (gdbsim_target): Define memory_map override.
3094 (gdbsim_target::memory_map): Define.
3096 2021-01-07 Tom Tromey <tromey@adacore.com>
3098 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3100 2021-01-07 Tom Tromey <tromey@adacore.com>
3102 * ada-lang.c (add_component_interval): Start loop using vector's
3105 2021-01-06 Tom Tromey <tromey@adacore.com>
3107 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3109 * valarith.c (fixed_point_binop): Handle multiplication
3110 and division specially.
3111 * valops.c (value_to_gdb_mpq): New function.
3112 (value_cast_to_fixed_point): Use it.
3114 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3116 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3117 Call wnoutrefresh instead of tui_win_info::refresh_window.
3119 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3121 * tui/tui-source.c (tui_source_window::show_line_number):
3122 Redraw second space after line number.
3124 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3127 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3128 Fix source pad size in prefresh.
3129 (tui_source_window_base::show_source_content): Grow source pad
3132 2021-01-04 Mike Frysinger <vapier@gentoo.org>
3134 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3135 (bfin_frame_align): Use align_down.
3137 2021-01-04 Tom de Vries <tdevries@suse.de>
3139 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3140 terminators that do not terminate anything.
3142 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3144 * debug.c (debug_print_depth): New.
3145 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3146 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3147 * infrun.c (start_step_over): Use
3148 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3149 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3150 INFRUN_SCOPED_DEBUG_START_END.
3151 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3153 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3155 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3157 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3159 * utils.c (vfprintf_unfiltered): Print timestamp only when
3160 previous debug output ended with a newline.
3162 2021-01-04 Luis Machado <luis.machado@linaro.org>
3164 Update all users of trad_frame_saved_reg to use the new member
3167 Remote all struct keywords from declarations of trad_frame_saved_reg
3168 types, except on forward declarations.
3170 * aarch64-tdep.c: Update.
3171 * alpha-mdebug-tdep.c: Update.
3172 * alpha-tdep.c: Update.
3173 * arc-tdep.c: Update.
3174 * arm-tdep.c: Update.
3175 * avr-tdep.c: Update.
3176 * cris-tdep.c: Update.
3177 * csky-tdep.c: Update.
3178 * frv-tdep.c: Update.
3179 * hppa-linux-tdep.c: Update.
3180 * hppa-tdep.c: Update.
3181 * hppa-tdep.h: Update.
3182 * lm32-tdep.c: Update.
3183 * m32r-linux-tdep.c: Update.
3184 * m32r-tdep.c: Update.
3185 * m68hc11-tdep.c: Update.
3186 * mips-tdep.c: Update.
3187 * moxie-tdep.c: Update.
3188 * riscv-tdep.c: Update.
3189 * rs6000-tdep.c: Update.
3190 * s390-linux-tdep.c: Update.
3191 * s390-tdep.c: Update.
3192 * score-tdep.c: Update.
3193 * sparc-netbsd-tdep.c: Update.
3194 * sparc-sol2-tdep.c: Update.
3195 * sparc64-fbsd-tdep.c: Update.
3196 * sparc64-netbsd-tdep.c: Update.
3197 * sparc64-obsd-tdep.c: Update.
3198 * sparc64-sol2-tdep.c: Update.
3199 * tilegx-tdep.c: Update.
3200 * v850-tdep.c: Update.
3201 * vax-tdep.c: Update.
3203 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3204 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3206 * trad-frame.c: Update.
3207 Remove TF_REG_* enum.
3208 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3209 a trivially-constructible struct.
3210 (trad_frame_reset_saved_regs): Adjust to use member function.
3211 (trad_frame_value_p): Likewise.
3212 (trad_frame_addr_p): Likewise.
3213 (trad_frame_realreg_p): Likewise.
3214 (trad_frame_value_bytes_p): Likewise.
3215 (trad_frame_set_value): Likewise.
3216 (trad_frame_set_realreg): Likewise.
3217 (trad_frame_set_addr): Likewise.
3218 (trad_frame_set_unknown): Likewise.
3219 (trad_frame_set_value_bytes): Likewise.
3220 (trad_frame_get_prev_register): Likewise.
3221 * trad-frame.h: Update.
3222 (trad_frame_saved_reg_kind): New enum.
3223 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3224 <m_kind, m_reg>: New member fields.
3225 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3226 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3227 <is_addr, is_unknown, is_value_bytes>: New member functions.
3229 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3231 * target-float.c: Fix typos.
3233 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
3235 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3237 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3239 * gdbarch.sh: Update copyright year range.
3241 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3243 Update copyright year range in copyright header of all GDB files.
3245 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3247 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3248 to the list of directories to update.
3250 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3252 * top.c (print_gdb_version): Update copyright year.
3254 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3256 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
3258 For older changes see ChangeLog-2020.
3264 version-control: never