]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb/fotran: add support for the 'shape' keyword
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * f-exp.h (eval_op_f_array_shape): Declare.
4 (fortran_array_shape_operation): New type.
5 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
6 UNOP_INTRINSIC.
7 (f77_keywords): Add "shape" keyword.
8 * f-lang.c (fortran_array_shape): New function.
9 (eval_op_f_array_shape): New function.
10 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
11
12 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
13
14 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
15 of this function.
16 (expr::fortran_array_size_1arg): New type.
17 (expr::fortran_array_size_2arg): Likewise.
18 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
19 UNOP_OR_BINOP_INTRINSIC.
20 (f77_keywords): Add "size" keyword.
21 * f-lang.c (fortran_array_size): New function.
22 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
23 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
24
25 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
26
27 * f-exp.h (eval_op_f_rank): Declare.
28 (expr::fortran_rank_operation): New typedef.
29 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
30 UNOP_INTRINSIC.
31 (f77_keywords): Add "rank" keyword.
32 * f-lang.c (eval_op_f_rank): New function.
33 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
34
35 2021-03-08 Tom Tromey <tom@tromey.com>
36
37 * printcmd.c (set_command): Remove null check.
38 * value.c (init_if_undefined_command): Remove null check.
39
40 2021-03-08 Tom Tromey <tom@tromey.com>
41
42 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
43 Update.
44 * p-exp.y (variable): Update.
45 * go-exp.y (variable): Update.
46 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
47 Remove overload for objfile.
48 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
49 parameter.
50 (check_objfile): Likewise.
51 (dump_for_expression): Likewise. Remove overload for objfile.
52 (class var_msym_value_operation): Use bound_minimal_symbol.
53 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
54 parameter.
55 (var_msym_value_operation::evaluate_for_address)
56 (var_msym_value_operation::evaluate_for_sizeof)
57 (var_msym_value_operation::evaluate_for_cast): Update.
58 * d-exp.y (PrimaryExpression): Update.
59 * c-exp.y (variable): Update.
60 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
61 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
62 Update.
63 * ada-exp.y (write_var_or_type): Update.
64
65 2021-03-08 Tom Tromey <tom@tromey.com>
66
67 * parser-defs.h (exp_uses_objfile): Return bool.
68 * parse.c (exp_uses_objfile): Return bool.
69
70 2021-03-08 Tom Tromey <tom@tromey.com>
71
72 * value.h (eval_skip_value): Don't declare.
73 * opencl-lang.c (eval_opencl_assign): Update.
74 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
75 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
76 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
77 * expression.h (enum noside) <EVAL_SKIP>: Remove.
78 * expop.h (typeof_operation::evaluate)
79 (decltype_operation::evaluate, unop_addr_operation::evaluate)
80 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
81 (cxx_cast_operation::evaluate): Update.
82 * eval.c (eval_skip_value): Remove.
83 (eval_op_scope, eval_op_var_entry_value)
84 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
85 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
86 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
87 (eval_op_binary, eval_op_subscript, eval_op_equal)
88 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
89 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
90 (eval_op_complement, eval_op_lognot, eval_op_ind)
91 (eval_op_memval, eval_op_preinc, eval_op_predec)
92 (eval_op_postinc, eval_op_postdec, eval_op_type)
93 (eval_binop_assign_modify, eval_op_objc_msgcall)
94 (eval_multi_subscript, logical_and_operation::evaluate)
95 (logical_or_operation::evaluate, array_operation::evaluate)
96 (operation::evaluate_for_cast)
97 (var_msym_value_operation::evaluate_for_cast)
98 (var_value_operation::evaluate_for_cast): Update.
99 * c-lang.c (c_string_operation::evaluate): Update.
100 * c-exp.h (objc_nsstring_operation::evaluate)
101 (objc_selector_operation::evaluate): Update.
102 * ada-lang.c (ada_assign_operation::evaluate)
103 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
104 (ada_atr_size): Update.
105
106 2021-03-08 Tom Tromey <tom@tromey.com>
107
108 * eval.c: Merge "namespace" scopes.
109
110 2021-03-08 Tom Tromey <tom@tromey.com>
111
112 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
113 <release>: Inline.
114 * parse.c (expr_builder::expr_builder, expr_builder::release):
115 Remove.
116
117 2021-03-08 Tom Tromey <tom@tromey.com>
118
119 * parse.c (expression::expression, expression::~expression):
120 Remove.
121 * expression.h (struct expression): Inline constructor. Remove
122 destructor.
123
124 2021-03-08 Tom Tromey <tom@tromey.com>
125
126 * std-operator.def (BINOP_END): Remove.
127 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
128 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
129 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
130 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
131 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
132 BINOP_END.
133
134 2021-03-08 Tom Tromey <tom@tromey.com>
135
136 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
137
138 2021-03-08 Tom Tromey <tom@tromey.com>
139
140 * std-operator.def (OP_EXTENDED0): Remove.
141
142 2021-03-08 Tom Tromey <tom@tromey.com>
143
144 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
145 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
146 Remove.
147
148 2021-03-08 Tom Tromey <tom@tromey.com>
149
150 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
151 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
152
153 2021-03-08 Tom Tromey <tom@tromey.com>
154
155 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
156 * ada-lang.c (ada_binop_minmax): Update.
157 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
158 Use BINOP_MIN and BINOP_MAX.
159
160 2021-03-08 Tom Tromey <tom@tromey.com>
161
162 * value.h (evaluate_subexp_with_coercion): Don't declare.
163 * parse.c (exp_descriptor_standard): Remove.
164 (expr_builder::expr_builder, expr_builder::release): Update.
165 (expression::expression): Remove size_t parameter.
166 (expression::~expression): Simplify.
167 (expression::resize): Remove.
168 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
169 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
170 (write_exp_elt_longcst, write_exp_elt_floatcst)
171 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
172 (write_exp_string_vector, write_exp_bitstring): Remove.
173 * p-lang.h (class pascal_language) <opcode_print_table,
174 op_print_tab>: Remove.
175 * p-lang.c (pascal_language::op_print_tab): Remove.
176 * opencl-lang.c (class opencl_language) <opcode_print_table>:
177 Remove.
178 * objc-lang.c (objc_op_print_tab): Remove.
179 (class objc_language) <opcode_print_table>: Remove.
180 * m2-lang.h (class m2_language) <opcode_print_table,
181 op_print_tab>: Remove.
182 * m2-lang.c (m2_language::op_print_tab): Remove.
183 * language.h (struct language_defn) <post_parser, expression_ops,
184 opcode_print_table>: Remove.
185 * language.c (language_defn::expression_ops)
186 (auto_or_unknown_language::opcode_print_table): Remove.
187 * go-lang.h (class go_language) <opcode_print_table,
188 op_print_tab>: Remove.
189 * go-lang.c (go_language::op_print_tab): Remove.
190 * f-lang.h (class f_language) <opcode_print_table>: Remove
191 <op_print_tab>: Remove.
192 * f-lang.c (f_language::op_print_tab): Remove.
193 * expression.h (union exp_element): Remove.
194 (struct expression): Remove size_t parameter from constructor.
195 <resize>: Remove.
196 <first_opcode>: Update.
197 <nelts, elts>: Remove.
198 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
199 (evaluate_subexp_standard, print_expression, op_string)
200 (dump_raw_expression): Don't declare.
201 * expprint.c (print_expression, print_subexp)
202 (print_subexp_funcall, print_subexp_standard, op_string)
203 (dump_raw_expression, dump_subexp, dump_subexp_body)
204 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
205 (dump_prefix_expression): Update.
206 * eval.c (evaluate_subexp): Remove.
207 (evaluate_expression, evaluate_type): Update.
208 (evaluate_subexpression_type): Remove.
209 (fetch_subexp_value): Remove "pc" parameter. Update.
210 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
211 (evaluate_subexp_standard, evaluate_subexp_for_address)
212 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
213 (evaluate_subexp_for_cast): Remove.
214 (parse_and_eval_type): Update.
215 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
216 * d-lang.c (d_op_print_tab): Remove.
217 (class d_language) <opcode_print_table>: Remove.
218 * c-lang.h (c_op_print_tab): Don't declare.
219 * c-lang.c (c_op_print_tab): Remove.
220 (class c_language, class cplus_language, class asm_language, class
221 minimal_language) <opcode_print_table>: Remove.
222 * breakpoint.c (update_watchpoint, watchpoint_check)
223 (watchpoint_exp_is_const, watch_command_1): Update.
224 * ax-gdb.h (union exp_element): Don't declare.
225 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
226 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
227 (gen_expr_binop_rest): Remove.
228 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
229 * ada-lang.c (ada_op_print_tab): Remove.
230 (class ada_language) <post_parser, opcode_print_table>: Remove.
231
232 2021-03-08 Tom Tromey <tom@tromey.com>
233
234 * go-lang.c (go_language::expression_ops): Don't declare.
235 * go-lang.h (class go_language) <expression_ops>: Remove.
236 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
237 Remove.
238 (class opencl_language) <expression_ops>: Remove.
239 * d-lang.c (class d_language) <expression_ops>: Remove.
240 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
241 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
242 (class c_language, class cplus_language, class asm_language)
243 (class minimal_language) <expression_ops>: Remove.
244
245 2021-03-08 Tom Tromey <tom@tromey.com>
246
247 * ada-lang.c (resolve_subexp, replace_operator_with_call)
248 (evaluate_subexp_type, assign_aggregate)
249 (aggregate_assign_positional, aggregate_assign_from_choices)
250 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
251 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
252 (ada_operator_check, ada_forward_operator_length)
253 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
254 Remove.
255 (post_parser): Update.
256 (class ada_language) <expresssion_ops>: Remove.
257
258 2021-03-08 Tom Tromey <tom@tromey.com>
259
260 * m2-lang.h (class m2_language) <expresssion_ops,
261 exp_descriptor_modula2>: Remove.
262 * m2-lang.c (evaluate_subexp_modula2)
263 (m2_language::exp_descriptor_modula2): Remove.
264
265 2021-03-08 Tom Tromey <tom@tromey.com>
266
267 * f-lang.h (class f_language) <expresssion_ops>: Remove.
268 <exp_descriptor_tab>: Remove.
269 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
270 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
271 (print_subexp_f, dump_subexp_body_f, operator_check_f)
272 (f_language::exp_descriptor_tab, fortran_prepare_argument):
273 Remove.
274
275 2021-03-08 Tom Tromey <tom@tromey.com>
276
277 * rust-lang.h (class rust_language) <expression_ops,
278 exp_descriptor_tab>: Remove.
279 * rust-lang.c (rust_evaluate_funcall): Remove.
280 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
281 EVAL_SKIP.
282 (rust_evaluate_subexp): Remove.
283 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
284 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
285 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
286
287 2021-03-08 Tom Tromey <tom@tromey.com>
288
289 * ada-exp.y: Create operations.
290 (empty_stoken): Remove.
291 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
292 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
293 (components): New global.
294 (push_component, choice_component, pop_component, pop_components):
295 New functions.
296 (associations): New global
297 (push_association, pop_association, pop_associations): New
298 functions.
299 (ada_parse): Update.
300 (write_var_from_sym, write_int): Create operations.
301 (write_exp_op_with_string): Remove.
302 (write_object_renaming, write_selectors, write_ambiguous_var)
303 (write_var_or_type, write_name_assoc): Create operations.
304 * ada-lang.h (ada_index_type): Declare.
305 * ada-lang.c (ada_index_type): No longer static.
306
307 2021-03-08 Tom Tromey <tom@tromey.com>
308
309 * f-exp.y: Create operations.
310 (f_language::parser): Update.
311
312 2021-03-08 Tom Tromey <tom@tromey.com>
313
314 * m2-exp.y: Create operations.
315 (m2_language::parser): Update.
316
317 2021-03-08 Tom Tromey <tom@tromey.com>
318
319 * p-exp.y: Create operations.
320 (pascal_language::parser): Update.
321
322 2021-03-08 Tom Tromey <tom@tromey.com>
323
324 * d-exp.y: Create operations.
325 (d_parse): Update.
326
327 2021-03-08 Tom Tromey <tom@tromey.com>
328
329 * go-exp.y: Create operations.
330 (go_language::parser): Update.
331
332 2021-03-08 Tom Tromey <tom@tromey.com>
333
334 * objc-lang.c (end_msglist): Create operations.
335 * c-exp.y: Change parser to create operations.
336 (write_destructor_name): Remove.
337 (c_parse): Update.
338
339 2021-03-08 Tom Tromey <tom@tromey.com>
340
341 * rust-exp.y: Create operations.
342 (rust_parser::convert_params_to_expression): Change return type.
343 (binop_maker_ftype): New typedef.
344 (maker_map): New global.
345 (rust_parser::convert_ast_to_expression): Change return type.
346 (rust_language::parser): Update.
347 (_initialize_rust_exp): Initialize maker_map.
348
349 2021-03-08 Tom Tromey <tom@tromey.com>
350
351 * stap-probe.c (binop_maker_ftype): New typedef.
352 (stap_maker_map): New global.
353 (stap_make_binop): New function.
354 (stap_parse_register_operand): Return operation_up.
355 (stap_parse_single_operand, stap_parse_argument_conditionally)
356 (stap_parse_argument_1): Likewise.
357 (stap_parse_argument): Create operations.
358 (stap_probe::parse_arguments): Update.
359 (_initialize_stap_probe): Initialize stap_maker_map.
360 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
361 type.
362 * i386-tdep.h (i386_stap_parse_special_token): Change return
363 type.
364 * i386-tdep.c (i386_stap_parse_special_token_triplet)
365 (i386_stap_parse_special_token_three_arg_disp)
366 (i386_stap_parse_special_token): Change return type.
367 * gdbarch.sh (stap_parse_special_token): Change return type.
368 * gdbarch.c: Rebuild.
369 * gdbarch.h: Rebuild.
370 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
371 type.
372 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
373 return type.
374
375 2021-03-08 Tom Tromey <tom@tromey.com>
376
377 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
378 * gdbarch.h: Rebuild.
379 * gdbarch.c: Rebuild.
380 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
381 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
382 return type.
383 (amd64_dtrace_parse_probe_argument): Update.
384
385 2021-03-08 Tom Tromey <tom@tromey.com>
386
387 * parser-defs.h (struct parser_state) <push, push_new,
388 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
389 wrap2>: New methods.
390 <m_operations>: New member.
391 * parse.c (parser_state::push_c_string)
392 (parser_state::push_symbol, parser_state::push_dollar): New
393 methods.
394
395 2021-03-08 Tom Tromey <tom@tromey.com>
396
397 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
398 New member.
399 (struct parser_state) <mark_struct_expression>: New method.
400 * parse.c (parser_state::mark_struct_expression): Update assert.
401 (parser_state::mark_struct_expression): New method.
402 (parser_state::mark_completion_tag): Update assert.
403 (parse_expression_for_completion): Handle expout_last_op.
404
405 2021-03-08 Tom Tromey <tom@tromey.com>
406
407 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
408 now in superclass.
409 * value.h (fetch_subexp_value): Add "op" parameter.
410 * value.c (init_if_undefined_command): Update.
411 * tracepoint.c (validate_actionline, encode_actions_1): Update.
412 * stap-probe.c (stap_probe::compile_to_ax): Update.
413 * printcmd.c (set_command): Update.
414 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
415 Update.
416 * parser-defs.h (struct expr_builder) <set_operation>: New
417 method.
418 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
419 * expression.h (struct expression) <first_opcode>: Update.
420 <op>: New member.
421 * expprint.c (dump_raw_expression, dump_prefix_expression):
422 Update.
423 * expop.h (class var_value_operation) <get_symbol>: New method.
424 (class register_operation) <get_name>: New method.
425 (class equal_operation): No longer a typedef, now a subclass.
426 (class unop_memval_operation) <get_type>: New method.
427 (class assign_operation) <get_lhs>: New method.
428 (class unop_cast_operation) <get_type>: New method.
429 * eval.c (evaluate_expression, evaluate_type)
430 (evaluate_subexpression_type): Update.
431 (fetch_subexp_value): Add "op" parameter.
432 (parse_and_eval_type): Update.
433 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
434 * breakpoint.c (update_watchpoint, watchpoint_check)
435 (watchpoint_exp_is_const, watch_command_1): Update.
436 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
437 Update.
438
439 2021-03-08 Tom Tromey <tom@tromey.com>
440
441 * ada-lang.c (ada_value_binop): Do not use op_string.
442
443 2021-03-08 Tom Tromey <tom@tromey.com>
444
445 * expprint.c (dump_for_expression): New overload.
446 * expop.h (check_objfile, dump_for_expression): Declare new
447 overloads.
448 * ada-lang.c (check_objfile): New overload.
449 (assign_component, ada_aggregate_component::uses_objfile)
450 (ada_aggregate_component::dump, ada_aggregate_component::assign)
451 (ada_aggregate_component::assign_aggregate)
452 (ada_positional_component::uses_objfile)
453 (ada_positional_component::dump, ada_positional_component::assign)
454 (ada_discrete_range_association::uses_objfile)
455 (ada_discrete_range_association::dump)
456 (ada_discrete_range_association::assign)
457 (ada_name_association::uses_objfile, ada_name_association::dump)
458 (ada_name_association::assign)
459 (ada_choices_component::uses_objfile, ada_choices_component::dump)
460 (ada_choices_component::assign)
461 (ada_others_component::uses_objfile, ada_others_component::dump)
462 (ada_others_component::assign, ada_assign_operation::evaluate):
463 New methods.
464 * ada-exp.h (ada_string_operation) <get_name>: New method.
465 (class ada_assign_operation): New.
466 (class ada_component): New.
467 (ada_component_up): New typedef.
468 (class ada_aggregate_operation, class ada_aggregate_component)
469 (class ada_positional_component, class ada_others_component)
470 (class ada_association): New.
471 (ada_association_up): New typedef.
472 (class ada_choices_component)
473 (class ada_discrete_range_association)
474 (class ada_name_association): New.
475
476 2021-03-08 Tom Tromey <tom@tromey.com>
477
478 * ada-lang.c (ada_var_value_operation::resolve)
479 (ada_funcall_operation::resolve)
480 (ada_ternop_slice_operation::resolve): New methods.
481 * ada-exp.h (struct ada_resolvable): New.
482 (class ada_var_value_operation): Derive from ada_resolvable.
483 <get_block, resolve>: New methods.
484 (class ada_funcall_operation): Derive from ada_resolvable.
485 <resolve>: New method.
486 (class ada_ternop_slice_operation): Derive from ada_resolvable.
487 <resolve>: New method.
488
489 2021-03-08 Tom Tromey <tom@tromey.com>
490
491 * ada-lang.c (ada_funcall_operation::evaluate): New method.
492 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
493 method.
494 (class ada_funcall_operation): New.
495
496 2021-03-08 Tom Tromey <tom@tromey.com>
497
498 * ada-lang.c (ada_structop_operation::evaluate): New method.
499 * ada-exp.h (class ada_structop_operation): New.
500
501 2021-03-08 Tom Tromey <tom@tromey.com>
502
503 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
504 * ada-exp.h (class ada_unop_ind_operation): New.
505
506 2021-03-08 Tom Tromey <tom@tromey.com>
507
508 * ada-lang.c (ada_binop_exp): No longer static.
509 * ada-exp.h (ada_binop_exp_operation): New typedef.
510
511 2021-03-08 Tom Tromey <tom@tromey.com>
512
513 * ada-lang.c (ada_val_atr): No longer static.
514 (ada_atr_val_operation::evaluate): New method.
515 * ada-exp.h (class ada_atr_val_operation): New.
516
517 2021-03-08 Tom Tromey <tom@tromey.com>
518
519 * ada-lang.c (ada_pos_atr): No longer static.
520 * ada-exp.h (ada_pos_operation): New typedef.
521
522 2021-03-08 Tom Tromey <tom@tromey.com>
523
524 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
525 parameters.
526 (ada_evaluate_subexp): Use it.
527
528 2021-03-08 Tom Tromey <tom@tromey.com>
529
530 * ada-lang.c (ada_binop_minmax): No longer static.
531 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
532 New typedefs.
533
534 2021-03-08 Tom Tromey <tom@tromey.com>
535
536 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
537 New method.
538 * ada-exp.h (class ada_var_msym_value_operation): New.
539
540 2021-03-08 Tom Tromey <tom@tromey.com>
541
542 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
543 (ada_var_value_operation::evaluate): New methods.
544 * ada-exp.h (class ada_var_value_operation): New.
545
546 2021-03-08 Tom Tromey <tom@tromey.com>
547
548 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
549 * ada-exp.h (class ada_unop_atr_operation): New.
550
551 2021-03-08 Tom Tromey <tom@tromey.com>
552
553 * ada-lang.c (ada_binop_in_bounds): No longer static.
554 * ada-exp.h (class ada_binop_in_bounds_operation): New.
555
556 2021-03-08 Tom Tromey <tom@tromey.com>
557
558 * ada-lang.c (ada_ternop_slice): No longer static.
559 * ada-exp.h (class ada_ternop_slice_operation): New.
560
561 2021-03-08 Tom Tromey <tom@tromey.com>
562
563 * ada-exp.h (ada_bitwise_operation): New template class.
564 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
565 (ada_bitwise_xor_operation): New typedefs.
566
567 2021-03-08 Tom Tromey <tom@tromey.com>
568
569 * ada-lang.c (ada_equal_binop): No longer static.
570 * ada-exp.h (class ada_binop_equal_operation): New.
571
572 2021-03-08 Tom Tromey <tom@tromey.com>
573
574 * ada-lang.c (ada_mult_binop): No longer static.
575 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
576 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
577
578 2021-03-08 Tom Tromey <tom@tromey.com>
579
580 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
581 * ada-exp.h (class ada_binop_addsub_operation): New.
582
583 2021-03-08 Tom Tromey <tom@tromey.com>
584
585 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
586 (ada_resolve_variable): Declare.
587 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
588 (ada_resolve_variable): New functions.
589 (resolve_subexp): Update.
590
591 2021-03-08 Tom Tromey <tom@tromey.com>
592
593 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
594 method.
595 * c-exp.h (class opencl_ternop_cond_operation): New.
596
597 2021-03-08 Tom Tromey <tom@tromey.com>
598
599 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
600 method.
601 * c-exp.h (class opencl_logical_binop_operation): New.
602
603 2021-03-08 Tom Tromey <tom@tromey.com>
604
605 * opencl-lang.c (opencl_structop_operation::evaluate): New
606 method.
607 * c-exp.h (class opencl_structop_operation): New.
608
609 2021-03-08 Tom Tromey <tom@tromey.com>
610
611 * opencl-lang.c (opencl_logical_not): No longer static. Change
612 parameters.
613 (evaluate_subexp_opencl): Update.
614 * c-exp.h (opencl_notequal_operation): New typedef.
615
616 2021-03-08 Tom Tromey <tom@tromey.com>
617
618 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
619 static. Change parameters.
620 (eval_opencl_assign): No longer static. Add "op" parameter.
621 (evaluate_subexp_opencl): Update.
622 * c-exp.h (opencl_binop_operation): New template class.
623 (opencl_assign_operation, opencl_equal_operation)
624 (opencl_notequal_operation, opencl_less_operation)
625 (opencl_gtr_operation, opencl_geq_operation)
626 (opencl_leq_operation): New typedefs.
627
628 2021-03-08 Tom Tromey <tom@tromey.com>
629
630 * opencl-lang.c (opencl_value_cast): No longer static.
631 * c-exp.h (opencl_cast_type_operation): New typedef.
632
633 2021-03-08 Tom Tromey <tom@tromey.com>
634
635 * f-exp.h (eval_op_f_allocated): Declare.
636 (fortran_allocated_operation): New typedef.
637 * f-lang.c (eval_op_f_allocated): No longer static.
638
639 2021-03-08 Tom Tromey <tom@tromey.com>
640
641 * f-lang.c (eval_op_f_associated): New functions.
642 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
643 typedefs.
644
645 2021-03-08 Tom Tromey <tom@tromey.com>
646
647 * f-lang.c (fortran_bound_1arg::evaluate)
648 (fortran_bound_2arg::evaluate): New methods.
649 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
650 New.
651
652 2021-03-08 Tom Tromey <tom@tromey.com>
653
654 * expop.h (class unop_addr_operation) <get_expression>: New
655 method.
656 * f-lang.c (fortran_undetermined::value_subarray)
657 (fortran_undetermined::evaluate): New methods.
658 (fortran_prepare_argument): New overload.
659 * f-exp.h (class fortran_range_operation)
660 (class fortran_undetermined): New classes.
661
662 2021-03-08 Tom Tromey <tom@tromey.com>
663
664 * rust-lang.c (rust_structop::evaluate_funcall): New method.
665 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
666 method.
667
668 2021-03-08 Tom Tromey <tom@tromey.com>
669
670 * expression.h (class operation) <evaluate_funcall>: New methods.
671 * expop.h (class scope_operation) <evaluate_funcall>: New method.
672 (class var_value_operation) <evaluate_funcall>: New method.
673 (class structop_base_operation) <evaluate_funcall>: New method.
674 (class var_msym_value_operation) <evaluate_funcall>: New method.
675 (class structop_member_base): New class.
676 (class structop_member_operation): Derive from
677 structop_member_base.
678 (class structop_mptr_operation): Derive from
679 structop_member_base.
680 (class funcall_operation): New class.
681 * eval.c (operation::evaluate_funcall)
682 (var_value_operation::evaluate_funcall)
683 (scope_operation::evaluate_funcall)
684 (structop_member_base::evaluate_funcall)
685 (structop_base_operation::evaluate_funcall): New methods.
686
687 2021-03-08 Tom Tromey <tom@tromey.com>
688
689 * expop.h (class array_operation): New.
690 * eval.c (array_operation::evaluate_struct_tuple)
691 (array_operation::evaluate): New methods.
692
693 2021-03-08 Tom Tromey <tom@tromey.com>
694
695 * expop.h (class adl_func_operation): New.
696 * eval.c (adl_func_operation::evaluate): New method.
697
698 2021-03-08 Tom Tromey <tom@tromey.com>
699
700 * ada-lang.c (ada_unop_in_range): No longer static.
701 * ada-exp.h (class ada_unop_range_operation): New.
702
703 2021-03-08 Tom Tromey <tom@tromey.com>
704
705 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
706 No longer static.
707 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
708 (ada_atr_size_operation, ada_abs_operation): New typedefs.
709
710 2021-03-08 Tom Tromey <tom@tromey.com>
711
712 * expop.h (class logical_and_operation)
713 (class logical_or_operation): New.
714 * eval.c (logical_and_operation::evaluate)
715 (logical_or_operation::evaluate): New methods.
716 * ax-gdb.c (logical_and_operation::do_generate_ax)
717 (logical_or_operation::do_generate_ax): New methods.
718
719 2021-03-08 Tom Tromey <tom@tromey.com>
720
721 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
722 static.
723 * m2-exp.h: New file.
724
725 2021-03-08 Tom Tromey <tom@tromey.com>
726
727 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
728 * rust-exp.h (class rust_aggregate_operation): New.
729
730 2021-03-08 Tom Tromey <tom@tromey.com>
731
732 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
733 No longer static.
734 * rust-exp.h (class rust_struct_anon): New.
735 (class rust_structop): New.
736
737 2021-03-08 Tom Tromey <tom@tromey.com>
738
739 * rust-lang.c (rust_range): No longer static.
740 * rust-exp.h (class rust_range_operation): New.
741
742 2021-03-08 Tom Tromey <tom@tromey.com>
743
744 * rust-lang.c (rust_subscript): No longer static.
745 * rust-exp.h (class rust_subscript_operation): New.
746
747 2021-03-08 Tom Tromey <tom@tromey.com>
748
749 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
750 parameter.
751 (rust_evaluate_subexp): Update.
752 * rust-exp.h (class rust_unop_ind_operation): New.
753
754 2021-03-08 Tom Tromey <tom@tromey.com>
755
756 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
757 longer static. Add "opcode" parameter.
758 (rust_evaluate_subexp): Update.
759 * rust-exp.h: New file.
760
761 2021-03-08 Tom Tromey <tom@tromey.com>
762
763 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
764 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
765 (eval_op_f_kind): No longer static. Add "opcode" parameter.
766 (evaluate_subexp_f): Update.
767 * f-exp.h: New file.
768
769 2021-03-08 Tom Tromey <tom@tromey.com>
770
771 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
772 * ada-exp.h (class ada_ternop_range_operation): New.
773
774 2021-03-08 Tom Tromey <tom@tromey.com>
775
776 * ada-lang.c (ada_qual_operation::evaluate): New method.
777 * ada-exp.h (class ada_qual_operation): New.
778
779 2021-03-08 Tom Tromey <tom@tromey.com>
780
781 * ada-lang.c (ada_string_operation::evaluate): New method.
782 * ada-exp.h (class ada_string_operation): New.
783
784 2021-03-08 Tom Tromey <tom@tromey.com>
785
786 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
787 * ada-exp.h: New file.
788
789 2021-03-08 Tom Tromey <tom@tromey.com>
790
791 * expop.h (class multi_subscript_operation): New.
792 * eval.c (multi_subscript_operation::evaluate): New method.
793
794 2021-03-08 Tom Tromey <tom@tromey.com>
795
796 * eval.c (objc_msgcall_operation::evaluate): New method.
797 * c-exp.h (class objc_msgcall_operation): New.
798
799 2021-03-08 Tom Tromey <tom@tromey.com>
800
801 * expop.h (class var_value_operation): New.
802 * eval.c (var_value_operation::evaluate)
803 (var_value_operation::evaluate_for_address)
804 (var_value_operation::evaluate_with_coercion)
805 (var_value_operation::evaluate_for_sizeof)
806 (var_value_operation::evaluate_for_cast): New methods.
807 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
808
809 2021-03-08 Tom Tromey <tom@tromey.com>
810
811 * expop.h (cxx_cast_ftype): New typedef.
812 (cxx_cast_operation): New template.
813 (dynamic_cast_operation, reinterpret_cast_operation): New
814 typedefs.
815
816 2021-03-08 Tom Tromey <tom@tromey.com>
817
818 * expop.h (class unop_cast_type_operation): New.
819 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
820 method.
821
822 2021-03-08 Tom Tromey <tom@tromey.com>
823
824 * expop.h (class unop_cast_operation): New.
825 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
826
827 2021-03-08 Tom Tromey <tom@tromey.com>
828
829 * expop.h (class assign_modify_operation): New.
830 * eval.c (eval_binop_assign_modify): No longer static.
831 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
832
833 2021-03-08 Tom Tromey <tom@tromey.com>
834
835 * expop.h (class assign_operation): New.
836 * ax-gdb.c (assign_operation::do_generate_ax): New method.
837
838 2021-03-08 Tom Tromey <tom@tromey.com>
839
840 * expop.h (class type_instance_operation): New.
841 * eval.c (type_instance_operation::evaluate): New method.
842
843 2021-03-08 Tom Tromey <tom@tromey.com>
844
845 * expop.h (class op_this_operation): New.
846 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
847
848 2021-03-08 Tom Tromey <tom@tromey.com>
849
850 * expop.h (class unop_memval_operation)
851 (class unop_memval_type_operation): New.
852 * eval.c (eval_op_memval): No longer static.
853 (unop_memval_operation::evaluate_for_address)
854 (unop_memval_type_operation::evaluate_for_address)
855 (unop_memval_operation::evaluate_for_sizeof)
856 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
857 * ax-gdb.c (unop_memval_operation::do_generate_ax)
858 (unop_memval_type_operation::do_generate_ax): New methods.
859
860 2021-03-08 Tom Tromey <tom@tromey.com>
861
862 * expop.h (class unop_alignof_operation): New.
863 * eval.c (eval_op_alignof): No longer static.
864
865 2021-03-08 Tom Tromey <tom@tromey.com>
866
867 * expop.h (class unop_sizeof_operation): New.
868 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
869
870 2021-03-08 Tom Tromey <tom@tromey.com>
871
872 * expop.h (class unop_addr_operation): New.
873 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
874
875 2021-03-08 Tom Tromey <tom@tromey.com>
876
877 * expop.h (class typeid_operation): New.
878
879 2021-03-08 Tom Tromey <tom@tromey.com>
880
881 * expop.h (class decltype_operation): New.
882
883 2021-03-08 Tom Tromey <tom@tromey.com>
884
885 * expop.h (class typeof_operation): New.
886
887 2021-03-08 Tom Tromey <tom@tromey.com>
888
889 * expop.h (class type_operation): New.
890 * eval.c (eval_op_type): No longer static.
891
892 2021-03-08 Tom Tromey <tom@tromey.com>
893
894 * expop.h (class unop_ind_base_operation)
895 (class unop_ind_operation): New.
896 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
897 (unop_ind_base_operation::evaluate_for_address)
898 (unop_ind_base_operation::evaluate_for_sizeof): New method.
899 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
900
901 2021-03-08 Tom Tromey <tom@tromey.com>
902
903 * expop.h (unop_incr_operation): New template.
904 (preinc_operation, predec_operation, postinc_operation)
905 (postdec_operation): New typedefs.
906 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
907 (eval_op_postdec): No longer static.
908
909 2021-03-08 Tom Tromey <tom@tromey.com>
910
911 * expop.h (unary_ftype): New typedef.
912 (unop_operation, usual_ax_binop_operation): New templates.
913 (unary_plus_operation, unary_neg_operation)
914 (unary_complement_operation, unary_logical_not_operation): New
915 typedefs.
916 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
917 (eval_op_lognot): No longer static.
918 * ax-gdb.c (gen_expr_unop): New function.
919
920 2021-03-08 Tom Tromey <tom@tromey.com>
921
922 * ax-gdb.c (comma_operation::do_generate_ax): New method.
923
924 2021-03-08 Tom Tromey <tom@tromey.com>
925
926 * expop.h (class repeat_operation): New.
927 * eval.c (eval_op_repeat): No longer static. Remove "op"
928 parameter.
929 (evaluate_subexp_standard): Update.
930 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
931
932 2021-03-08 Tom Tromey <tom@tromey.com>
933
934 * expop.h (class comparison_operation): New.
935 (equal_operation, notequal_operation, less_operation)
936 (gtr_operation, geq_operation, leq_operation): New typedefs.
937 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
938 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
939
940 2021-03-08 Tom Tromey <tom@tromey.com>
941
942 * expop.h (class subscript_operation): New.
943 * eval.c (eval_op_subscript): No longer static.
944
945 2021-03-08 Tom Tromey <tom@tromey.com>
946
947 * expop.h (class binop_operation, class usual_ax_binop_operation):
948 New.
949 (exp_operation, intdiv_operation, mod_operation, mul_operation)
950 (div_operation, rem_operation, lsh_operation, rsh_operation)
951 (bitwise_and_operation, bitwise_ior_operation)
952 (bitwise_xor_operation): New typedefs.
953 * eval.c (eval_op_binary): No longer static.
954
955 2021-03-08 Tom Tromey <tom@tromey.com>
956
957 * expop.h (class sub_operation): New.
958 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
959 (evaluate_subexp_standard): Update.
960
961 2021-03-08 Tom Tromey <tom@tromey.com>
962
963 * expop.h (class add_operation): New.
964 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
965 (evaluate_subexp_standard): Update.
966
967 2021-03-08 Tom Tromey <tom@tromey.com>
968
969 * expop.h (class concat_operation): New.
970 * eval.c (eval_op_concat): No longer static. Remove "op"
971 parameter.
972 (evaluate_subexp_standard): Update.
973
974 2021-03-08 Tom Tromey <tom@tromey.com>
975
976 * expop.h (class structop_member_operation)
977 (class structop_mptr_operation): New.
978 * eval.c (eval_op_member): No longer static.
979
980 2021-03-08 Tom Tromey <tom@tromey.com>
981
982 * expop.h (class structop_ptr_operation): New.
983 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
984 parameter.
985
986 2021-03-08 Tom Tromey <tom@tromey.com>
987
988 * expop.h (class structop_base_operation)
989 (class structop_operation): New.
990 * eval.c (eval_op_structop_struct): No longer static.
991
992 2021-03-08 Tom Tromey <tom@tromey.com>
993
994 * expop.h (class complex_operation): New.
995
996 2021-03-08 Tom Tromey <tom@tromey.com>
997
998 * eval.c (eval_op_objc_selector): No longer static.
999 * c-exp.h (class objc_selector_operation): New.
1000
1001 2021-03-08 Tom Tromey <tom@tromey.com>
1002
1003 * eval.c: Include c-exp.h.
1004 * c-exp.h (class objc_nsstring_operation): New.
1005
1006 2021-03-08 Tom Tromey <tom@tromey.com>
1007
1008 * c-lang.c (c_string_operation::evaluate): New method.
1009 * c-exp.h: New file.
1010
1011 2021-03-08 Tom Tromey <tom@tromey.com>
1012
1013 * expop.h (class ternop_cond_operation): New.
1014 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1015
1016 2021-03-08 Tom Tromey <tom@tromey.com>
1017
1018 * expop.h (class ternop_slice_operation): New.
1019 * eval.c (eval_op_ternop): No longer static.
1020
1021 2021-03-08 Tom Tromey <tom@tromey.com>
1022
1023 * expop.h (class string_operation): New.
1024 * eval.c (eval_op_string): No longer static.
1025
1026 2021-03-08 Tom Tromey <tom@tromey.com>
1027
1028 * expop.h (class internalvar_operation): New.
1029 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1030
1031 2021-03-08 Tom Tromey <tom@tromey.com>
1032
1033 * expop.h (class bool_operation): New.
1034
1035 2021-03-08 Tom Tromey <tom@tromey.com>
1036
1037 * expop.h (class register_operation): New.
1038 * eval.c (eval_op_register): No longer static.
1039 * ax-gdb.c (register_operation::do_generate_ax): New method.
1040
1041 2021-03-08 Tom Tromey <tom@tromey.com>
1042
1043 * expop.h (class last_operation): New.
1044
1045 2021-03-08 Tom Tromey <tom@tromey.com>
1046
1047 * expop.h (class func_static_var_operation): New.
1048 * eval.c (eval_op_func_static_var): No longer static.
1049
1050 2021-03-08 Tom Tromey <tom@tromey.com>
1051
1052 * expop.h (class var_entry_value_operation): New.
1053 * eval.c (eval_op_var_entry_value): No longer static.
1054
1055 2021-03-08 Tom Tromey <tom@tromey.com>
1056
1057 * expression.h (class operation) <set_outermost>: New method.
1058 * expop.h (class var_msym_value_operation): New.
1059 * eval.c (eval_op_var_msym_value): No longer static.
1060 (var_msym_value_operation::evaluate_for_address)
1061 (var_msym_value_operation::evaluate_for_sizeof)
1062 (var_msym_value_operation::evaluate_for_cast): New methods.
1063 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1064 method.
1065
1066 2021-03-08 Tom Tromey <tom@tromey.com>
1067
1068 * expop.h (class long_const_operation): New.
1069 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1070
1071 2021-03-08 Tom Tromey <tom@tromey.com>
1072
1073 * expop.h (class scope_operation): New.
1074 * eval.c (eval_op_scope): No longer static.
1075 (scope_operation::evaluate_for_address): New method.
1076 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1077
1078 2021-03-08 Tom Tromey <tom@tromey.com>
1079
1080 * expprint.c (float_const_operation::dump): New method.
1081 * expop.h (float_data): New typedef.
1082 (class float_const_operation): New.
1083
1084 2021-03-08 Tom Tromey <tom@tromey.com>
1085
1086 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1087 * ax-gdb.c (gen_expr_binop): New function.
1088 (gen_expr_structop): Likewise.
1089
1090 2021-03-08 Tom Tromey <tom@tromey.com>
1091
1092 * expprint.c (expr::dump_for_expression): New functions.
1093 * expop.h (dump_for_expression): New overloads.
1094 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1095 Update.
1096
1097 2021-03-08 Tom Tromey <tom@tromey.com>
1098
1099 * expression.h (expr::operation): New class.
1100 (expr::make_operation): New function.
1101 (expr::operation_up): New typedef.
1102 * expop.h: New file.
1103 * eval.c (operation::evaluate_for_cast)
1104 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1105 New methods.
1106 * ax-gdb.c (operation::generate_ax): New method.
1107
1108 2021-03-08 Tom Tromey <tom@tromey.com>
1109
1110 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1111 (gen_expr_binop_rest): New overload.
1112
1113 2021-03-08 Tom Tromey <tom@tromey.com>
1114
1115 * eval.c (eval_multi_subscript): New function.
1116 (evaluate_subexp_standard): Use it.
1117
1118 2021-03-08 Tom Tromey <tom@tromey.com>
1119
1120 * ada-lang.c (ada_binop_exp): New function.
1121 (ada_evaluate_subexp): Use it.
1122
1123 2021-03-08 Tom Tromey <tom@tromey.com>
1124
1125 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1126 parameters.
1127 (ada_evaluate_subexp): Use it.
1128
1129 2021-03-08 Tom Tromey <tom@tromey.com>
1130
1131 * ada-lang.c (ada_binop_minmax): New function.
1132 (ada_evaluate_subexp): Use it.
1133
1134 2021-03-08 Tom Tromey <tom@tromey.com>
1135
1136 * ada-lang.c (ada_unop_atr): New function.
1137 (ada_evaluate_subexp): Use it.
1138
1139 2021-03-08 Tom Tromey <tom@tromey.com>
1140
1141 * ada-lang.c (ada_binop_in_bounds): New function.
1142 (ada_evaluate_subexp): Use it.
1143
1144 2021-03-08 Tom Tromey <tom@tromey.com>
1145
1146 * ada-lang.c (ada_ternop_slice): New function.
1147 (ada_evaluate_subexp): Use it.
1148
1149 2021-03-08 Tom Tromey <tom@tromey.com>
1150
1151 * ada-lang.c (ada_equal_binop): New function.
1152 (ada_evaluate_subexp): Use it.
1153
1154 2021-03-08 Tom Tromey <tom@tromey.com>
1155
1156 * ada-lang.c (ada_mult_binop): New function.
1157 (ada_evaluate_subexp): Use it.
1158
1159 2021-03-08 Tom Tromey <tom@tromey.com>
1160
1161 * ada-lang.c (ada_abs): New function.
1162 (ada_evaluate_subexp): Use it.
1163
1164 2021-03-08 Tom Tromey <tom@tromey.com>
1165
1166 * ada-lang.c (ada_atr_size): New function.
1167 (ada_evaluate_subexp): Use it.
1168
1169 2021-03-08 Tom Tromey <tom@tromey.com>
1170
1171 * ada-lang.c (ada_atr_tag): New function.
1172 (ada_evaluate_subexp): Use it.
1173
1174 2021-03-08 Tom Tromey <tom@tromey.com>
1175
1176 * ada-lang.c (ada_unop_in_range): New function.
1177 (ada_evaluate_subexp): Use it.
1178
1179 2021-03-08 Tom Tromey <tom@tromey.com>
1180
1181 * ada-lang.c (ada_unop_neg): New function.
1182 (ada_evaluate_subexp): Use it.
1183
1184 2021-03-08 Tom Tromey <tom@tromey.com>
1185
1186 * ada-lang.c (eval_ternop_in_range): New function.
1187 (ada_evaluate_subexp): Use it.
1188
1189 2021-03-08 Tom Tromey <tom@tromey.com>
1190
1191 * opencl-lang.c (eval_opencl_assign): New function.
1192 (evaluate_subexp_opencl): Use it.
1193
1194 2021-03-08 Tom Tromey <tom@tromey.com>
1195
1196 * eval.c (eval_op_objc_msgcall): New function.
1197 (evaluate_subexp_standard): Use it.
1198
1199 2021-03-08 Tom Tromey <tom@tromey.com>
1200
1201 * eval.c (eval_binop_assign_modify): New function.
1202 (evaluate_subexp_standard): Use it.
1203
1204 2021-03-08 Tom Tromey <tom@tromey.com>
1205
1206 * m2-lang.c (eval_op_m2_subscript): New function.
1207 (evaluate_subexp_modula2): Use it.
1208
1209 2021-03-08 Tom Tromey <tom@tromey.com>
1210
1211 * m2-lang.c (eval_op_m2_high): New function.
1212 (evaluate_subexp_modula2): Use it.
1213
1214 2021-03-08 Tom Tromey <tom@tromey.com>
1215
1216 * eval.c (evaluate_subexp_for_address_base): New function.
1217 (evaluate_subexp_for_address): Use it.
1218 (evaluate_subexp_for_sizeof_base): New function.
1219 (evaluate_subexp_for_sizeof): Use it.
1220
1221 2021-03-08 Tom Tromey <tom@tromey.com>
1222
1223 * rust-lang.c (eval_op_rust_structop): New function.
1224 (rust_evaluate_subexp): Use it.
1225
1226 2021-03-08 Tom Tromey <tom@tromey.com>
1227
1228 * rust-lang.c (eval_op_rust_struct_anon): New function.
1229 (rust_evaluate_subexp): Use it.
1230
1231 2021-03-08 Tom Tromey <tom@tromey.com>
1232
1233 * rust-lang.c (eval_op_rust_array): New function.
1234 (rust_evaluate_subexp): Use it.
1235
1236 2021-03-08 Tom Tromey <tom@tromey.com>
1237
1238 * rust-lang.c (eval_op_rust_complement): New function.
1239 (rust_evaluate_subexp): Use it.
1240
1241 2021-03-08 Tom Tromey <tom@tromey.com>
1242
1243 * rust-lang.c (eval_op_rust_ind): New function.
1244 (rust_evaluate_subexp): Use it.
1245
1246 2021-03-08 Tom Tromey <tom@tromey.com>
1247
1248 * rust-lang.c (rust_subscript): Change parameters.
1249 (rust_evaluate_subexp): Update.
1250
1251 2021-03-08 Tom Tromey <tom@tromey.com>
1252
1253 * rust-lang.c (rust_range): Change parameters.
1254 (rust_evaluate_subexp): Update.
1255
1256 2021-03-08 Tom Tromey <tom@tromey.com>
1257
1258 * f-lang.c (eval_op_f_allocated): New function.
1259 (evaluate_subexp_f): Use it.
1260
1261 2021-03-08 Tom Tromey <tom@tromey.com>
1262
1263 * f-lang.c (fortran_require_array): New function.
1264 (evaluate_subexp_f): Use it.
1265
1266 2021-03-08 Tom Tromey <tom@tromey.com>
1267
1268 * f-lang.c (eval_op_f_kind): New function.
1269 (evaluate_subexp_f): Use it.
1270
1271 2021-03-08 Tom Tromey <tom@tromey.com>
1272
1273 * f-lang.c (eval_op_f_cmplx): New function.
1274 (evaluate_subexp_f): Use it.
1275
1276 2021-03-08 Tom Tromey <tom@tromey.com>
1277
1278 * f-lang.c (eval_op_f_modulo): New function.
1279 (evaluate_subexp_f): Use it.
1280
1281 2021-03-08 Tom Tromey <tom@tromey.com>
1282
1283 * f-lang.c (eval_op_f_floor): New function.
1284 (evaluate_subexp_f): Use it.
1285
1286 2021-03-08 Tom Tromey <tom@tromey.com>
1287
1288 * f-lang.c (eval_op_f_ceil): New function.
1289 (evaluate_subexp_f): Use it.
1290
1291 2021-03-08 Tom Tromey <tom@tromey.com>
1292
1293 * f-lang.c (eval_op_f_mod): New function.
1294 (evaluate_subexp_f): Use it.
1295
1296 2021-03-08 Tom Tromey <tom@tromey.com>
1297
1298 * f-lang.c (eval_op_f_abs): New function.
1299 (evaluate_subexp_f): Use it.
1300
1301 2021-03-08 Tom Tromey <tom@tromey.com>
1302
1303 * eval.c (eval_op_type): New function.
1304 (evaluate_subexp_standard): Use it.
1305
1306 2021-03-08 Tom Tromey <tom@tromey.com>
1307
1308 * eval.c (eval_op_postdec): New function.
1309 (evaluate_subexp_standard): Use it.
1310
1311 2021-03-08 Tom Tromey <tom@tromey.com>
1312
1313 * eval.c (eval_op_postinc): New function.
1314 (evaluate_subexp_standard): Use it.
1315
1316 2021-03-08 Tom Tromey <tom@tromey.com>
1317
1318 * eval.c (eval_op_predec): New file.
1319 (evaluate_subexp_standard): Use it.
1320
1321 2021-03-08 Tom Tromey <tom@tromey.com>
1322
1323 * eval.c (eval_op_preinc): New function.
1324 (evaluate_subexp_standard): Use it.
1325
1326 2021-03-08 Tom Tromey <tom@tromey.com>
1327
1328 * eval.c (eval_op_memval): New function.
1329 (evaluate_subexp_standard): Use it.
1330
1331 2021-03-08 Tom Tromey <tom@tromey.com>
1332
1333 * eval.c (eval_op_alignof): New function.
1334 (evaluate_subexp_standard): Use it.
1335
1336 2021-03-08 Tom Tromey <tom@tromey.com>
1337
1338 * eval.c (eval_op_ind): New function.
1339 (evaluate_subexp_standard): Use it.
1340
1341 2021-03-08 Tom Tromey <tom@tromey.com>
1342
1343 * eval.c (eval_op_lognot): New function.
1344 (evaluate_subexp_standard): Use it.
1345
1346 2021-03-08 Tom Tromey <tom@tromey.com>
1347
1348 * eval.c (eval_op_complement): New function.
1349 (evaluate_subexp_standard): Use it.
1350
1351 2021-03-08 Tom Tromey <tom@tromey.com>
1352
1353 * eval.c (eval_op_neg): New function.
1354 (evaluate_subexp_standard): Use it.
1355
1356 2021-03-08 Tom Tromey <tom@tromey.com>
1357
1358 * eval.c (eval_op_plus): New function.
1359 (evaluate_subexp_standard): Use it.
1360
1361 2021-03-08 Tom Tromey <tom@tromey.com>
1362
1363 * eval.c (eval_op_repeat): New function.
1364 (evaluate_subexp_standard): Use it.
1365
1366 2021-03-08 Tom Tromey <tom@tromey.com>
1367
1368 * eval.c (eval_op_leq): New function.
1369 (evaluate_subexp_standard): Use it.
1370
1371 2021-03-08 Tom Tromey <tom@tromey.com>
1372
1373 * eval.c (eval_op_geq): New function.
1374 (evaluate_subexp_standard): Use it.
1375
1376 2021-03-08 Tom Tromey <tom@tromey.com>
1377
1378 * eval.c (eval_op_gtr): New function.
1379 (evaluate_subexp_standard): Use it.
1380
1381 2021-03-08 Tom Tromey <tom@tromey.com>
1382
1383 * eval.c (eval_op_less): New function.
1384 (evaluate_subexp_standard): Use it.
1385
1386 2021-03-08 Tom Tromey <tom@tromey.com>
1387
1388 * eval.c (eval_op_notequal): New function.
1389 (evaluate_subexp_standard): Use it.
1390
1391 2021-03-08 Tom Tromey <tom@tromey.com>
1392
1393 * eval.c (eval_op_equal): New function.
1394 (evaluate_subexp_standard): Use it.
1395
1396 2021-03-08 Tom Tromey <tom@tromey.com>
1397
1398 * eval.c (eval_op_subscript): New function.
1399 (evaluate_subexp_standard): Use it.
1400
1401 2021-03-08 Tom Tromey <tom@tromey.com>
1402
1403 * eval.c (eval_op_binary): New function.
1404 (evaluate_subexp_standard): Use it.
1405
1406 2021-03-08 Tom Tromey <tom@tromey.com>
1407
1408 * eval.c (eval_op_sub): New function.
1409 (evaluate_subexp_standard): Use it.
1410
1411 2021-03-08 Tom Tromey <tom@tromey.com>
1412
1413 * eval.c (eval_op_add): New function.
1414 (evaluate_subexp_standard): Use it.
1415
1416 2021-03-08 Tom Tromey <tom@tromey.com>
1417
1418 * eval.c (eval_op_member): New function.
1419 (evaluate_subexp_standard): Use it.
1420
1421 2021-03-08 Tom Tromey <tom@tromey.com>
1422
1423 * eval.c (eval_op_structop_ptr): New function.
1424 (evaluate_subexp_standard): Use it.
1425
1426 2021-03-08 Tom Tromey <tom@tromey.com>
1427
1428 * eval.c (eval_op_structop_struct): New function.
1429 (evaluate_subexp_standard): Use it.
1430
1431 2021-03-08 Tom Tromey <tom@tromey.com>
1432
1433 * eval.c (eval_op_ternop): New function.
1434 (evaluate_subexp_standard): Use it.
1435
1436 2021-03-08 Tom Tromey <tom@tromey.com>
1437
1438 * eval.c (eval_op_concat): New function.
1439 (evaluate_subexp_standard): Use it.
1440
1441 2021-03-08 Tom Tromey <tom@tromey.com>
1442
1443 * eval.c (eval_op_objc_selector): New function.
1444 (evaluate_subexp_standard): Use it.
1445
1446 2021-03-08 Tom Tromey <tom@tromey.com>
1447
1448 * eval.c (eval_op_string): New function.
1449 (evaluate_subexp_standard): Use it.
1450
1451 2021-03-08 Tom Tromey <tom@tromey.com>
1452
1453 * eval.c (eval_op_register): New function.
1454 (evaluate_subexp_standard): Use it.
1455
1456 2021-03-08 Tom Tromey <tom@tromey.com>
1457
1458 * eval.c (eval_op_func_static_var): New function.
1459 (evaluate_subexp_standard): Use it.
1460
1461 2021-03-08 Tom Tromey <tom@tromey.com>
1462
1463 * eval.c (eval_op_var_msym_value): New function.
1464 (evaluate_subexp_standard): Use it.
1465
1466 2021-03-08 Tom Tromey <tom@tromey.com>
1467
1468 * eval.c (eval_op_var_entry_value): New function.
1469 (evaluate_subexp_standard): Use it.
1470
1471 2021-03-08 Tom Tromey <tom@tromey.com>
1472
1473 * eval.c (eval_op_scope): New function.
1474 (evaluate_subexp_standard): Use it.
1475
1476 2021-03-06 Chernov Sergey <klen_s@mail.ru>
1477
1478 PR gdb/27528:
1479 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1480
1481 2021-03-06 Tom Tromey <tom@tromey.com>
1482
1483 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1484 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1485 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1486 (locate_dwz_sections, dwz_search_other_debugdirs)
1487 (dwarf2_get_dwz_file): Move to dwz.c.
1488 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1489 read.h.
1490 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1491 (dwarf2_get_dwz_file): Move from read.c.
1492
1493 2021-03-06 Tom Tromey <tom@tromey.com>
1494
1495 * debuginfod-support.h: Include scoped_fd.h.
1496
1497 2021-03-06 Tom Tromey <tom@tromey.com>
1498
1499 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1500 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1501 (get_abbrev_section_for_cu, read_attribute_value)
1502 (get_debug_line_section): Update.
1503 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1504
1505 2021-03-06 Tom Tromey <tom@tromey.com>
1506
1507 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1508 method.
1509 * dwarf2/read.c (section_is_p): Remove.
1510 (dwarf2_per_bfd::locate_sections)
1511 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1512 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1513 (dwarf2_locate_common_dwp_sections)
1514 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1515 Update.
1516
1517 2021-03-06 Tom Tromey <tom@tromey.com>
1518
1519 * xcoffread.c: Include sect-names.h.
1520 * symfile.h (struct dwarf2_section_names, struct
1521 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1522 * dwarf2/sect-names.h: New file, from symfile.h.
1523 * dwarf2/read.c: Include sect-names.h.
1524
1525 2021-03-06 Tom Tromey <tom@tromey.com>
1526
1527 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1528 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1529 (abbrev_table::read): Update.
1530 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1531 (struct abbrev_info): Reformat.
1532 <attrs>: Now an array.
1533 (struct abbrev_table) <alloc_abbrev>: Remove.
1534
1535 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1536
1537 * ctfread.c (ctf_psymtab_add_enums): New function.
1538 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1539
1540 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1541
1542 * ctfread.c (read_func_kind_type): Set up function arguments.
1543
1544 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1545 Andrew Burgess <andrew.burgess@embecosm.com>
1546
1547 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1548 includes.
1549 (riscv_csrset): New static global.
1550 (riscv_update_csrmap): New function.
1551 (riscv_iterate_over_regset_sections): Process CSRs.
1552
1553 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1554
1555 * riscv-tdep.c (riscv_feature_name_csr): Define.
1556 (riscv_feature_name_cpu): Define.
1557 (riscv_feature_name_fpu): Define.
1558 (riscv_feature_name_virtual): Define.
1559 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1560 (riscv_freg_feature): Use riscv_feature_name_fpu.
1561 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1562 (riscv_csr_feature): Use riscv_feature_name_csr.
1563 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1564
1565 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1566 Craig Blackmore <craig.blackmore@embecosm.com>
1567
1568 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1569 (ALLDEPFILES): Add riscv-none-tdep.c.
1570 * configure: Regenerate.
1571 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1572 support.
1573 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1574 * elf-none-tdep.c: New file.
1575 * elf-none-tdep.h: New file.
1576 * riscv-none-tdep.c: New file.
1577
1578 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1579 Andrew Burgess <andrew.burgess@embecosm.com>
1580
1581 * corelow.c: Add 'xml-tdesc.h' include.
1582 (core_target::read_description): Load the target description from
1583 the core file when possible.
1584 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1585 note.
1586 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1587 (gcore_elf_make_tdesc_note): New function.
1588 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1589 * linux-tdep.c (linux_make_corefile_notes): Add target description
1590 note.
1591
1592 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1593
1594 * Makefile.in (SFILES): Add gcore-elf.c.
1595 (HFILES_NO_SRCDIR): Add gcore-elf.h
1596 * configure: Regenerate.
1597 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1598 support.
1599 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1600 (struct fbsd_collect_regset_section_cb_data): Delete.
1601 (fbsd_collect_regset_section_cb): Delete.
1602 (fbsd_collect_thread_registers): Delete.
1603 (struct fbsd_corefile_thread_data): Delete.
1604 (fbsd_corefile_thread): Delete.
1605 (fbsd_make_corefile_notes): Call
1606 gcore_elf_build_thread_register_notes instead of the now deleted
1607 FreeBSD code.
1608 * gcore-elf.c: New file, the content was moved here from
1609 linux-tdep.c, functions were renamed and given minor cleanup.
1610 * gcore-elf.h: New file.
1611 * gcore.c (gcore_find_signalled_thread): Moved here from
1612 linux-tdep.c and given a new name. Minor cleanups.
1613 * gcore.h (gcore_find_signalled_thread): Declare.
1614 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1615 (struct linux_collect_regset_section_cb_data): Delete.
1616 (linux_collect_regset_section_cb): Delete.
1617 (linux_collect_thread_registers): Delete.
1618 (linux_corefile_thread): Call
1619 gcore_elf_build_thread_register_notes.
1620 (find_signalled_thread): Delete.
1621 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1622
1623 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1624
1625 PR gdb/27147
1626 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1627 process_stratum_target parameter,
1628 sparc_store_inferior_registers): update callers.
1629 * sparc-nat.c (sparc_fetch_inferior_registers,
1630 sparc_store_inferior_registers): Add process_stratum_target
1631 parameter. Switch current thread before calling
1632 sparc_supply_gregset / sparc_collect_rwindow.
1633 (sparc_store_inferior_registers): Likewise.
1634 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1635 (sparc32obsd_collect_uthread): Likewise.
1636 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1637 Add assertion.
1638 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1639 sparc64obsd_supply_uthread): Add assertion.
1640
1641 2021-03-04 Tom Tromey <tromey@adacore.com>
1642
1643 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1644 (aux_add_nonlocal_symbols): Update.
1645 (ada_add_block_symbols): Change "found_sym" to bool.
1646
1647 2021-03-03 Tom Tromey <tromey@adacore.com>
1648
1649 * ada-lang.c (ada_resolve_function): Update comment.
1650 (is_nonfunction, add_symbols_from_enclosing_procs)
1651 (remove_extra_symbols): Likewise.
1652 (struct match_data): Add constructor, initializers.
1653 (add_nonlocal_symbols): Remove memset.
1654 (aux_add_nonlocal_symbols): Update comment.
1655 (ada_add_block_renamings, add_nonlocal_symbols)
1656 (ada_add_all_symbols): Likewise.
1657 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1658
1659 2021-03-02 Tom Tromey <tromey@adacore.com>
1660
1661 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1662 (cast_to_gnat_encoded_fixed_point_type): Remove.
1663 (ada_value_cast, ada_evaluate_subexp): Update.
1664 (gnat_encoded_fixed_point_type_info)
1665 (ada_is_gnat_encoded_fixed_point_type)
1666 (gnat_encoded_fixed_point_delta)
1667 (gnat_encoded_fixed_point_scaling_factor): Remove.
1668 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1669 (gnat_encoded_fixed_point_delta)
1670 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1671 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1672 (ada_print_type): Update.
1673 * ada-valprint.c (ada_value_print_num): Update.
1674 * dwarf2/read.c (ada_get_gnat_encoded_number)
1675 (ada_get_gnat_encoded_ratio): New functions.
1676 (finish_fixed_point_type): Use them. Add parameters.
1677 (GNAT_FIXED_POINT_SUFFIX): New define.
1678 (gnat_encoded_fixed_point_type_info): New function.
1679 (read_base_type): Handle gnat encodings.
1680
1681 2021-03-02 Tom Tromey <tromey@adacore.com>
1682
1683 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1684 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1685 std::string.
1686 (GROW_VECT): Remove.
1687 (grow_vect): Remove.
1688
1689 2021-03-02 Tom Tromey <tromey@adacore.com>
1690
1691 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1692 * ada-lang.c (resolve_subexp): Update.
1693 (ada_resolve_function): Accept a vector.
1694 (is_nonfunction, add_defn_to_vec)
1695 (add_symbols_from_enclosing_procs): Likewise.
1696 (num_defns_collected, defns_collected): Remove.
1697 (remove_extra_symbols): Return a vector.
1698 (remove_irrelevant_renamings): Return void.
1699 (ada_add_local_symbols): Accept a vector.
1700 (struct match_data) <obstackp>: Remove.
1701 <resultp>: New member.
1702 (aux_add_nonlocal_symbols): Update.
1703 (ada_add_block_renamings, add_nonlocal_symbols)
1704 (ada_add_all_symbols): Accept a vector.
1705 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1706 vector.
1707 (ada_lookup_symbol): Update.
1708 (ada_add_block_symbols): Accept a vector.
1709 (get_var_value, iterate_over_symbols): Update.
1710 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1711 Update.
1712
1713 2021-03-02 Tom Tromey <tromey@adacore.com>
1714
1715 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1716
1717 2021-03-02 Tom Tromey <tromey@adacore.com>
1718
1719 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1720 auto_obstack.
1721 <root>: Initialize.
1722 (ada_pspace_data): Remove destructor.
1723 <sym_cache>: Now a unique_ptr.
1724 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1725 (ada_get_symbol_cache): Use 'new'.
1726 (ada_clear_symbol_cache): Rewrite.
1727
1728 2021-03-02 Tom Tromey <tromey@adacore.com>
1729
1730 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1731 is null.
1732
1733 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
1734
1735 PR gdb/27393
1736 * source.c (add_path): Skip empty dirnames.
1737
1738 2021-02-25 Kevin Buettner <kevinb@redhat.com>
1739
1740 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1741 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1742
1743 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1744
1745 PR gdb/26861
1746 * target.c (target_mourn_inferior): Only compare pids in
1747 target_mourn_inferior.
1748
1749 2021-02-25 Jan Matyas <jmatyas@codasip.com>
1750
1751 PR gdb/26819
1752 * remote.c (remote_target::start_remote): Ensure the single
1753 thread, automatically added for remote targets without the
1754 concept of threading, is initially in set to the "resumed"
1755 state.
1756 * remote.c (remote_target::add_current_inferior_and_thread):
1757 Add return value - return the main thread.
1758
1759 2021-02-25 Jan Vrany <jan.vrany@labware.com>
1760
1761 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1762 (mi_tsv_created): Likewise.
1763 (mi_tsv_deleted): Likewise.
1764
1765 2021-02-25 Tom de Vries <tdevries@suse.de>
1766
1767 PR symtab/27354
1768 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1769 section_kind for &dwo_file->sections.info.
1770
1771 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1772
1773 PR fortran/26155
1774 * f-lang.c (fortran_argument_convert): Delete declaration.
1775 (fortran_prepare_argument): New function.
1776 (evaluate_subexp_f): Move logic to new function
1777 fortran_prepare_argument.
1778
1779 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1780
1781 * f-exp.y (f77_keywords): Add 'associated'.
1782 * f-lang.c (fortran_associated): New function.
1783 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1784 (operator_length_f): Likewise.
1785 (print_unop_or_binop_subexp_f): New function.
1786 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1787 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1788 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1789 (operator_check_f): Likewise.
1790 * std-operator.def: Add FORTRAN_ASSOCIATED.
1791
1792 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1793
1794 * f-exp.y (fortran_operators): Add ".xor.".
1795
1796 2021-02-24 Tom de Vries <tdevries@suse.de>
1797
1798 PR symtab/27336
1799 * dwarf2/attribute.c (attribute::form_is_signed): New function
1800 factored out of ...
1801 * dwarf2/attribute.h (attribute::as_signed): ... here.
1802 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1803 (attribute::form_is_signed): Declare.
1804 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1805 for DW_AT_decl_file.
1806
1807 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1808
1809 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1810 order for <sys/ptrace.h> and <asm/ptrace.h>.
1811
1812 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1813
1814 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1815 <sys/ptrace.h>.
1816
1817 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1818
1819 * exec.c (set_section_command): Move variable declarations into
1820 the function body, and use std::string instead of a fixed size
1821 buffer.
1822
1823 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1824
1825 * exec.c (exec_target::get_section_table): Delete member function.
1826 (section_table_read_available_memory): Use current_top_target, not
1827 just the exec_ops target.
1828 * target-delegates.c: Regenerate.
1829 * target.c (default_get_section_table): New function.
1830 * target.h (target_ops::get_section_table): Change default
1831 behaviour to call default_get_section_table.
1832 (default_get_section_table): Declare.
1833
1834 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1835
1836 * exec.c (exec_target::close): Call new clear_target_sections
1837 function.
1838 (program_space::add_target_sections): Update name of member
1839 variable.
1840 (program_space::add_target_sections): Update name of member
1841 variable.
1842 (program_space::remove_target_sections): Likewise.
1843 (exec_one_fork): Use new target_sections member function.
1844 (exec_target::get_section_table): Likewise.
1845 (exec_target::files_info): Likewise.
1846 (set_section_command): Likewise.
1847 (exec_set_section_address): Likewise.
1848 (exec_target::has_memory): Use new target_sections member
1849 function.
1850 * progspace.h (program_space::clear_target_sections): New member
1851 function.
1852 (program_space::target_sections): Rename member variable to
1853 m_target_sections, replace with a new member function.
1854 (program_space::m_target_sections): New member variable.
1855 * solib-dsbt.c (scan_dyntag): Use new member function.
1856 * solib-svr4.c (scan_dyntag): Likewise.
1857
1858 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1859
1860 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1861 return type const.
1862 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1863 (section_table_read_available_memory): Make local const.
1864 (exec_target::xfer_partial): Make local const.
1865 (print_section_info): Make parameter const.
1866 * gdb/exec.h (print_section_info): Likewise.
1867 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1868 const.
1869 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1870 Likewise.
1871 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1872 Likewise.
1873 * gdb/s390-tdep.c (s390_load): Likewise.
1874 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1875 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1876 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1877 Rename to...
1878 (target_debug_print_const_target_section_table_p): ...this.
1879 * gdb/target-delegates.c: Regenerate.
1880 * gdb/target.c (target_get_section_table): Make return type const.
1881 (target_section_by_addr): Likewise. Also make some locals const.
1882 (memory_xfer_partial_1): Make some locals const.
1883 * gdb/target.h (struct target_ops) <get_section_table>: Make
1884 return type const.
1885 (target_section_by_addr): Likewise.
1886 (target_get_section_table): Likewise.
1887
1888 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1889
1890 * NEWS: Mention new 'maint info target-sections' command.
1891 * maint.c (maintenance_info_target_sections): New function.
1892 (_initialize_maint_cmds): Register new command.
1893
1894 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1895
1896 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1897 (riscv_features_from_bfd): ...this. Change parameter type to
1898 'bfd*', and update as required.
1899 (riscv_find_default_target_description): Update call to
1900 riscv_features_from_bfd. Select a default xlen based on
1901 info.bfd_arch_info.
1902 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1903
1904 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1905
1906 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1907 dynamic types in UNOP_IND.
1908
1909 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1910
1911 PR gdb/26828
1912 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1913 Instantiate queue.
1914 (~dwarf2_queue_guard): Clear queue.
1915 (queue_comp_unit): Assert that queue is
1916 instantiated.
1917 (process_queue): Adjust.
1918 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1919
1920 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1921
1922 PR gdb/26828
1923 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1924 to decide whether or not to enqueue it for expansion.
1925 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1926 after calling maybe_queue_comp_unit.
1927
1928 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1929
1930 * linux-nat.c (linux_nat_filter_event): Return void.
1931
1932 2021-02-22 Tom Tromey <tromey@adacore.com>
1933
1934 * solib-svr4.c (enable_break): Update.
1935 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1936 type.
1937 (target_bfd_reopen): Change parameter type.
1938 * bfd-target.h (target_bfd_reopen): Change parameter type.
1939
1940 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1941
1942 * thread.c (add_thread_silent): Add assert.
1943 (find_thread_ptid): Add assert.
1944
1945 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1946
1947 PR gdb/27435
1948 * inf-ptrace.c (struct target_unpusher): Move to target.h.
1949 (target_unpush_up): Likewise.
1950 * procfs.c (procfs_target::attach): Push target early. Use
1951 target_unpush_up to unpush target in case of error.
1952 * target.h (struct target_unpusher): Move here.
1953 (target_unpush_up): Likewise.
1954
1955 2021-02-19 Kevin Buettner <kevinb@redhat.com>
1956
1957 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
1958 (which in turn includes <gnulib/config.h>) before include
1959 of <signal.h>.
1960
1961 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
1962
1963 PR 27158
1964 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
1965 (decode_j_type_insn): Likewise.
1966 (decode_cj_type_insn): Likewise.
1967 (decode_b_type_insn): Likewise.
1968 (decode): Likewise.
1969
1970 2021-02-18 Tom Tromey <tom@tromey.com>
1971
1972 * expression.h (struct expression) <evaluate>: Declare method.
1973 * eval.c (evaluate_subexp): Simplify.
1974 (expression::evaluate): New method.
1975 (evaluate_expression, evaluate_type): Use expression::evaluate.
1976
1977 2021-02-17 Kevin Buettner <kevinb@redhat.com>
1978
1979 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1980 to accessing it.
1981 (ada_lookup_name_info): Likewise.
1982
1983 2021-02-13 Mike Frysinger <vapier@gentoo.org>
1984
1985 * aclocal.m4: Regenerate.
1986
1987 2021-02-12 Tom de Vries <tdevries@suse.de>
1988
1989 PR threads/26228
1990 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1991 (lin_thread_signals): New static var.
1992 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1993 New function.
1994 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1995 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1996 Declare.
1997 * linux-thread-db.c (check_thread_signals): Use
1998 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1999
2000 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2001
2002 * f-exp.y (f77_keywords): Add allocated.
2003 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2004 (operator_length_f): Likewise.
2005 (print_subexp_f): Likewise.
2006 (dump_subexp_body_f): Likewise.
2007 (operator_check_f): Likewise.
2008 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2009
2010 2021-02-11 Tom de Vries <tdevries@suse.de>
2011
2012 PR symtab/27353
2013 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2014 Return true for DW_FORM_strx.
2015
2016 2021-02-11 Tom Tromey <tromey@adacore.com>
2017
2018 PR gdb/27383:
2019 * parse.c (write_exp_symbol_reference): Write sym.block.
2020
2021 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2022
2023 * NEWS: Mention changes to 'maint info sections'.
2024 * maint.c (match_substring): Return a bool, fix whitespace issue.
2025 (struct single_bfd_flag_info): New struct.
2026 (bfd_flag_info): New static global.
2027 (match_bfd_flags): Return a bool, use bfd_flag_info.
2028 (print_bfd_flags): Use bfd_flag_info.
2029 (maint_print_section_info): Delete trailing whitespace.
2030 (struct maint_info_sections_opts): New struct.
2031 (maint_info_sections_option_defs): New static global.
2032 (maint_info_sections_completer): New function.
2033 (maintenance_info_sections): Use option parsing mechanism.
2034 (_initialize_maint_cmds): Update command help text for 'maint info
2035 sections' and register a command completer.
2036
2037 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2038
2039 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2040 functionality merged into...
2041 (maint_print_all_sections): ...this new function.
2042 (maintenance_info_sections): Make use of maint_print_all_sections,
2043 allow all objects to be printed even where there's no executable.
2044
2045 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2046
2047 * breakpoint.c (resolve_sal_pc): Make use of
2048 bound_minimal_symbol::obj_section.
2049 * maint.c (maintenance_translate_address): Likewise.
2050 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2051 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2052 member function.
2053 * printcmd.c (info_address_command): Make use of
2054 bound_minimal_symbol::obj_section.
2055
2056 2021-02-11 Alan Modra <amodra@gmail.com>
2057
2058 * arm-symbian-tdep.c: Delete.
2059 * NEWS: Mention arm-symbian removal.
2060 * Makefile.in: Remove arm-symbian-tdep entries.
2061 * configure.tgt: Remove arm*-*-symbianelf*.
2062 * doc/gdb.texinfo: Remove mention of SymbianOS.
2063 * osabi.c (gdb_osabi_names): Remove "Symbian".
2064 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2065 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2066 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2067 handling.
2068 * testsuite/gdb.base/dup-sect.exp: Likewise.
2069 * testsuite/gdb.base/long_long.exp: Likewise.
2070 * testsuite/gdb.base/solib-weak.exp: Likewise.
2071 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2072 * testsuite/gdb.python/py-section-script.exp: Likewise.
2073 * testsuite/lib/dwarf.exp: Likewise.
2074 * testsuite/lib/gdb.exp: Likewise.
2075
2076 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2077
2078 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2079 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2080 (one_or_two_args): New pattern.
2081 (f77_keywords): Add lbound and ubound.
2082 * f-lang.c (fortran_bounds_all_dims): New function.
2083 (fortran_bounds_for_dimension): New function.
2084 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2085 (operator_length_f): Likewise.
2086 (print_subexp_f): Likewise.
2087 (dump_subexp_body_f): Likewise.
2088 (operator_check_f): Likewise.
2089 * std-operator.def (FORTRAN_LBOUND): Define.
2090 (FORTRAN_UBOUND): Define.
2091
2092 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2093
2094 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2095 and set_section_index member functions where appropriate.
2096 * coffread.c (coff_symtab_read): Likewise.
2097 (process_coff_symbol): Likewise.
2098 * ctfread.c (set_symbol_address): Likewise.
2099 * dwarf2/read.c (add_partial_symbol): Likewise.
2100 (var_decode_location): Likewise.
2101 * language.c: Likewise.
2102 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2103 (compact_minimal_symbols): Likewise.
2104 (minimal_symbol_upper_bound): Likewise.
2105 * objfiles.c (relocate_one_symbol): Likewise.
2106 * psympriv.h (partial_symbol::obj_section): Likewise.
2107 (partial_symbol::address): Likewise.
2108 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2109 * stabsread.c (scan_file_globals): Likewise.
2110 * symmisc.c (dump_msymbols): Likewise.
2111 * symtab.c (general_symbol_info::obj_section): Likewise.
2112 (fixup_section): Likewise.
2113 (get_msymbol_address): Likewise.
2114 * symtab.h (general_symbol_info::section): Rename to...
2115 (general_symbol_info::m_section): ...this.
2116 (general_symbol_info::set_section_index): New member function.
2117 (general_symbol_info::section_index): Likewise.
2118 (SYMBOL_SECTION): Delete.
2119 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2120 set_section_index member functions where appropriate.
2121 (MSYMBOL_SECTION): Delete.
2122 (symbol::symbol): Update to initialize 'm_section'.
2123 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2124 (process_xcoff_symbol): Likewise.
2125
2126 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2127
2128 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2129 MSYMBOL_OBJ_SECTION.
2130 * findvar.c (language_defn::read_var_value): Likewise.
2131 * infcmd.c (jump_command): Likewise.
2132 * linespec.c (minsym_found): Likewise.
2133 * maint.c (maintenance_translate_address): Likewise.
2134 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2135 (minimal_symbol_upper_bound): Likewise.
2136 * parse.c (find_minsym_type_and_address): Likewise.
2137 (operator_check_standard): Likewise.
2138 * printcmd.c (info_address_command): Likewise.
2139 * symmisc.c (dump_msymbols): Likewise.
2140 (print_symbol): Likewise.
2141 * symtab.c (general_symbol_info::obj_section): Define new
2142 function.
2143 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2144 (find_pc_sect_compunit_symtab): Likewise.
2145 (find_function_start_sal): Likewise.
2146 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2147 MSYMBOL_OBJ_SECTION.
2148 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2149 function.
2150 (SYMBOL_OBJ_SECTION): Delete.
2151 (MSYMBOL_OBJ_SECTION): Delete.
2152
2153 2021-02-09 Tom Tromey <tom@tromey.com>
2154
2155 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2156
2157 2021-02-09 Tom de Vries <tdevries@suse.de>
2158
2159 PR symtab/27341
2160 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2161 construct an array type. Add assert to ensure that element_type is
2162 not being modified.
2163
2164 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2165
2166 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2167 (gcore_collect_regset_section_cb): Delete.
2168 (gcore_collect_thread_registers): Delete.
2169 (gcore_build_thread_register_notes): Delete.
2170 (gcore_find_signalled_thread): Delete.
2171 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2172 'gdbarch' and 'thread_info' declarations.
2173 (gcore_build_thread_register_notes): Delete declaration.
2174 (gcore_find_signalled_thread): Likewise.
2175 * fbsd-tdep.c: Remove 'gcore.h' include.
2176 (struct fbsd_collect_regset_section_cb_data): New struct.
2177 (fbsd_collect_regset_section_cb): New function.
2178 (fbsd_collect_thread_registers): New function.
2179 (struct fbsd_corefile_thread_data): New struct.
2180 (fbsd_corefile_thread): New function.
2181 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2182 * linux-tdep.c: Remove 'gcore.h' include.
2183 (struct linux_collect_regset_section_cb_data): New struct.
2184 (linux_collect_regset_section_cb): New function.
2185 (linux_collect_thread_registers): New function.
2186 (linux_corefile_thread): Call Linux specific code.
2187 (find_signalled_thread): New function.
2188 (linux_make_corefile_notes): Call find_signalled_thread.
2189
2190 2021-02-09 Tom Tromey <tromey@adacore.com>
2191
2192 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2193 not_lval value.
2194 * value.c (value_contents_copy_raw): Now static.
2195 * value.h (value_contents_copy_raw): Don't declare.
2196
2197 2021-02-09 Tom Tromey <tromey@adacore.com>
2198
2199 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2200 fields.
2201
2202 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
2203
2204 PR tdep/27369
2205 * arc-linux-tdep.c (handle_atomic_sequence): New.
2206 (arc_linux_software_single_step): Call handle_atomic_sequence().
2207
2208 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2209
2210 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2211 function.
2212 (REQUIRE_WINDOW): Call is_valid member function.
2213 (REQUIRE_WINDOW_FOR_SETTER): New define.
2214 (gdbpy_tui_is_valid): Call is_valid member function.
2215 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2216 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2217 tui_active too.
2218 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2219 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2220 the function.
2221
2222 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2223
2224 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2225 for the title is not nullptr.
2226
2227 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2228
2229 * tui-layout.c (saved_tui_windows): Delete.
2230 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2231 call new get_windows member function instead.
2232 (tui_get_window_by_name): Check in tui_windows.
2233 (tui_layout_window::apply): Don't add to tui_windows.
2234 * tui-layout.h (tui_layout_base::get_windows): New member function.
2235 (tui_layout_window::get_windows): Likewise.
2236 (tui_layout_split::get_windows): Likewise.
2237
2238 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2239
2240 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2241 of the window objects.
2242
2243 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2244
2245 * python/python.c (gdbpy_print_stack): Reformat an error message.
2246
2247 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2248
2249 * tui/tui-interp.c (tui_command_line_handler): New function.
2250 (tui_interp::resume): Register tui_command_line_handler as the
2251 input_handler.
2252 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2253 function.
2254 (tui_getc_1): Delete handling of '\n' and '\r'.
2255 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2256
2257 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2258
2259 * tui/tui-regs.c (tui_data_window::display_registers_from):
2260 Mark invisible register sub windows.
2261 (tui_data_window::check_register_values): Ignore invisible
2262 register sub windows.
2263
2264 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2265
2266 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2267 n_spaces with a negative value.
2268
2269 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2270
2271 * tui/tui-regs.c (tui_data_window::display_registers_from):
2272 Add refresh_window call.
2273
2274 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2275
2276 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2277
2278 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2279
2280 * symmisc.c (std_in, std_out, std_err): Remove.
2281 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2282
2283 2021-02-05 Tom de Vries <tdevries@suse.de>
2284
2285 PR breakpoints/27330
2286 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2287 glibc object file has debug info.
2288
2289 2021-02-05 Tom de Vries <tdevries@suse.de>
2290
2291 PR symtab/27333
2292 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2293
2294 2021-02-05 Tom de Vries <tdevries@suse.de>
2295
2296 PR breakpoints/27313
2297 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2298 syscall numbers.
2299
2300 2021-02-05 Tom Tromey <tom@tromey.com>
2301
2302 * compile/compile-c-support.c (get_compile_context)
2303 (c_get_compile_context, cplus_get_compile_context): Change return
2304 type.
2305 * language.c (language_defn::get_compile_instance): New method.
2306 * language.h (language_defn::get_compile_instance): Change return
2307 type. No longer inline.
2308 * c-lang.c (c_language::get_compile_instance): Change return type.
2309 (cplus_language::get_compile_instance): Change return type.
2310 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2311 Change return type.
2312 * compile/compile.c (compile_to_object): Update.
2313
2314 2021-02-05 Tom Tromey <tom@tromey.com>
2315
2316 * parser-defs.h (write_exp_symbol_reference): Declare.
2317 * parse.c (write_exp_symbol_reference): New function.
2318 * p-exp.y (variable): Use write_exp_symbol_reference.
2319 * m2-exp.y (variable): Use write_exp_symbol_reference.
2320 * f-exp.y (variable): Use write_exp_symbol_reference.
2321 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2322 * c-exp.y (variable): Use write_exp_symbol_reference.
2323
2324 2021-02-05 Tom de Vries <tdevries@suse.de>
2325
2326 PR exp/27265
2327 * valarith.c (complex_binop): Throw an error if complex type can't
2328 be created.
2329
2330 2021-02-05 Tom de Vries <tdevries@suse.de>
2331
2332 PR symtab/27307
2333 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2334 return.
2335
2336 2021-02-05 Tom de Vries <tdevries@suse.de>
2337
2338 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2339
2340 2021-02-04 Mike Frysinger <vapier@gentoo.org>
2341
2342 * configure.tgt (riscv*-*-*): Set gdb_sim.
2343
2344 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2345
2346 * target.c (target_is_non_stop_p): Return bool.
2347 * target.h (target_is_non_stop_p): Return bool.
2348
2349 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2350
2351 * record-full.c (record_full_async_inferior_event_handler):
2352 Don't clear async event handler.
2353 (record_full_base_target::wait): Clear async event handler at
2354 beginning.
2355
2356 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2357
2358 * record-btrace.c (record_btrace_handle_async_inferior_event):
2359 Don't clear async event handler.
2360 (record_btrace_target::wait): Clear async event handler at
2361 beginning.
2362
2363 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2364
2365 * remote.c (remote_target::wait): Clear async event handler at
2366 beginning, mark if needed at the end.
2367 (remote_async_inferior_event_handler): Don't set or clear async
2368 event handler.
2369
2370 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2371
2372 * async-event.h (async_event_handler_func): Add documentation.
2373 * async-event.c (check_async_event_handlers): Don't clear
2374 async_event_handler ready flag.
2375 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2376 flag.
2377 * record-btrace.c (record_btrace_handle_async_inferior_event):
2378 Likewise.
2379 * record-full.c (record_full_async_inferior_event_handler):
2380 Likewise.
2381 * remote-notif.c (remote_async_get_pending_events_handler):
2382 Likewise.
2383 * remote.c (remote_async_inferior_event_handler): Likewise.
2384
2385 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2386
2387 * infrun.c (handle_inferior_event): Move stop_soon variable to
2388 inner scope.
2389
2390 2021-02-03 Pedro Alves <pedro@palves.net>
2391
2392 * infcmd.c (detach_command): Hold strong reference to target, and
2393 if all-stop on entry, restart threads on exit.
2394 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2395 (restart_stepped_thread): ... this new function. Also handle
2396 trap_expected.
2397 (restart_after_all_stop_detach): New function.
2398 * infrun.h (restart_after_all_stop_detach): Declare.
2399
2400 2021-02-03 Pedro Alves <pedro@palves.net>
2401
2402 * infrun.c (struct step_over_info): Initialize fields.
2403 (prepare_for_detach): Handle ongoing in-line step over.
2404
2405 2021-02-03 Pedro Alves <pedro@palves.net>
2406
2407 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2408 here...
2409 * remote.c (remote_target::remote_detach_1): ... and here ...
2410 * target.c (target_detach): ... instead of here.
2411 * target.h (target_ops::detach): Add comment.
2412
2413 2021-02-03 Pedro Alves <pedro@palves.net>
2414
2415 * infrun.c (struct wait_one_event): Move higher up.
2416 (prepare_for_detach): Abort in-progress displaced steps instead of
2417 letting them complete.
2418 (handle_one): If the inferior is detaching, don't add the thread
2419 back to the global step-over chain.
2420 (restart_threads): Don't restart threads if detaching.
2421 (handle_signal_stop): Remove inferior::detaching reference.
2422
2423 2021-02-03 Pedro Alves <pedro@palves.net>
2424
2425 * infrun.c (prepare_for_detach): Don't release scoped_restore
2426 before returning.
2427
2428 2021-02-03 Pedro Alves <pedro@palves.net>
2429
2430 * infrun.c (handle_one): New function, factored out from ...
2431 (stop_all_threads): ... here.
2432
2433 2021-02-03 Pedro Alves <pedro@palves.net>
2434
2435 * remote.c (remote_notif_stop_ack): Don't error out on
2436 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2437 (remote_target::discard_pending_stop_replies): Don't delete
2438 in-flight notification; instead, clear its contents.
2439
2440 2021-02-03 Pedro Alves <pedro@palves.net>
2441
2442 * remote.c (extended_remote_target::attach): Set target async in
2443 the target-non-stop path too.
2444
2445 2021-02-03 Pedro Alves <pedro@palves.net>
2446
2447 PR gdb/27055
2448 * infrun.c (handle_signal_stop): Move main context_switch call
2449 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2450
2451 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2452
2453 * NEWS (Changed commands): Add entry for the behavior change of
2454 the inferior command.
2455 * inferior.c (inferior_command): When no argument is given to the
2456 inferior command, display info about the currently selected
2457 inferior.
2458
2459 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2460
2461 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2462 a sect_offset.
2463 (read_attribute_reprocess): Adjust.
2464
2465 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2466
2467 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2468 <gnu_ranges_base>: ... this...
2469 <rnglists_base>: ... and this.
2470 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2471 <gnu_ranges_base>: ... this...
2472 <rnglists_base>: ... and this.
2473 (read_cutu_die_from_dwo): Adjust
2474 (dwarf2_get_pc_bounds): Adjust
2475 (dwarf2_record_block_ranges): Adjust.
2476 (read_full_die_1): Adjust
2477 (partial_die_info::read): Adjust.
2478 (read_rnglist_index): Adjust.
2479
2480 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2481
2482 PR gdb/26813
2483 * dwarf2/read.c (read_loclists_rnglists_header): Add
2484 header_offset parameter and use it.
2485 (read_loclist_index): Read header of the current contribution,
2486 not the one at the beginning of the section.
2487 (read_rnglist_index): Likewise.
2488
2489 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2490
2491 PR gdb/26813
2492 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2493 requires_reprocessing flag.
2494 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2495 DW_FORM_loclistx.
2496 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2497 and DW_FORM_loclistx.
2498 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2499 instead of set_address for DW_FORM_loclistx and
2500 DW_FORM_rnglistx.
2501
2502 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2503
2504 * dwarf2/read.c (read_loclist_index): Remove bound check for
2505 start of offset.
2506 (read_rnglist_index): Likewise.
2507
2508 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2509
2510 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2511 of the offset.
2512
2513 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2514
2515 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2516
2517 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2518
2519 * dwarf2/read.c (read_loclist_index): Change complaints into
2520 errors.
2521
2522 2021-02-02 Tom de Vries <tdevries@suse.de>
2523
2524 PR symtab/24620
2525 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2526 psymtab == nullptr.
2527
2528 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2529
2530 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2531 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2532 here from linux-tdep.c and given a new name. Minor cleanups.
2533 (gcore_collect_regset_section_cb): Likewise.
2534 (gcore_collect_thread_registers): Likewise.
2535 (gcore_build_thread_register_notes): Likewise.
2536 (gcore_find_signalled_thread): Likewise.
2537 * gcore.h (gcore_build_thread_register_notes): Declare.
2538 (gcore_find_signalled_thread): Declare.
2539 * fbsd-tdep.c: Add 'gcore.h' include.
2540 (struct fbsd_collect_regset_section_cb_data): Delete.
2541 (fbsd_collect_regset_section_cb): Delete.
2542 (fbsd_collect_thread_registers): Delete.
2543 (struct fbsd_corefile_thread_data): Delete.
2544 (fbsd_corefile_thread): Delete.
2545 (fbsd_make_corefile_notes): Call
2546 gcore_build_thread_register_notes instead of the now deleted
2547 FreeBSD code.
2548 * linux-tdep.c: Add 'gcore.h' include.
2549 (struct linux_collect_regset_section_cb_data): Delete.
2550 (linux_collect_regset_section_cb): Delete.
2551 (linux_collect_thread_registers): Delete.
2552 (linux_corefile_thread): Call
2553 gcore_build_thread_register_notes.
2554 (find_signalled_thread): Delete.
2555 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2556
2557 2021-01-29 Tom de Vries <tdevries@suse.de>
2558
2559 PR breakpoints/26063
2560 * infrun.c (process_event_stop_test): Reset
2561 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2562 changed.
2563
2564 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2565
2566 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2567 assert. Extend the header comment.
2568
2569 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2570
2571 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2572 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2573 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2574 (tui_locator_win_info_ptr): Delete declaration.
2575 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2576 (tui_disasm_window::set_contents): Fetch state from tui_location
2577 global.
2578 (tui_get_begin_asm_address): Likewise.
2579 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2580 for locator window.
2581 (get_locator_window): Delete.
2582 (initialize_known_windows): Treat locator window just like all the
2583 rest.
2584 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2585 (tui_source_window::set_contents): Fetch state from tui_location
2586 global.
2587 (tui_source_window::showing_source_p): Likewise.
2588 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2589 (_locator): Delete.
2590 (tui_locator_win_info_ptr): Delete.
2591 (tui_locator_window::make_status_line): Fetch state from
2592 tui_location global.
2593 (tui_locator_window::rerender): Remove check of 'handle',
2594 reindent function body.
2595 (tui_locator_window::set_locator_fullname): Delete.
2596 (tui_locator_window::set_locator_info): Delete.
2597 (tui_update_locator_fullname): Delete.
2598 (tui_show_frame_info): Likewise.
2599 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2600 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2601 tui/tui-location.h and renamed to
2602 tui_location_tracker::set_location.
2603 (tui_locator_window::set_locator_fullname): Moved to
2604 tui/tui-location.h and renamed to
2605 tui_location_tracker::set_fullname.
2606 (tui_locator_window::full_name): Delete.
2607 (tui_locator_window::proc_name): Delete.
2608 (tui_locator_window::line_no): Delete.
2609 (tui_locator_window::addr): Delete.
2610 (tui_locator_window::gdbarch): Delete.
2611 (tui_update_locator_fullname): Delete declaration.
2612 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2613 for locator window.
2614 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2615 (tui_display_main): Call function on tui_location directly.
2616 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2617 * tui/tui-location.c: New file.
2618 * tui/tui-location.h: New file.
2619
2620 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2621
2622 * gdbtypes.h (get_type_arch): Rename to...
2623 (struct type) <arch>: ... this, update all users.
2624
2625 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2626
2627 * gdbtypes.h (struct type) <arch>: Rename to...
2628 <arch_owner>: ... this, update all users.
2629 <objfile>: Rename to...
2630 <objfile_owner>: ... this, update all users.
2631
2632 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2633
2634 * gdbcmd.h (execute_command_to_string): Update comment.
2635 * top.c (execute_command_to_string): Update header comment.
2636
2637 2021-01-28 Tom de Vries <tdevries@suse.de>
2638
2639 PR breakpoints/27205
2640 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2641 (create_longjmp_master_breakpoint_names): New function, factored out
2642 of ...
2643 (create_longjmp_master_breakpoint): ... here. Only try to install
2644 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2645 breakpoint in libc.so failed.
2646
2647 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2648
2649 PR gdb/27133
2650 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2651 unique_ptr is released when the wrapped pointer is kept for later
2652 use.
2653
2654 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2655
2656 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2657 BLR and BR instructions.
2658 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2659 (enum aarch64_masks): New.
2660
2661 2021-01-26 Tom Tromey <tromey@adacore.com>
2662
2663 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2664 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2665 (windows_init_thread_list, windows_nat::handle_load_dll)
2666 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2667 (windows_nat_target::resume)
2668 (windows_nat_target::get_windows_debug_event)
2669 (windows_nat_target::interrupt, windows_xfer_memory)
2670 (windows_nat_target::close): Update.
2671 * nat/windows-nat.c (DEBUG_EVENTS): Use
2672 debug_prefixed_printf_cond.
2673 (matching_pending_stop, fetch_pending_stop)
2674 (continue_last_debug_event): Update.
2675
2676 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2677
2678 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2679 elfcore_write_file_note.
2680
2681 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
2682
2683 * arc-tdep.c (arc_add_reggroups): New function.
2684 (arc_gdbarch_init): Call arc_add_reggroups.
2685
2686 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
2687
2688 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2689
2690 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2691 Simon Marchi <simon.marchi@polymtl.ca>
2692 Tom de Vries <tdevries@suse.de>
2693
2694 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2695 DW_AT_ranges.
2696
2697 2021-01-25 Tom Tromey <tromey@adacore.com>
2698
2699 * dwarf2/read.c (get_mpz): New function.
2700 (get_dwarf2_rational_constant): Use it.
2701
2702 2021-01-25 Tom Tromey <tromey@adacore.com>
2703
2704 * ada-lang.c (resolve_subexp): Handle array context.
2705
2706 2021-01-23 Tom Tromey <tom@tromey.com>
2707
2708 PR compile/25575
2709 * compile/compile-loc2c.c (note_register): New function.
2710 (pushf_register_address, pushf_register): Use it.
2711
2712 2021-01-23 Tom Tromey <tom@tromey.com>
2713
2714 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2715 Change type of "registers_used".
2716 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2717 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2718 (locexpr_generate_c_location, loclist_generate_c_location): Change
2719 type of "registers_used".
2720 * compile/compile.h (compile_dwarf_expr_to_c)
2721 (compile_dwarf_bounds_to_c): Update.
2722 * compile/compile-loc2c.c (pushf_register_address)
2723 (pushf_register, do_compile_dwarf_expr_to_c)
2724 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2725 of "registers_used".
2726 * compile/compile-c.h (generate_c_for_variable_locations):
2727 Update.
2728 * compile/compile-c-symbols.c (generate_vla_size)
2729 (generate_c_for_for_one_variable): Change type of
2730 "registers_used".
2731 (generate_c_for_variable_locations): Return std::vector.
2732 * compile/compile-c-support.c (generate_register_struct): Change
2733 type of "registers_used".
2734 (compute): Update.
2735
2736 2021-01-23 Tom Tromey <tom@tromey.com>
2737
2738 * compile/compile-internal.h (class compile_instance)
2739 <set_arguments>: Change return type.
2740 * compile/compile.c (compile_to_object): Remove call to reset.
2741 (compile_instance::set_arguments): Change return type.
2742
2743 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2744
2745 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2746 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2747
2748 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2749
2750 * Makefile.in (SELFTESTS_SRCS): Add
2751 unittests/gdb_tilde_expand-selftests.c.
2752 * unittests/gdb_tilde_expand-selftests.c: New file.
2753
2754 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2755
2756 PR cli/25956
2757 * NEWS: Mention new command.
2758 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2759 (version_style): Define.
2760 (cli_style_option::cli_style_option): Add intensity parameter, and
2761 use as appropriate.
2762 (_initialize_cli_style): Register version style set/show commands.
2763 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2764 (version_style): Declare.
2765 * top.c (print_gdb_version): Use version_stype, and styled_string
2766 to print the GDB version string.
2767
2768 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2769
2770 * utils.c (emit_style_escape): Only emit an escape sequence if the
2771 requested style is different than the current applied style.
2772 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2773 current applied_style.
2774 (fputs_styled): Remove is_default check.
2775 (fputs_styled_unfiltered): Likewise.
2776 (vfprintf_styled_no_gdbfmt): Likewise.
2777
2778 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2779
2780 * remote.h (remote_debug_printf): New.
2781 (remote_debug_printf_nofunc): New.
2782 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2783 * remote.c: Use above macros throughout file.
2784
2785 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2786
2787 * remote.h (remote_debug): Change to bool.
2788 * remote.c (remote_debug): Change to bool.
2789 (_initialize_remote): Adjust.
2790
2791 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2792
2793 * target.h (remote_debug): Move to...
2794 * remote.h (remote_debug): ... here.
2795 * top.c (remote_debug): Move to...
2796 * remote.c (remote_debug): ... here.
2797 * remote-sim.c: Include remote.h.
2798
2799 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2800
2801 * cli/cli-cmds.c (show_remote_debug): Remove.
2802 (show_remote_timeout): Remove.
2803 (_initialize_cli_cmds): Don't register commands.
2804 * remote.c (show_remote_debug): Move here.
2805 (show_remote_timeout): Move here.
2806 (_initialize_remote): Register commands.
2807
2808 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2809
2810 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2811 type::objfile method instead.
2812
2813 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2814
2815 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2816 use the type::is_objfile_owned method.
2817
2818 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
2819
2820 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2821 (TYPE_OWNER): Remove.
2822 (TYPE_OBJFILE): Adjust.
2823 (struct main_type) <flag_objfile_owned>: Rename to...
2824 <m_flag_objfile_owned>: ... this.
2825 <owner>: Rename to...
2826 <m_owner>: ... this.
2827 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2828 methods.
2829 (TYPE_ALLOC): Adjust.
2830 * gdbtypes.c (alloc_type): Adjust.
2831 (alloc_type_arch): Adjust.
2832 (alloc_type_copy): Adjust.
2833 (get_type_arch): Adjust.
2834 (smash_type): Adjust.
2835 (lookup_array_range_type): Adjust.
2836 (recursive_dump_type): Adjust.
2837 (copy_type_recursive): Adjust.
2838 * compile/compile-c-types.c (convert_func): Adjust.
2839 (convert_type_basic): Adjust.
2840 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2841 Adjust.
2842 * language.c
2843 (language_arch_info::type_and_symbol::alloc_type_symbol):
2844 Adjust.
2845
2846 2021-01-21 Luis Machado <luis.machado@linaro.org>
2847
2848 * coffread.c (enter_linenos): Passing string to complaint.
2849 * valops.c (value_assign): Make array view.
2850
2851 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2852
2853 * auto-load.h (debug_auto_load): Move here.
2854 (auto_load_debug_printf): New.
2855 * auto-load.c: Use auto_load_debug_printf.
2856 (debug_auto_load): Move to header.
2857 * linux-thread-db.c (try_thread_db_load): Use
2858 auto_load_debug_printf.
2859 * main.c (captured_main_1): Likewise.
2860
2861 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2862
2863 * f-valprint.c (f77_array_offset_tbl): Remove.
2864
2865 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2866
2867 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2868
2869 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2870
2871 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2872 of gdb_select.
2873
2874 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
2875
2876 PR python/19151
2877 * python/py-breakpoint.c (bppy_get_location): Handle
2878 bp_hardware_breakpoint.
2879 (bppy_init): Likewise.
2880 (gdbpy_breakpoint_created): Likewise.
2881
2882 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2883
2884 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2885
2886 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2887
2888 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2889 (_initialize_gdb_bfd): Adjust.
2890
2891 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2892
2893 PR gdb/26828
2894 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2895
2896 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2897
2898 * dwarf2/read.c (follow_die_offset): Add logging.
2899 (dwarf2_per_objfile::age_comp_units): Add logging.
2900
2901 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2902
2903 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2904 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2905 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2906 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2907 * arm-tdep.c (struct frame_unwind): Make static.
2908 * auto-load.c (auto_load_safe_path_vec): Make static.
2909 * csky-tdep.c (csky_stub_unwind): Make static.
2910 * gdbarch.c (gdbarch_data_registry): Make static.
2911 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2912 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2913 * i386-tdep.c (i386_frame_setup_skip_insns,
2914 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2915 Make static.
2916 * infrun.c (observer_mode): Make static.
2917 * linux-nat.c (sigchld_action): Make static.
2918 * linux-thread-db.c (thread_db_list): Make static.
2919 * maint-test-options.c (maintenance_test_options_list):
2920 * mep-tdep.c (mep_csr_registers): Make static.
2921 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2922 (stats): Make static.
2923 * nat/linux-osdata.c (struct osdata_type): Make static.
2924 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2925 * progspace.c (last_program_space_num): Make static.
2926 * python/py-param.c (struct parm_constant): Remove struct type
2927 name.
2928 (parm_constants): Make static.
2929 * python/py-record-btrace.c (btpy_list_methods): Make static.
2930 * python/py-record.c (recpy_gap_type): Make static.
2931 * record.c (record_goto_cmdlist): Make static.
2932 * regcache.c (regcache_descr_handle): Make static.
2933 * registry.h (DEFINE_REGISTRY): Make definition static.
2934 * symmisc.c (std_in, std_out, std_err): Make static.
2935 * top.c (previous_saved_command_line): Make static.
2936 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2937 static.
2938 * unittests/command-def-selftests.c (nr_duplicates,
2939 nr_invalid_prefixcmd, lists): Make static.
2940 * unittests/observable-selftests.c (test_notification): Make
2941 static.
2942 * unittests/optional/assignment/1.cc (counter): Make static.
2943 * unittests/optional/assignment/2.cc (counter): Make static.
2944 * unittests/optional/assignment/3.cc (counter): Make static.
2945 * unittests/optional/assignment/4.cc (counter): Make static.
2946 * unittests/optional/assignment/5.cc (counter): Make static.
2947 * unittests/optional/assignment/6.cc (counter): Make static.
2948
2949 2021-01-20 Joel Sherrill <joel@rtems.org>
2950
2951 PR gdb/27219
2952 * remote.c (struct remote_thread_info) <resume_state>: Rename
2953 to...
2954 <get_resume_state>: ... this.
2955 (remote_target::resume): Adjust.
2956 (remote_target::commit_resume): Adjust.
2957 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
2958
2959 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
2960 Tom Tromey <tom@tromey.com>
2961
2962 * stap-probe.c (stap_parse_single_operand): Handle '!'
2963 operator.
2964 (stap_parse_argument_conditionally): Likewise.
2965 Skip spaces after processing open-parenthesis sub-expression.
2966 (stap_parse_argument_1): Skip spaces after call to
2967 stap_parse_argument_conditionally.
2968 Handle case when right-side expression is a parenthesized
2969 sub-expression.
2970 Skip spaces after call to stap_parse_argument_1.
2971
2972 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2973
2974 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2975
2976 2021-01-19 Luis Machado <luis.machado@linaro.org>
2977
2978 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2979 memory and save data.
2980 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2981 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2982 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2983 (trad_frame_value_bytes_p): Remove.
2984 (trad_frame_reset_saved_regs): Adjust documentation.
2985 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2986 constructor and reset the state of the registers.
2987 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2988 (trad_frame_value_bytes_p, trad_frame_set_value)
2989 (trad_frame_set_realreg, trad_frame_set_addr)
2990 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2991 (trad_frame_set_reg_realreg): Update to call member function.
2992 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2993 (trad_frame_get_prev_register): Likewise.
2994
2995 * aarch64-tdep.c (aarch64_analyze_prologue)
2996 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2997 (aarch64_prologue_prev_register): Update to use member functions.
2998 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2999 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3000 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3001 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3002 (arm_make_epilogue_frame_cache): Likewise.
3003 * avr-tdep.c (avr_frame_unwind_cache)
3004 (avr_frame_prev_register): Likewise.
3005 * cris-tdep.c (cris_scan_prologue): Likewise.
3006 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3007 * frv-tdep.c (frv_analyze_prologue): Likewise.
3008 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3009 * lm32-tdep.c (lm32_frame_cache): Likewise.
3010 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3011 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3012 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3013 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3014 (reset_saved_regs): Adjust to set realreg.
3015 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3016 call member functions.
3017 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3018 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3019 (s390_backchain_frame_unwind_cache): Likewise.
3020 * score-tdep.c (score7_analyze_prologue)
3021 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3022 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3023 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3024 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3025 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3026 * tilegx-tdep.c (tilegx_analyze_prologue)
3027 (tilegx_frame_cache): Likewise.
3028 * v850-tdep.c (v850_frame_cache): Likewise.
3029 * vax-tdep.c (vax_frame_cache): Likewise.
3030
3031 2021-01-19 Luis Machado <luis.machado@linaro.org>
3032
3033 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3034 of buffer + length.
3035 (put_frame_register_bytes): Likewise.
3036 Adjust documentation.
3037 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3038 (safe_frame_unwind_memory): Likewise.
3039 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3040 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3041 gdb::array_view.
3042 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3043 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3044 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3045 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3046 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3047 * dwarf2/loc.c (rw_pieced_value): Likewise.
3048 * hppa-tdep.c (hppa_frame_cache): Likewise.
3049 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3050 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3051 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3052 (i386_linux_rt_sigtramp_start): Likewise.
3053 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3054 * i386-tdep.c (i386_register_to_value): Likewise.
3055 * i387-tdep.c (i387_register_to_value): Likewise.
3056 * ia64-tdep.c (ia64_register_to_value): Likewise.
3057 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3058 (m32r_linux_rt_sigtramp_start): Likewise.
3059 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3060 * m68k-tdep.c (m68k_register_to_value): Likewise.
3061 * mips-tdep.c (mips_register_to_value)
3062 (mips_value_to_register): Likewise.
3063 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3064 (ppcfbsd_sigtramp_frame_cache): Likewise.
3065 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3066 (ppcobsd_sigtramp_frame_cache): Likewise.
3067 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3068 (rs6000_register_to_value): Likewise.
3069 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3070 * tramp-frame.c (tramp_frame_start): Likewise.
3071 * valops.c (value_assign): Likewise.
3072
3073 2021-01-19 Luis Machado <luis.machado@linaro.org>
3074
3075 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3076 array_view.
3077 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3078 instead of buffer and size.
3079 (trad_frame_set_reg_value_bytes): Likewise.
3080 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3081 (trad_frame_set_value_bytes): Likewise.
3082
3083 2021-01-18 Mike Frysinger <vapier@gentoo.org>
3084
3085 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3086
3087 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3088
3089 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3090 (riscv_fbsd_gregset): Use riscv_supply_regset.
3091 (riscv_fbsd_fpregset): Likewise.
3092 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3093 (riscv_linux_fregset): Likewise.
3094 * riscv-tdep.c (riscv_supply_regset): Define new function.
3095 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3096
3097 2021-01-18 Tom de Vries <tdevries@suse.de>
3098
3099 PR tdep/27172
3100 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3101 New macro.
3102 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3103 for SEGV_BNDERR.
3104
3105 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3106
3107 * remote.c (class remote_target) <remote_hostio_send_command,
3108 remote_hostio_parse_result>: Constify parameter.
3109 (remote_hostio_parse_result): Likewise.
3110 (remote_target::remote_hostio_send_command): Adjust.
3111 (remote_target::remote_hostio_pread_vFile): Adjust.
3112 (remote_target::fileio_readlink): Adjust.
3113 (remote_target::fileio_fstat): Adjust.
3114
3115 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3116
3117 * remote.c (remote_target::start_remote): Move wait_status to
3118 narrower scope.
3119
3120 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3121
3122 * remote.c (class remote_target):
3123 <add_current_inferior_and_thread>: Constify parameter.
3124 (stop_reply_extract_thread): Likewise.
3125 (remote_target::get_current_thread): Likewise.
3126 (remote_target::add_current_inferior_and_thread): Likewise.
3127
3128 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3129
3130 * remote.c (class remote_target)
3131 <remote_unpack_thread_info_response,
3132 parse_threadlist_response>: Constify parameter and/or return
3133 value and or local variable.
3134 (stub_unpack_int): Likewise.
3135 (unpack_nibble): Likewise.
3136 (unpack_byte): Likewise.
3137 (unpack_int): Likewise.
3138 (unpack_string): Likewise.
3139 (unpack_threadid): Likewise.
3140 (remote_target::remote_unpack_thread_info_response): Likewise.
3141 (remote_target::parse_threadlist_response): Likewise.
3142
3143 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3144
3145 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3146
3147 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
3148
3149 * MAINTAINERS (Write After Approval): Add myself.
3150
3151 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3152
3153 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3154 because is_trivially_default_constructible was first implemented with
3155 gcc-5.
3156
3157 2021-01-14 Tom de Vries <tdevries@suse.de>
3158
3159 PR breakpoints/27151
3160 * objfiles.h (in_plt_section): Handle .plt.sec.
3161
3162 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3163
3164 PR gdb/26819
3165 * remote.c
3166 (remote_target::select_thread_for_ambiguous_stop_reply): New
3167 member function.
3168 (remote_target::process_stop_reply): Call
3169 select_thread_for_ambiguous_stop_reply.
3170
3171 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3172
3173 * record-btrace.c (class record_btrace_target): Remove.
3174 (record_btrace_target::commit_resume): Remove.
3175 * record-full.c (class record_full_target): Remove.
3176 (record_full_target::commit_resume): Remove.
3177
3178 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3179
3180 * remote.c (enum class resume_state): New.
3181 (struct resumed_pending_vcont_info): New.
3182 (struct remote_thread_info) <resume_state, set_not_resumed,
3183 set_resumed_pending_vcont, resumed_pending_vcont_info,
3184 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3185 New.
3186 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3187 (remote_target::remote_add_thread): Adjust.
3188 (remote_target::process_initial_stop_replies): Adjust.
3189 (remote_target::resume): Adjust.
3190 (remote_target::commit_resume): Rely on state in
3191 remote_thread_info and not on tp->executing.
3192 (remote_target::process_stop_reply): Adjust.
3193
3194 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3195
3196 * arc-tdep.h (arc_debug_printf): New.
3197 * arc-tdep.c: Use arc_debug_printf.
3198 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3199 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3200 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3201
3202 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3203
3204 * arc-tdep.h (arc_debug): Change type to bool.
3205 * arc-tdep.c (arc_debug): Change type to bool.
3206 (arc_analyze_prologue): Adjust.
3207 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3208 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3209
3210 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3211
3212 * auto-load.c (auto_load_objfile_script_1): Use bool.
3213 (execute_script_contents): Use bool.
3214
3215 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3216
3217 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3218 comment here.
3219 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3220 comment to header.
3221 * extension-priv.h (struct extension_language_script_ops)
3222 <auto_load_enabled>: Return bool.
3223 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3224 comment here.
3225 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3226 comment to header.
3227 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3228 move comment here.
3229 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3230 move comment to header.
3231 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3232 move comment here.
3233 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3234 move comment to header.
3235
3236 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3237
3238 * auto-load.h (file_is_auto_load_safe): Change return type to
3239 bool, move comment here.
3240 * auto-load.c (file_is_auto_load_safe): Change return type and
3241 advice_printed to bool. Move comment to header.
3242
3243 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3244
3245 * jit.c (jit_debug_printf): New, use throughout file.
3246
3247 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3248
3249 * infrun.c (normal_stop): Fix indentation.
3250
3251 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3252
3253 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3254 declarations to ...
3255 * symfile.h: ... here.
3256 * symfile.c: Update doc.
3257
3258 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3259
3260 * target.h (baud_rate, serial_parity): Move declarations...
3261 * serial.h: ... here.
3262 * main.c: Include serial.h.
3263 * serial.c (baud_rate, serial_parity): Update doc.
3264
3265 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3266
3267 * top.c (pre_init_ui_hook): Remove.
3268
3269 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3270
3271 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3272 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3273 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3274 * features/aarch64-fpu.xml: Add bfloat16 type.
3275
3276 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3277
3278 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3279
3280 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3281
3282 * f-exp.y (dot_ops): Rename to...
3283 (fortran_operators): ...this. Add a header comment. Add symbol
3284 based operators.
3285 (yylex): Update to use fortran_operators not dot_ops. Remove
3286 special handling for '**', this is now included in
3287 fortran_operators.
3288
3289 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3290
3291 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3292 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3293 * aarch64-tdep.c: Use aarch64_debug_printf.
3294
3295 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3296
3297 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3298 file.
3299
3300 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3301
3302 * jit.c (jit_debug): Change type to bool.
3303 (_initialize_jit): Adjust.
3304
3305 2021-01-09 Tom Tromey <tom@tromey.com>
3306
3307 PR compile/23672
3308 * compile/compile.c (compile_to_object): Avoid crash when
3309 osabi_triplet_regexp returns NULL.
3310
3311 2021-01-09 Tom Tromey <tom@tromey.com>
3312
3313 * tracepoint.h (class collection_list) <append_exp>: Take a
3314 std::string.
3315 * tracepoint.c (collection_list::append_exp): Take a std::string.
3316 (encode_actions_1): Update.
3317
3318 2021-01-08 Tom Tromey <tromey@adacore.com>
3319
3320 * parse.c (parse_expression): Add void_context_p parameter. Use
3321 parse_exp_in_context.
3322 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3323 parse_expression.
3324 (print_command, call_command): Update.
3325 * expression.h (parse_expression): Add void_context_p parameter.
3326
3327 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3328
3329 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3330 for internalvar components that have a dynamic location.
3331
3332 2021-01-08 Tom de Vries <tdevries@suse.de>
3333
3334 PR gdb/26881
3335 * breakpoint.c (create_exception_master_breakpoint_probe)
3336 (create_exception_master_breakpoint_hook): Factor out
3337 of ...
3338 (create_exception_master_breakpoint): ... here. Only try to install
3339 the master exception breakpoint in objfile.debug using the
3340 _Unwind_DebugHook method, if the install using probes in objfile
3341 failed.
3342
3343 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3344
3345 * f-lang.c (fortran_value_subarray): Call value_from_component.
3346
3347 2021-01-07 Mike Frysinger <vapier@gentoo.org>
3348
3349 * remote-sim.c: Include memory-map.h.
3350 (gdbsim_target): Define memory_map override.
3351 (gdbsim_target::memory_map): Define.
3352
3353 2021-01-07 Tom Tromey <tromey@adacore.com>
3354
3355 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3356
3357 2021-01-07 Tom Tromey <tromey@adacore.com>
3358
3359 * ada-lang.c (add_component_interval): Start loop using vector's
3360 updated size.
3361
3362 2021-01-06 Tom Tromey <tromey@adacore.com>
3363
3364 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3365 Do not cast result.
3366 * valarith.c (fixed_point_binop): Handle multiplication
3367 and division specially.
3368 * valops.c (value_to_gdb_mpq): New function.
3369 (value_cast_to_fixed_point): Use it.
3370
3371 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3372
3373 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3374 Call wnoutrefresh instead of tui_win_info::refresh_window.
3375
3376 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3377
3378 * tui/tui-source.c (tui_source_window::show_line_number):
3379 Redraw second space after line number.
3380
3381 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3382
3383 PR tui/26927
3384 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3385 Fix source pad size in prefresh.
3386 (tui_source_window_base::show_source_content): Grow source pad
3387 if necessary.
3388
3389 2021-01-04 Mike Frysinger <vapier@gentoo.org>
3390
3391 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3392 (bfin_frame_align): Use align_down.
3393
3394 2021-01-04 Tom de Vries <tdevries@suse.de>
3395
3396 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3397 terminators that do not terminate anything.
3398
3399 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3400
3401 * debug.c (debug_print_depth): New.
3402 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3403 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3404 * infrun.c (start_step_over): Use
3405 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3406 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3407 INFRUN_SCOPED_DEBUG_START_END.
3408 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3409
3410 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3411
3412 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3413
3414 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3415
3416 * utils.c (vfprintf_unfiltered): Print timestamp only when
3417 previous debug output ended with a newline.
3418
3419 2021-01-04 Luis Machado <luis.machado@linaro.org>
3420
3421 Update all users of trad_frame_saved_reg to use the new member
3422 functions.
3423
3424 Remote all struct keywords from declarations of trad_frame_saved_reg
3425 types, except on forward declarations.
3426
3427 * aarch64-tdep.c: Update.
3428 * alpha-mdebug-tdep.c: Update.
3429 * alpha-tdep.c: Update.
3430 * arc-tdep.c: Update.
3431 * arm-tdep.c: Update.
3432 * avr-tdep.c: Update.
3433 * cris-tdep.c: Update.
3434 * csky-tdep.c: Update.
3435 * frv-tdep.c: Update.
3436 * hppa-linux-tdep.c: Update.
3437 * hppa-tdep.c: Update.
3438 * hppa-tdep.h: Update.
3439 * lm32-tdep.c: Update.
3440 * m32r-linux-tdep.c: Update.
3441 * m32r-tdep.c: Update.
3442 * m68hc11-tdep.c: Update.
3443 * mips-tdep.c: Update.
3444 * moxie-tdep.c: Update.
3445 * riscv-tdep.c: Update.
3446 * rs6000-tdep.c: Update.
3447 * s390-linux-tdep.c: Update.
3448 * s390-tdep.c: Update.
3449 * score-tdep.c: Update.
3450 * sparc-netbsd-tdep.c: Update.
3451 * sparc-sol2-tdep.c: Update.
3452 * sparc64-fbsd-tdep.c: Update.
3453 * sparc64-netbsd-tdep.c: Update.
3454 * sparc64-obsd-tdep.c: Update.
3455 * sparc64-sol2-tdep.c: Update.
3456 * tilegx-tdep.c: Update.
3457 * v850-tdep.c: Update.
3458 * vax-tdep.c: Update.
3459
3460 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3461 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3462
3463 * trad-frame.c: Update.
3464 Remove TF_REG_* enum.
3465 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3466 a trivially-constructible struct.
3467 (trad_frame_reset_saved_regs): Adjust to use member function.
3468 (trad_frame_value_p): Likewise.
3469 (trad_frame_addr_p): Likewise.
3470 (trad_frame_realreg_p): Likewise.
3471 (trad_frame_value_bytes_p): Likewise.
3472 (trad_frame_set_value): Likewise.
3473 (trad_frame_set_realreg): Likewise.
3474 (trad_frame_set_addr): Likewise.
3475 (trad_frame_set_unknown): Likewise.
3476 (trad_frame_set_value_bytes): Likewise.
3477 (trad_frame_get_prev_register): Likewise.
3478 * trad-frame.h: Update.
3479 (trad_frame_saved_reg_kind): New enum.
3480 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3481 <m_kind, m_reg>: New member fields.
3482 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3483 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3484 <is_addr, is_unknown, is_value_bytes>: New member functions.
3485
3486 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3487
3488 * target-float.c: Fix typos.
3489
3490 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
3491
3492 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3493
3494 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3495
3496 * gdbarch.sh: Update copyright year range.
3497
3498 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3499
3500 Update copyright year range in copyright header of all GDB files.
3501
3502 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3503
3504 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3505 to the list of directories to update.
3506
3507 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3508
3509 * top.c (print_gdb_version): Update copyright year.
3510
3511 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3512
3513 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
3514
3515 For older changes see ChangeLog-2020.
3516 \f
3517 Local Variables:
3518 mode: change-log
3519 left-margin: 8
3520 fill-column: 74
3521 version-control: never
3522 coding: utf-8
3523 End: