Change exp_uses_objfile to return bool
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
40d07d07
TT
12021-03-08 Tom Tromey <tom@tromey.com>
2
3 * parser-defs.h (exp_uses_objfile): Return bool.
4 * parse.c (exp_uses_objfile): Return bool.
5
0b2b0b82
TT
62021-03-08 Tom Tromey <tom@tromey.com>
7
8 * value.h (eval_skip_value): Don't declare.
9 * opencl-lang.c (eval_opencl_assign): Update.
10 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
11 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
12 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
13 * expression.h (enum noside) <EVAL_SKIP>: Remove.
14 * expop.h (typeof_operation::evaluate)
15 (decltype_operation::evaluate, unop_addr_operation::evaluate)
16 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
17 (cxx_cast_operation::evaluate): Update.
18 * eval.c (eval_skip_value): Remove.
19 (eval_op_scope, eval_op_var_entry_value)
20 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
21 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
22 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
23 (eval_op_binary, eval_op_subscript, eval_op_equal)
24 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
25 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
26 (eval_op_complement, eval_op_lognot, eval_op_ind)
27 (eval_op_memval, eval_op_preinc, eval_op_predec)
28 (eval_op_postinc, eval_op_postdec, eval_op_type)
29 (eval_binop_assign_modify, eval_op_objc_msgcall)
30 (eval_multi_subscript, logical_and_operation::evaluate)
31 (logical_or_operation::evaluate, array_operation::evaluate)
32 (operation::evaluate_for_cast)
33 (var_msym_value_operation::evaluate_for_cast)
34 (var_value_operation::evaluate_for_cast): Update.
35 * c-lang.c (c_string_operation::evaluate): Update.
36 * c-exp.h (objc_nsstring_operation::evaluate)
37 (objc_selector_operation::evaluate): Update.
38 * ada-lang.c (ada_assign_operation::evaluate)
39 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
40 (ada_atr_size): Update.
41
96db551d
TT
422021-03-08 Tom Tromey <tom@tromey.com>
43
44 * eval.c: Merge "namespace" scopes.
45
ce284361
TT
462021-03-08 Tom Tromey <tom@tromey.com>
47
48 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
49 <release>: Inline.
50 * parse.c (expr_builder::expr_builder, expr_builder::release):
51 Remove.
52
b9d06571
TT
532021-03-08 Tom Tromey <tom@tromey.com>
54
55 * parse.c (expression::expression, expression::~expression):
56 Remove.
57 * expression.h (struct expression): Inline constructor. Remove
58 destructor.
59
79ab486e
TT
602021-03-08 Tom Tromey <tom@tromey.com>
61
62 * std-operator.def (BINOP_END): Remove.
63 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
64 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
65 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
66 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
67 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
68 BINOP_END.
69
48fa6f23
TT
702021-03-08 Tom Tromey <tom@tromey.com>
71
72 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
73
43f542e3
TT
742021-03-08 Tom Tromey <tom@tromey.com>
75
76 * std-operator.def (OP_EXTENDED0): Remove.
77
5d9ba982
TT
782021-03-08 Tom Tromey <tom@tromey.com>
79
80 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
81 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
82 Remove.
83
d357570d
TT
842021-03-08 Tom Tromey <tom@tromey.com>
85
86 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
87 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
88
0922dc84
TT
892021-03-08 Tom Tromey <tom@tromey.com>
90
91 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
92 * ada-lang.c (ada_binop_minmax): Update.
93 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
94 Use BINOP_MIN and BINOP_MAX.
95
1eaebe02
TT
962021-03-08 Tom Tromey <tom@tromey.com>
97
98 * value.h (evaluate_subexp_with_coercion): Don't declare.
99 * parse.c (exp_descriptor_standard): Remove.
100 (expr_builder::expr_builder, expr_builder::release): Update.
101 (expression::expression): Remove size_t parameter.
102 (expression::~expression): Simplify.
103 (expression::resize): Remove.
104 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
105 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
106 (write_exp_elt_longcst, write_exp_elt_floatcst)
107 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
108 (write_exp_string_vector, write_exp_bitstring): Remove.
109 * p-lang.h (class pascal_language) <opcode_print_table,
110 op_print_tab>: Remove.
111 * p-lang.c (pascal_language::op_print_tab): Remove.
112 * opencl-lang.c (class opencl_language) <opcode_print_table>:
113 Remove.
114 * objc-lang.c (objc_op_print_tab): Remove.
115 (class objc_language) <opcode_print_table>: Remove.
116 * m2-lang.h (class m2_language) <opcode_print_table,
117 op_print_tab>: Remove.
118 * m2-lang.c (m2_language::op_print_tab): Remove.
119 * language.h (struct language_defn) <post_parser, expression_ops,
120 opcode_print_table>: Remove.
121 * language.c (language_defn::expression_ops)
122 (auto_or_unknown_language::opcode_print_table): Remove.
123 * go-lang.h (class go_language) <opcode_print_table,
124 op_print_tab>: Remove.
125 * go-lang.c (go_language::op_print_tab): Remove.
126 * f-lang.h (class f_language) <opcode_print_table>: Remove
127 <op_print_tab>: Remove.
128 * f-lang.c (f_language::op_print_tab): Remove.
129 * expression.h (union exp_element): Remove.
130 (struct expression): Remove size_t parameter from constructor.
131 <resize>: Remove.
132 <first_opcode>: Update.
133 <nelts, elts>: Remove.
134 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
135 (evaluate_subexp_standard, print_expression, op_string)
136 (dump_raw_expression): Don't declare.
137 * expprint.c (print_expression, print_subexp)
138 (print_subexp_funcall, print_subexp_standard, op_string)
139 (dump_raw_expression, dump_subexp, dump_subexp_body)
140 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
141 (dump_prefix_expression): Update.
142 * eval.c (evaluate_subexp): Remove.
143 (evaluate_expression, evaluate_type): Update.
144 (evaluate_subexpression_type): Remove.
145 (fetch_subexp_value): Remove "pc" parameter. Update.
146 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
147 (evaluate_subexp_standard, evaluate_subexp_for_address)
148 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
149 (evaluate_subexp_for_cast): Remove.
150 (parse_and_eval_type): Update.
151 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
152 * d-lang.c (d_op_print_tab): Remove.
153 (class d_language) <opcode_print_table>: Remove.
154 * c-lang.h (c_op_print_tab): Don't declare.
155 * c-lang.c (c_op_print_tab): Remove.
156 (class c_language, class cplus_language, class asm_language, class
157 minimal_language) <opcode_print_table>: Remove.
158 * breakpoint.c (update_watchpoint, watchpoint_check)
159 (watchpoint_exp_is_const, watch_command_1): Update.
160 * ax-gdb.h (union exp_element): Don't declare.
161 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
162 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
163 (gen_expr_binop_rest): Remove.
164 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
165 * ada-lang.c (ada_op_print_tab): Remove.
166 (class ada_language) <post_parser, opcode_print_table>: Remove.
167
f2a98603
TT
1682021-03-08 Tom Tromey <tom@tromey.com>
169
170 * go-lang.c (go_language::expression_ops): Don't declare.
171 * go-lang.h (class go_language) <expression_ops>: Remove.
172 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
173 Remove.
174 (class opencl_language) <expression_ops>: Remove.
175 * d-lang.c (class d_language) <expression_ops>: Remove.
176 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
177 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
178 (class c_language, class cplus_language, class asm_language)
179 (class minimal_language) <expression_ops>: Remove.
180
d3c54a1c
TT
1812021-03-08 Tom Tromey <tom@tromey.com>
182
183 * ada-lang.c (resolve_subexp, replace_operator_with_call)
184 (evaluate_subexp_type, assign_aggregate)
185 (aggregate_assign_positional, aggregate_assign_from_choices)
186 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
187 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
188 (ada_operator_check, ada_forward_operator_length)
189 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
190 Remove.
191 (post_parser): Update.
192 (class ada_language) <expresssion_ops>: Remove.
193
5871f0a3
TT
1942021-03-08 Tom Tromey <tom@tromey.com>
195
196 * m2-lang.h (class m2_language) <expresssion_ops,
197 exp_descriptor_modula2>: Remove.
198 * m2-lang.c (evaluate_subexp_modula2)
199 (m2_language::exp_descriptor_modula2): Remove.
200
a99be8c1
TT
2012021-03-08 Tom Tromey <tom@tromey.com>
202
203 * f-lang.h (class f_language) <expresssion_ops>: Remove.
204 <exp_descriptor_tab>: Remove.
205 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
206 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
207 (print_subexp_f, dump_subexp_body_f, operator_check_f)
208 (f_language::exp_descriptor_tab, fortran_prepare_argument):
209 Remove.
210
aa1da9ed
TT
2112021-03-08 Tom Tromey <tom@tromey.com>
212
213 * rust-lang.h (class rust_language) <expression_ops,
214 exp_descriptor_tab>: Remove.
215 * rust-lang.c (rust_evaluate_funcall): Remove.
216 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
217 EVAL_SKIP.
218 (rust_evaluate_subexp): Remove.
219 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
220 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
221 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
222
08a057e6
TT
2232021-03-08 Tom Tromey <tom@tromey.com>
224
225 * ada-exp.y: Create operations.
226 (empty_stoken): Remove.
227 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
228 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
229 (components): New global.
230 (push_component, choice_component, pop_component, pop_components):
231 New functions.
232 (associations): New global
233 (push_association, pop_association, pop_associations): New
234 functions.
235 (ada_parse): Update.
236 (write_var_from_sym, write_int): Create operations.
237 (write_exp_op_with_string): Remove.
238 (write_object_renaming, write_selectors, write_ambiguous_var)
239 (write_var_or_type, write_name_assoc): Create operations.
240 * ada-lang.h (ada_index_type): Declare.
241 * ada-lang.c (ada_index_type): No longer static.
242
d308ba78
TT
2432021-03-08 Tom Tromey <tom@tromey.com>
244
245 * f-exp.y: Create operations.
246 (f_language::parser): Update.
247
f1b8ceef
TT
2482021-03-08 Tom Tromey <tom@tromey.com>
249
250 * m2-exp.y: Create operations.
251 (m2_language::parser): Update.
252
3163898e
TT
2532021-03-08 Tom Tromey <tom@tromey.com>
254
255 * p-exp.y: Create operations.
256 (pascal_language::parser): Update.
257
9412fdcc
TT
2582021-03-08 Tom Tromey <tom@tromey.com>
259
260 * d-exp.y: Create operations.
261 (d_parse): Update.
262
bb4e0574
TT
2632021-03-08 Tom Tromey <tom@tromey.com>
264
265 * go-exp.y: Create operations.
266 (go_language::parser): Update.
267
d182f279
TT
2682021-03-08 Tom Tromey <tom@tromey.com>
269
270 * objc-lang.c (end_msglist): Create operations.
271 * c-exp.y: Change parser to create operations.
272 (write_destructor_name): Remove.
273 (c_parse): Update.
274
c1299a23
TT
2752021-03-08 Tom Tromey <tom@tromey.com>
276
277 * rust-exp.y: Create operations.
278 (rust_parser::convert_params_to_expression): Change return type.
279 (binop_maker_ftype): New typedef.
280 (maker_map): New global.
281 (rust_parser::convert_ast_to_expression): Change return type.
282 (rust_language::parser): Update.
283 (_initialize_rust_exp): Initialize maker_map.
284
4c5e7a93
TT
2852021-03-08 Tom Tromey <tom@tromey.com>
286
287 * stap-probe.c (binop_maker_ftype): New typedef.
288 (stap_maker_map): New global.
289 (stap_make_binop): New function.
290 (stap_parse_register_operand): Return operation_up.
291 (stap_parse_single_operand, stap_parse_argument_conditionally)
292 (stap_parse_argument_1): Likewise.
293 (stap_parse_argument): Create operations.
294 (stap_probe::parse_arguments): Update.
295 (_initialize_stap_probe): Initialize stap_maker_map.
296 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
297 type.
298 * i386-tdep.h (i386_stap_parse_special_token): Change return
299 type.
300 * i386-tdep.c (i386_stap_parse_special_token_triplet)
301 (i386_stap_parse_special_token_three_arg_disp)
302 (i386_stap_parse_special_token): Change return type.
303 * gdbarch.sh (stap_parse_special_token): Change return type.
304 * gdbarch.c: Rebuild.
305 * gdbarch.h: Rebuild.
306 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
307 type.
308 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
309 return type.
310
482ddd69
TT
3112021-03-08 Tom Tromey <tom@tromey.com>
312
313 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
314 * gdbarch.h: Rebuild.
315 * gdbarch.c: Rebuild.
316 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
317 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
318 return type.
319 (amd64_dtrace_parse_probe_argument): Update.
320
8227d9e2
TT
3212021-03-08 Tom Tromey <tom@tromey.com>
322
323 * parser-defs.h (struct parser_state) <push, push_new,
324 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
325 wrap2>: New methods.
326 <m_operations>: New member.
327 * parse.c (parser_state::push_c_string)
328 (parser_state::push_symbol, parser_state::push_dollar): New
329 methods.
330
4933522d
TT
3312021-03-08 Tom Tromey <tom@tromey.com>
332
333 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
334 New member.
335 (struct parser_state) <mark_struct_expression>: New method.
336 * parse.c (parser_state::mark_struct_expression): Update assert.
337 (parser_state::mark_struct_expression): New method.
338 (parser_state::mark_completion_tag): Update assert.
339 (parse_expression_for_completion): Handle expout_last_op.
340
413403fc
TT
3412021-03-08 Tom Tromey <tom@tromey.com>
342
343 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
344 now in superclass.
345 * value.h (fetch_subexp_value): Add "op" parameter.
346 * value.c (init_if_undefined_command): Update.
347 * tracepoint.c (validate_actionline, encode_actions_1): Update.
348 * stap-probe.c (stap_probe::compile_to_ax): Update.
349 * printcmd.c (set_command): Update.
350 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
351 Update.
352 * parser-defs.h (struct expr_builder) <set_operation>: New
353 method.
354 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
355 * expression.h (struct expression) <first_opcode>: Update.
356 <op>: New member.
357 * expprint.c (dump_raw_expression, dump_prefix_expression):
358 Update.
359 * expop.h (class var_value_operation) <get_symbol>: New method.
360 (class register_operation) <get_name>: New method.
361 (class equal_operation): No longer a typedef, now a subclass.
362 (class unop_memval_operation) <get_type>: New method.
363 (class assign_operation) <get_lhs>: New method.
364 (class unop_cast_operation) <get_type>: New method.
365 * eval.c (evaluate_expression, evaluate_type)
366 (evaluate_subexpression_type): Update.
367 (fetch_subexp_value): Add "op" parameter.
368 (parse_and_eval_type): Update.
369 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
370 * breakpoint.c (update_watchpoint, watchpoint_check)
371 (watchpoint_exp_is_const, watch_command_1): Update.
372 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
373 Update.
374
b0f9164c
TT
3752021-03-08 Tom Tromey <tom@tromey.com>
376
377 * ada-lang.c (ada_value_binop): Do not use op_string.
378
a88c4354
TT
3792021-03-08 Tom Tromey <tom@tromey.com>
380
381 * expprint.c (dump_for_expression): New overload.
382 * expop.h (check_objfile, dump_for_expression): Declare new
383 overloads.
384 * ada-lang.c (check_objfile): New overload.
385 (assign_component, ada_aggregate_component::uses_objfile)
386 (ada_aggregate_component::dump, ada_aggregate_component::assign)
387 (ada_aggregate_component::assign_aggregate)
388 (ada_positional_component::uses_objfile)
389 (ada_positional_component::dump, ada_positional_component::assign)
390 (ada_discrete_range_association::uses_objfile)
391 (ada_discrete_range_association::dump)
392 (ada_discrete_range_association::assign)
393 (ada_name_association::uses_objfile, ada_name_association::dump)
394 (ada_name_association::assign)
395 (ada_choices_component::uses_objfile, ada_choices_component::dump)
396 (ada_choices_component::assign)
397 (ada_others_component::uses_objfile, ada_others_component::dump)
398 (ada_others_component::assign, ada_assign_operation::evaluate):
399 New methods.
400 * ada-exp.h (ada_string_operation) <get_name>: New method.
401 (class ada_assign_operation): New.
402 (class ada_component): New.
403 (ada_component_up): New typedef.
404 (class ada_aggregate_operation, class ada_aggregate_component)
405 (class ada_positional_component, class ada_others_component)
406 (class ada_association): New.
407 (ada_association_up): New typedef.
408 (class ada_choices_component)
409 (class ada_discrete_range_association)
410 (class ada_name_association): New.
411
d8a4ed8a
TT
4122021-03-08 Tom Tromey <tom@tromey.com>
413
414 * ada-lang.c (ada_var_value_operation::resolve)
415 (ada_funcall_operation::resolve)
416 (ada_ternop_slice_operation::resolve): New methods.
417 * ada-exp.h (struct ada_resolvable): New.
418 (class ada_var_value_operation): Derive from ada_resolvable.
419 <get_block, resolve>: New methods.
420 (class ada_funcall_operation): Derive from ada_resolvable.
421 <resolve>: New method.
422 (class ada_ternop_slice_operation): Derive from ada_resolvable.
423 <resolve>: New method.
424
efe3af2f
TT
4252021-03-08 Tom Tromey <tom@tromey.com>
426
427 * ada-lang.c (ada_funcall_operation::evaluate): New method.
428 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
429 method.
430 (class ada_funcall_operation): New.
431
ebc06ad8
TT
4322021-03-08 Tom Tromey <tom@tromey.com>
433
434 * ada-lang.c (ada_structop_operation::evaluate): New method.
435 * ada-exp.h (class ada_structop_operation): New.
436
e8c33fa1
TT
4372021-03-08 Tom Tromey <tom@tromey.com>
438
439 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
440 * ada-exp.h (class ada_unop_ind_operation): New.
441
065ec826
TT
4422021-03-08 Tom Tromey <tom@tromey.com>
443
444 * ada-lang.c (ada_binop_exp): No longer static.
445 * ada-exp.h (ada_binop_exp_operation): New typedef.
446
9e99f48f
TT
4472021-03-08 Tom Tromey <tom@tromey.com>
448
449 * ada-lang.c (ada_val_atr): No longer static.
450 (ada_atr_val_operation::evaluate): New method.
451 * ada-exp.h (class ada_atr_val_operation): New.
452
7631cf6c
TT
4532021-03-08 Tom Tromey <tom@tromey.com>
454
455 * ada-lang.c (ada_pos_atr): No longer static.
456 * ada-exp.h (ada_pos_operation): New typedef.
457
7992accc
TT
4582021-03-08 Tom Tromey <tom@tromey.com>
459
460 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
461 parameters.
462 (ada_evaluate_subexp): Use it.
463
6ad3b8bf
TT
4642021-03-08 Tom Tromey <tom@tromey.com>
465
466 * ada-lang.c (ada_binop_minmax): No longer static.
467 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
468 New typedefs.
469
3f4a0053
TT
4702021-03-08 Tom Tromey <tom@tromey.com>
471
472 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
473 New method.
474 * ada-exp.h (class ada_var_msym_value_operation): New.
475
99a3b1e7
TT
4762021-03-08 Tom Tromey <tom@tromey.com>
477
478 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
479 (ada_var_value_operation::evaluate): New methods.
480 * ada-exp.h (class ada_var_value_operation): New.
481
60fa02ca
TT
4822021-03-08 Tom Tromey <tom@tromey.com>
483
484 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
485 * ada-exp.h (class ada_unop_atr_operation): New.
486
82c3886e
TT
4872021-03-08 Tom Tromey <tom@tromey.com>
488
489 * ada-lang.c (ada_binop_in_bounds): No longer static.
490 * ada-exp.h (class ada_binop_in_bounds_operation): New.
491
1b1ebfab
TT
4922021-03-08 Tom Tromey <tom@tromey.com>
493
494 * ada-lang.c (ada_ternop_slice): No longer static.
495 * ada-exp.h (class ada_ternop_slice_operation): New.
496
039e4b76
TT
4972021-03-08 Tom Tromey <tom@tromey.com>
498
499 * ada-exp.h (ada_bitwise_operation): New template class.
500 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
501 (ada_bitwise_xor_operation): New typedefs.
502
6e8fb7b7
TT
5032021-03-08 Tom Tromey <tom@tromey.com>
504
505 * ada-lang.c (ada_equal_binop): No longer static.
506 * ada-exp.h (class ada_binop_equal_operation): New.
507
d9e7db06
TT
5082021-03-08 Tom Tromey <tom@tromey.com>
509
510 * ada-lang.c (ada_mult_binop): No longer static.
511 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
512 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
513
73796c73
TT
5142021-03-08 Tom Tromey <tom@tromey.com>
515
516 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
517 * ada-exp.h (class ada_binop_addsub_operation): New.
518
cd9a3148
TT
5192021-03-08 Tom Tromey <tom@tromey.com>
520
521 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
522 (ada_resolve_variable): Declare.
523 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
524 (ada_resolve_variable): New functions.
525 (resolve_subexp): Update.
526
cf12b17f
TT
5272021-03-08 Tom Tromey <tom@tromey.com>
528
529 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
530 method.
531 * c-exp.h (class opencl_ternop_cond_operation): New.
532
944fd3b8
TT
5332021-03-08 Tom Tromey <tom@tromey.com>
534
535 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
536 method.
537 * c-exp.h (class opencl_logical_binop_operation): New.
538
33b79214
TT
5392021-03-08 Tom Tromey <tom@tromey.com>
540
541 * opencl-lang.c (opencl_structop_operation::evaluate): New
542 method.
543 * c-exp.h (class opencl_structop_operation): New.
544
2492ba36
TT
5452021-03-08 Tom Tromey <tom@tromey.com>
546
547 * opencl-lang.c (opencl_logical_not): No longer static. Change
548 parameters.
549 (evaluate_subexp_opencl): Update.
550 * c-exp.h (opencl_notequal_operation): New typedef.
551
a88c3c8d
TT
5522021-03-08 Tom Tromey <tom@tromey.com>
553
554 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
555 static. Change parameters.
556 (eval_opencl_assign): No longer static. Add "op" parameter.
557 (evaluate_subexp_opencl): Update.
558 * c-exp.h (opencl_binop_operation): New template class.
559 (opencl_assign_operation, opencl_equal_operation)
560 (opencl_notequal_operation, opencl_less_operation)
561 (opencl_gtr_operation, opencl_geq_operation)
562 (opencl_leq_operation): New typedefs.
563
e9677704
TT
5642021-03-08 Tom Tromey <tom@tromey.com>
565
566 * opencl-lang.c (opencl_value_cast): No longer static.
567 * c-exp.h (opencl_cast_type_operation): New typedef.
568
f403a4e4
TT
5692021-03-08 Tom Tromey <tom@tromey.com>
570
571 * f-exp.h (eval_op_f_allocated): Declare.
572 (fortran_allocated_operation): New typedef.
573 * f-lang.c (eval_op_f_allocated): No longer static.
574
eb4c9271
TT
5752021-03-08 Tom Tromey <tom@tromey.com>
576
577 * f-lang.c (eval_op_f_associated): New functions.
578 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
579 typedefs.
580
58a76c72
TT
5812021-03-08 Tom Tromey <tom@tromey.com>
582
583 * f-lang.c (fortran_bound_1arg::evaluate)
584 (fortran_bound_2arg::evaluate): New methods.
585 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
586 New.
587
2f98abe1
TT
5882021-03-08 Tom Tromey <tom@tromey.com>
589
590 * expop.h (class unop_addr_operation) <get_expression>: New
591 method.
592 * f-lang.c (fortran_undetermined::value_subarray)
593 (fortran_undetermined::evaluate): New methods.
594 (fortran_prepare_argument): New overload.
595 * f-exp.h (class fortran_range_operation)
596 (class fortran_undetermined): New classes.
597
638fd74a
TT
5982021-03-08 Tom Tromey <tom@tromey.com>
599
600 * rust-lang.c (rust_structop::evaluate_funcall): New method.
601 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
602 method.
603
a00b7254
TT
6042021-03-08 Tom Tromey <tom@tromey.com>
605
606 * expression.h (class operation) <evaluate_funcall>: New methods.
607 * expop.h (class scope_operation) <evaluate_funcall>: New method.
608 (class var_value_operation) <evaluate_funcall>: New method.
609 (class structop_base_operation) <evaluate_funcall>: New method.
610 (class var_msym_value_operation) <evaluate_funcall>: New method.
611 (class structop_member_base): New class.
612 (class structop_member_operation): Derive from
613 structop_member_base.
614 (class structop_mptr_operation): Derive from
615 structop_member_base.
616 (class funcall_operation): New class.
617 * eval.c (operation::evaluate_funcall)
618 (var_value_operation::evaluate_funcall)
619 (scope_operation::evaluate_funcall)
620 (structop_member_base::evaluate_funcall)
621 (structop_base_operation::evaluate_funcall): New methods.
622
1c02eb30
TT
6232021-03-08 Tom Tromey <tom@tromey.com>
624
625 * expop.h (class array_operation): New.
626 * eval.c (array_operation::evaluate_struct_tuple)
627 (array_operation::evaluate): New methods.
628
e4479080
TT
6292021-03-08 Tom Tromey <tom@tromey.com>
630
631 * expop.h (class adl_func_operation): New.
632 * eval.c (adl_func_operation::evaluate): New method.
633
95d49dfb
TT
6342021-03-08 Tom Tromey <tom@tromey.com>
635
636 * ada-lang.c (ada_unop_in_range): No longer static.
637 * ada-exp.h (class ada_unop_range_operation): New.
638
7c15d377
TT
6392021-03-08 Tom Tromey <tom@tromey.com>
640
641 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
642 No longer static.
643 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
644 (ada_atr_size_operation, ada_abs_operation): New typedefs.
645
5019124b
TT
6462021-03-08 Tom Tromey <tom@tromey.com>
647
648 * expop.h (class logical_and_operation)
649 (class logical_or_operation): New.
650 * eval.c (logical_and_operation::evaluate)
651 (logical_or_operation::evaluate): New methods.
652 * ax-gdb.c (logical_and_operation::do_generate_ax)
653 (logical_or_operation::do_generate_ax): New methods.
654
2bc9b40c
TT
6552021-03-08 Tom Tromey <tom@tromey.com>
656
657 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
658 static.
659 * m2-exp.h: New file.
660
5947d337
TT
6612021-03-08 Tom Tromey <tom@tromey.com>
662
663 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
664 * rust-exp.h (class rust_aggregate_operation): New.
665
e4407a20
TT
6662021-03-08 Tom Tromey <tom@tromey.com>
667
668 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
669 No longer static.
670 * rust-exp.h (class rust_struct_anon): New.
671 (class rust_structop): New.
672
9db6b6dd
TT
6732021-03-08 Tom Tromey <tom@tromey.com>
674
675 * rust-lang.c (rust_range): No longer static.
676 * rust-exp.h (class rust_range_operation): New.
677
6ce1ad67
TT
6782021-03-08 Tom Tromey <tom@tromey.com>
679
680 * rust-lang.c (rust_subscript): No longer static.
681 * rust-exp.h (class rust_subscript_operation): New.
682
11dd3dce
TT
6832021-03-08 Tom Tromey <tom@tromey.com>
684
685 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
686 parameter.
687 (rust_evaluate_subexp): Update.
688 * rust-exp.h (class rust_unop_ind_operation): New.
689
6fab4359
TT
6902021-03-08 Tom Tromey <tom@tromey.com>
691
692 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
693 longer static. Add "opcode" parameter.
694 (rust_evaluate_subexp): Update.
695 * rust-exp.h: New file.
696
9dcd3e29
TT
6972021-03-08 Tom Tromey <tom@tromey.com>
698
699 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
700 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
701 (eval_op_f_kind): No longer static. Add "opcode" parameter.
702 (evaluate_subexp_f): Update.
703 * f-exp.h: New file.
704
fc715eb2
TT
7052021-03-08 Tom Tromey <tom@tromey.com>
706
707 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
708 * ada-exp.h (class ada_ternop_range_operation): New.
709
cc6bd32e
TT
7102021-03-08 Tom Tromey <tom@tromey.com>
711
712 * ada-lang.c (ada_qual_operation::evaluate): New method.
713 * ada-exp.h (class ada_qual_operation): New.
714
42fecb61
TT
7152021-03-08 Tom Tromey <tom@tromey.com>
716
717 * ada-lang.c (ada_string_operation::evaluate): New method.
718 * ada-exp.h (class ada_string_operation): New.
719
03070ee9
TT
7202021-03-08 Tom Tromey <tom@tromey.com>
721
722 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
723 * ada-exp.h: New file.
724
821e72d7
TT
7252021-03-08 Tom Tromey <tom@tromey.com>
726
727 * expop.h (class multi_subscript_operation): New.
728 * eval.c (multi_subscript_operation::evaluate): New method.
729
085734dd
TT
7302021-03-08 Tom Tromey <tom@tromey.com>
731
732 * eval.c (objc_msgcall_operation::evaluate): New method.
733 * c-exp.h (class objc_msgcall_operation): New.
734
e82a5afc
TT
7352021-03-08 Tom Tromey <tom@tromey.com>
736
737 * expop.h (class var_value_operation): New.
738 * eval.c (var_value_operation::evaluate)
739 (var_value_operation::evaluate_for_address)
740 (var_value_operation::evaluate_with_coercion)
741 (var_value_operation::evaluate_for_sizeof)
742 (var_value_operation::evaluate_for_cast): New methods.
743 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
744
d9ad79d8
TT
7452021-03-08 Tom Tromey <tom@tromey.com>
746
747 * expop.h (cxx_cast_ftype): New typedef.
748 (cxx_cast_operation): New template.
749 (dynamic_cast_operation, reinterpret_cast_operation): New
750 typedefs.
751
292382f4
TT
7522021-03-08 Tom Tromey <tom@tromey.com>
753
754 * expop.h (class unop_cast_type_operation): New.
755 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
756 method.
757
165a813a
TT
7582021-03-08 Tom Tromey <tom@tromey.com>
759
760 * expop.h (class unop_cast_operation): New.
761 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
762
e5946e16
TT
7632021-03-08 Tom Tromey <tom@tromey.com>
764
765 * expop.h (class assign_modify_operation): New.
766 * eval.c (eval_binop_assign_modify): No longer static.
767 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
768
40786782
TT
7692021-03-08 Tom Tromey <tom@tromey.com>
770
771 * expop.h (class assign_operation): New.
772 * ax-gdb.c (assign_operation::do_generate_ax): New method.
773
44b675c8
TT
7742021-03-08 Tom Tromey <tom@tromey.com>
775
776 * expop.h (class type_instance_operation): New.
777 * eval.c (type_instance_operation::evaluate): New method.
778
f6b42326
TT
7792021-03-08 Tom Tromey <tom@tromey.com>
780
781 * expop.h (class op_this_operation): New.
782 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
783
cbc18219
TT
7842021-03-08 Tom Tromey <tom@tromey.com>
785
786 * expop.h (class unop_memval_operation)
787 (class unop_memval_type_operation): New.
788 * eval.c (eval_op_memval): No longer static.
789 (unop_memval_operation::evaluate_for_address)
790 (unop_memval_type_operation::evaluate_for_address)
791 (unop_memval_operation::evaluate_for_sizeof)
792 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
793 * ax-gdb.c (unop_memval_operation::do_generate_ax)
794 (unop_memval_type_operation::do_generate_ax): New methods.
795
ae4bb61e
TT
7962021-03-08 Tom Tromey <tom@tromey.com>
797
798 * expop.h (class unop_alignof_operation): New.
799 * eval.c (eval_op_alignof): No longer static.
800
85d23bda
TT
8012021-03-08 Tom Tromey <tom@tromey.com>
802
803 * expop.h (class unop_sizeof_operation): New.
804 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
805
14aff815
TT
8062021-03-08 Tom Tromey <tom@tromey.com>
807
808 * expop.h (class unop_addr_operation): New.
809 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
810
929f3aa7
TT
8112021-03-08 Tom Tromey <tom@tromey.com>
812
813 * expop.h (class typeid_operation): New.
814
0af8829e
TT
8152021-03-08 Tom Tromey <tom@tromey.com>
816
817 * expop.h (class decltype_operation): New.
818
4efc574c
TT
8192021-03-08 Tom Tromey <tom@tromey.com>
820
821 * expop.h (class typeof_operation): New.
822
5b5f5140
TT
8232021-03-08 Tom Tromey <tom@tromey.com>
824
825 * expop.h (class type_operation): New.
826 * eval.c (eval_op_type): No longer static.
827
876469ff
TT
8282021-03-08 Tom Tromey <tom@tromey.com>
829
830 * expop.h (class unop_ind_base_operation)
831 (class unop_ind_operation): New.
832 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
833 (unop_ind_base_operation::evaluate_for_address)
834 (unop_ind_base_operation::evaluate_for_sizeof): New method.
835 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
836
6d89e296
TT
8372021-03-08 Tom Tromey <tom@tromey.com>
838
839 * expop.h (unop_incr_operation): New template.
840 (preinc_operation, predec_operation, postinc_operation)
841 (postdec_operation): New typedefs.
842 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
843 (eval_op_postdec): No longer static.
844
9307d17b
TT
8452021-03-08 Tom Tromey <tom@tromey.com>
846
847 * expop.h (unary_ftype): New typedef.
848 (unop_operation, usual_ax_binop_operation): New templates.
849 (unary_plus_operation, unary_neg_operation)
850 (unary_complement_operation, unary_logical_not_operation): New
851 typedefs.
852 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
853 (eval_op_lognot): No longer static.
854 * ax-gdb.c (gen_expr_unop): New function.
855
ae64ba58
TT
8562021-03-08 Tom Tromey <tom@tromey.com>
857
858 * ax-gdb.c (comma_operation::do_generate_ax): New method.
859
d4eff4c1
TT
8602021-03-08 Tom Tromey <tom@tromey.com>
861
862 * expop.h (class repeat_operation): New.
863 * eval.c (eval_op_repeat): No longer static. Remove "op"
864 parameter.
865 (evaluate_subexp_standard): Update.
866 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
867
46916f2b
TT
8682021-03-08 Tom Tromey <tom@tromey.com>
869
870 * expop.h (class comparison_operation): New.
871 (equal_operation, notequal_operation, less_operation)
872 (gtr_operation, geq_operation, leq_operation): New typedefs.
873 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
874 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
875
224d6424
TT
8762021-03-08 Tom Tromey <tom@tromey.com>
877
878 * expop.h (class subscript_operation): New.
879 * eval.c (eval_op_subscript): No longer static.
880
373907ff
TT
8812021-03-08 Tom Tromey <tom@tromey.com>
882
883 * expop.h (class binop_operation, class usual_ax_binop_operation):
884 New.
885 (exp_operation, intdiv_operation, mod_operation, mul_operation)
886 (div_operation, rem_operation, lsh_operation, rsh_operation)
887 (bitwise_and_operation, bitwise_ior_operation)
888 (bitwise_xor_operation): New typedefs.
889 * eval.c (eval_op_binary): No longer static.
890
5133d78b
TT
8912021-03-08 Tom Tromey <tom@tromey.com>
892
893 * expop.h (class sub_operation): New.
894 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
895 (evaluate_subexp_standard): Update.
896
a94323b6
TT
8972021-03-08 Tom Tromey <tom@tromey.com>
898
899 * expop.h (class add_operation): New.
900 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
901 (evaluate_subexp_standard): Update.
902
e51e26a0
TT
9032021-03-08 Tom Tromey <tom@tromey.com>
904
905 * expop.h (class concat_operation): New.
906 * eval.c (eval_op_concat): No longer static. Remove "op"
907 parameter.
908 (evaluate_subexp_standard): Update.
909
07f724a8
TT
9102021-03-08 Tom Tromey <tom@tromey.com>
911
912 * expop.h (class structop_member_operation)
913 (class structop_mptr_operation): New.
914 * eval.c (eval_op_member): No longer static.
915
ab0609be
TT
9162021-03-08 Tom Tromey <tom@tromey.com>
917
918 * expop.h (class structop_ptr_operation): New.
919 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
920 parameter.
921
808b22cf
TT
9222021-03-08 Tom Tromey <tom@tromey.com>
923
924 * expop.h (class structop_base_operation)
925 (class structop_operation): New.
926 * eval.c (eval_op_structop_struct): No longer static.
927
8cfd3e95
TT
9282021-03-08 Tom Tromey <tom@tromey.com>
929
930 * expop.h (class complex_operation): New.
931
09db3700
TT
9322021-03-08 Tom Tromey <tom@tromey.com>
933
934 * eval.c (eval_op_objc_selector): No longer static.
935 * c-exp.h (class objc_selector_operation): New.
936
06dc61b9
TT
9372021-03-08 Tom Tromey <tom@tromey.com>
938
939 * eval.c: Include c-exp.h.
940 * c-exp.h (class objc_nsstring_operation): New.
941
72d0a711
TT
9422021-03-08 Tom Tromey <tom@tromey.com>
943
944 * c-lang.c (c_string_operation::evaluate): New method.
945 * c-exp.h: New file.
946
9186293f
TT
9472021-03-08 Tom Tromey <tom@tromey.com>
948
949 * expop.h (class ternop_cond_operation): New.
950 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
951
1594e0bb
TT
9522021-03-08 Tom Tromey <tom@tromey.com>
953
954 * expop.h (class ternop_slice_operation): New.
955 * eval.c (eval_op_ternop): No longer static.
956
b50db09f
TT
9572021-03-08 Tom Tromey <tom@tromey.com>
958
959 * expop.h (class string_operation): New.
960 * eval.c (eval_op_string): No longer static.
961
e6e01e16
TT
9622021-03-08 Tom Tromey <tom@tromey.com>
963
964 * expop.h (class internalvar_operation): New.
965 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
966
e6985c5e
TT
9672021-03-08 Tom Tromey <tom@tromey.com>
968
969 * expop.h (class bool_operation): New.
970
55bdbff8
TT
9712021-03-08 Tom Tromey <tom@tromey.com>
972
973 * expop.h (class register_operation): New.
974 * eval.c (eval_op_register): No longer static.
975 * ax-gdb.c (register_operation::do_generate_ax): New method.
976
247d935b
TT
9772021-03-08 Tom Tromey <tom@tromey.com>
978
979 * expop.h (class last_operation): New.
980
17679395
TT
9812021-03-08 Tom Tromey <tom@tromey.com>
982
983 * expop.h (class func_static_var_operation): New.
984 * eval.c (eval_op_func_static_var): No longer static.
985
b5cc3923
TT
9862021-03-08 Tom Tromey <tom@tromey.com>
987
988 * expop.h (class var_entry_value_operation): New.
989 * eval.c (eval_op_var_entry_value): No longer static.
990
0c8effa3
TT
9912021-03-08 Tom Tromey <tom@tromey.com>
992
993 * expression.h (class operation) <set_outermost>: New method.
994 * expop.h (class var_msym_value_operation): New.
995 * eval.c (eval_op_var_msym_value): No longer static.
996 (var_msym_value_operation::evaluate_for_address)
997 (var_msym_value_operation::evaluate_for_sizeof)
998 (var_msym_value_operation::evaluate_for_cast): New methods.
999 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1000 method.
1001
d336c29e
TT
10022021-03-08 Tom Tromey <tom@tromey.com>
1003
1004 * expop.h (class long_const_operation): New.
1005 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1006
d5ab122c
TT
10072021-03-08 Tom Tromey <tom@tromey.com>
1008
1009 * expop.h (class scope_operation): New.
1010 * eval.c (eval_op_scope): No longer static.
1011 (scope_operation::evaluate_for_address): New method.
1012 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1013
cae26a0c
TT
10142021-03-08 Tom Tromey <tom@tromey.com>
1015
1016 * expprint.c (float_const_operation::dump): New method.
1017 * expop.h (float_data): New typedef.
1018 (class float_const_operation): New.
1019
75f9892d
TT
10202021-03-08 Tom Tromey <tom@tromey.com>
1021
1022 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1023 * ax-gdb.c (gen_expr_binop): New function.
1024 (gen_expr_structop): Likewise.
1025
de401988
TT
10262021-03-08 Tom Tromey <tom@tromey.com>
1027
1028 * expprint.c (expr::dump_for_expression): New functions.
1029 * expop.h (dump_for_expression): New overloads.
1030 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1031 Update.
1032
e2803273
TT
10332021-03-08 Tom Tromey <tom@tromey.com>
1034
1035 * expression.h (expr::operation): New class.
1036 (expr::make_operation): New function.
1037 (expr::operation_up): New typedef.
1038 * expop.h: New file.
1039 * eval.c (operation::evaluate_for_cast)
1040 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1041 New methods.
1042 * ax-gdb.c (operation::generate_ax): New method.
1043
e18c58f2
TT
10442021-03-08 Tom Tromey <tom@tromey.com>
1045
1046 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1047 (gen_expr_binop_rest): New overload.
1048
c0d7ed8c
TT
10492021-03-08 Tom Tromey <tom@tromey.com>
1050
1051 * eval.c (eval_multi_subscript): New function.
1052 (evaluate_subexp_standard): Use it.
1053
dd5fd283
TT
10542021-03-08 Tom Tromey <tom@tromey.com>
1055
1056 * ada-lang.c (ada_binop_exp): New function.
1057 (ada_evaluate_subexp): Use it.
1058
3848abd6
TT
10592021-03-08 Tom Tromey <tom@tromey.com>
1060
1061 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1062 parameters.
1063 (ada_evaluate_subexp): Use it.
1064
38dc70cf
TT
10652021-03-08 Tom Tromey <tom@tromey.com>
1066
1067 * ada-lang.c (ada_binop_minmax): New function.
1068 (ada_evaluate_subexp): Use it.
1069
b84564fc
TT
10702021-03-08 Tom Tromey <tom@tromey.com>
1071
1072 * ada-lang.c (ada_unop_atr): New function.
1073 (ada_evaluate_subexp): Use it.
1074
b467efaa
TT
10752021-03-08 Tom Tromey <tom@tromey.com>
1076
1077 * ada-lang.c (ada_binop_in_bounds): New function.
1078 (ada_evaluate_subexp): Use it.
1079
5ce19db8
TT
10802021-03-08 Tom Tromey <tom@tromey.com>
1081
1082 * ada-lang.c (ada_ternop_slice): New function.
1083 (ada_evaluate_subexp): Use it.
1084
214b13ac
TT
10852021-03-08 Tom Tromey <tom@tromey.com>
1086
1087 * ada-lang.c (ada_equal_binop): New function.
1088 (ada_evaluate_subexp): Use it.
1089
faa1dfd7
TT
10902021-03-08 Tom Tromey <tom@tromey.com>
1091
1092 * ada-lang.c (ada_mult_binop): New function.
1093 (ada_evaluate_subexp): Use it.
1094
d05e24e6
TT
10952021-03-08 Tom Tromey <tom@tromey.com>
1096
1097 * ada-lang.c (ada_abs): New function.
1098 (ada_evaluate_subexp): Use it.
1099
68c75735
TT
11002021-03-08 Tom Tromey <tom@tromey.com>
1101
1102 * ada-lang.c (ada_atr_size): New function.
1103 (ada_evaluate_subexp): Use it.
1104
020dbabe
TT
11052021-03-08 Tom Tromey <tom@tromey.com>
1106
1107 * ada-lang.c (ada_atr_tag): New function.
1108 (ada_evaluate_subexp): Use it.
1109
7efc87ff
TT
11102021-03-08 Tom Tromey <tom@tromey.com>
1111
1112 * ada-lang.c (ada_unop_in_range): New function.
1113 (ada_evaluate_subexp): Use it.
1114
82390ab8
TT
11152021-03-08 Tom Tromey <tom@tromey.com>
1116
1117 * ada-lang.c (ada_unop_neg): New function.
1118 (ada_evaluate_subexp): Use it.
1119
62d4bd94
TT
11202021-03-08 Tom Tromey <tom@tromey.com>
1121
1122 * ada-lang.c (eval_ternop_in_range): New function.
1123 (ada_evaluate_subexp): Use it.
1124
3634f669
TT
11252021-03-08 Tom Tromey <tom@tromey.com>
1126
1127 * opencl-lang.c (eval_opencl_assign): New function.
1128 (evaluate_subexp_opencl): Use it.
1129
5e80600e
TT
11302021-03-08 Tom Tromey <tom@tromey.com>
1131
1132 * eval.c (eval_op_objc_msgcall): New function.
1133 (evaluate_subexp_standard): Use it.
1134
fb5ba2ab
TT
11352021-03-08 Tom Tromey <tom@tromey.com>
1136
1137 * eval.c (eval_binop_assign_modify): New function.
1138 (evaluate_subexp_standard): Use it.
1139
a49881f7
TT
11402021-03-08 Tom Tromey <tom@tromey.com>
1141
1142 * m2-lang.c (eval_op_m2_subscript): New function.
1143 (evaluate_subexp_modula2): Use it.
1144
41bdced5
TT
11452021-03-08 Tom Tromey <tom@tromey.com>
1146
1147 * m2-lang.c (eval_op_m2_high): New function.
1148 (evaluate_subexp_modula2): Use it.
1149
13ea014a
TT
11502021-03-08 Tom Tromey <tom@tromey.com>
1151
1152 * eval.c (evaluate_subexp_for_address_base): New function.
1153 (evaluate_subexp_for_address): Use it.
1154 (evaluate_subexp_for_sizeof_base): New function.
1155 (evaluate_subexp_for_sizeof): Use it.
1156
1fa41fc7
TT
11572021-03-08 Tom Tromey <tom@tromey.com>
1158
1159 * rust-lang.c (eval_op_rust_structop): New function.
1160 (rust_evaluate_subexp): Use it.
1161
575cae23
TT
11622021-03-08 Tom Tromey <tom@tromey.com>
1163
1164 * rust-lang.c (eval_op_rust_struct_anon): New function.
1165 (rust_evaluate_subexp): Use it.
1166
05104233
TT
11672021-03-08 Tom Tromey <tom@tromey.com>
1168
1169 * rust-lang.c (eval_op_rust_array): New function.
1170 (rust_evaluate_subexp): Use it.
1171
6fa9831f
TT
11722021-03-08 Tom Tromey <tom@tromey.com>
1173
1174 * rust-lang.c (eval_op_rust_complement): New function.
1175 (rust_evaluate_subexp): Use it.
1176
d123f9e4
TT
11772021-03-08 Tom Tromey <tom@tromey.com>
1178
1179 * rust-lang.c (eval_op_rust_ind): New function.
1180 (rust_evaluate_subexp): Use it.
1181
984af2cb
TT
11822021-03-08 Tom Tromey <tom@tromey.com>
1183
1184 * rust-lang.c (rust_subscript): Change parameters.
1185 (rust_evaluate_subexp): Update.
1186
d148f803
TT
11872021-03-08 Tom Tromey <tom@tromey.com>
1188
1189 * rust-lang.c (rust_range): Change parameters.
1190 (rust_evaluate_subexp): Update.
1191
9cbd1c20
TT
11922021-03-08 Tom Tromey <tom@tromey.com>
1193
1194 * f-lang.c (eval_op_f_allocated): New function.
1195 (evaluate_subexp_f): Use it.
1196
3c18c49c
TT
11972021-03-08 Tom Tromey <tom@tromey.com>
1198
1199 * f-lang.c (fortran_require_array): New function.
1200 (evaluate_subexp_f): Use it.
1201
216f6fcb
TT
12022021-03-08 Tom Tromey <tom@tromey.com>
1203
1204 * f-lang.c (eval_op_f_kind): New function.
1205 (evaluate_subexp_f): Use it.
1206
00f2db6f
TT
12072021-03-08 Tom Tromey <tom@tromey.com>
1208
1209 * f-lang.c (eval_op_f_cmplx): New function.
1210 (evaluate_subexp_f): Use it.
1211
93b2b5fa
TT
12122021-03-08 Tom Tromey <tom@tromey.com>
1213
1214 * f-lang.c (eval_op_f_modulo): New function.
1215 (evaluate_subexp_f): Use it.
1216
9f1a1f3c
TT
12172021-03-08 Tom Tromey <tom@tromey.com>
1218
1219 * f-lang.c (eval_op_f_floor): New function.
1220 (evaluate_subexp_f): Use it.
1221
3dc41f3c
TT
12222021-03-08 Tom Tromey <tom@tromey.com>
1223
1224 * f-lang.c (eval_op_f_ceil): New function.
1225 (evaluate_subexp_f): Use it.
1226
e08109f2
TT
12272021-03-08 Tom Tromey <tom@tromey.com>
1228
1229 * f-lang.c (eval_op_f_mod): New function.
1230 (evaluate_subexp_f): Use it.
1231
cc05c68e
TT
12322021-03-08 Tom Tromey <tom@tromey.com>
1233
1234 * f-lang.c (eval_op_f_abs): New function.
1235 (evaluate_subexp_f): Use it.
1236
aec95807
TT
12372021-03-08 Tom Tromey <tom@tromey.com>
1238
1239 * eval.c (eval_op_type): New function.
1240 (evaluate_subexp_standard): Use it.
1241
a220ead5
TT
12422021-03-08 Tom Tromey <tom@tromey.com>
1243
1244 * eval.c (eval_op_postdec): New function.
1245 (evaluate_subexp_standard): Use it.
1246
abffe116
TT
12472021-03-08 Tom Tromey <tom@tromey.com>
1248
1249 * eval.c (eval_op_postinc): New function.
1250 (evaluate_subexp_standard): Use it.
1251
9e1361b7
TT
12522021-03-08 Tom Tromey <tom@tromey.com>
1253
1254 * eval.c (eval_op_predec): New file.
1255 (evaluate_subexp_standard): Use it.
1256
00f50884
TT
12572021-03-08 Tom Tromey <tom@tromey.com>
1258
1259 * eval.c (eval_op_preinc): New function.
1260 (evaluate_subexp_standard): Use it.
1261
3aef2a07
TT
12622021-03-08 Tom Tromey <tom@tromey.com>
1263
1264 * eval.c (eval_op_memval): New function.
1265 (evaluate_subexp_standard): Use it.
1266
acee9468
TT
12672021-03-08 Tom Tromey <tom@tromey.com>
1268
1269 * eval.c (eval_op_alignof): New function.
1270 (evaluate_subexp_standard): Use it.
1271
786f70ee
TT
12722021-03-08 Tom Tromey <tom@tromey.com>
1273
1274 * eval.c (eval_op_ind): New function.
1275 (evaluate_subexp_standard): Use it.
1276
24338fb9
TT
12772021-03-08 Tom Tromey <tom@tromey.com>
1278
1279 * eval.c (eval_op_lognot): New function.
1280 (evaluate_subexp_standard): Use it.
1281
1f09ec81
TT
12822021-03-08 Tom Tromey <tom@tromey.com>
1283
1284 * eval.c (eval_op_complement): New function.
1285 (evaluate_subexp_standard): Use it.
1286
606d105f
TT
12872021-03-08 Tom Tromey <tom@tromey.com>
1288
1289 * eval.c (eval_op_neg): New function.
1290 (evaluate_subexp_standard): Use it.
1291
39f288be
TT
12922021-03-08 Tom Tromey <tom@tromey.com>
1293
1294 * eval.c (eval_op_plus): New function.
1295 (evaluate_subexp_standard): Use it.
1296
eed70b1c
TT
12972021-03-08 Tom Tromey <tom@tromey.com>
1298
1299 * eval.c (eval_op_repeat): New function.
1300 (evaluate_subexp_standard): Use it.
1301
60cdd487
TT
13022021-03-08 Tom Tromey <tom@tromey.com>
1303
1304 * eval.c (eval_op_leq): New function.
1305 (evaluate_subexp_standard): Use it.
1306
96e3efd9
TT
13072021-03-08 Tom Tromey <tom@tromey.com>
1308
1309 * eval.c (eval_op_geq): New function.
1310 (evaluate_subexp_standard): Use it.
1311
1f78d732
TT
13122021-03-08 Tom Tromey <tom@tromey.com>
1313
1314 * eval.c (eval_op_gtr): New function.
1315 (evaluate_subexp_standard): Use it.
1316
6cad1349
TT
13172021-03-08 Tom Tromey <tom@tromey.com>
1318
1319 * eval.c (eval_op_less): New function.
1320 (evaluate_subexp_standard): Use it.
1321
1fcb3559
TT
13222021-03-08 Tom Tromey <tom@tromey.com>
1323
1324 * eval.c (eval_op_notequal): New function.
1325 (evaluate_subexp_standard): Use it.
1326
0cc96de8
TT
13272021-03-08 Tom Tromey <tom@tromey.com>
1328
1329 * eval.c (eval_op_equal): New function.
1330 (evaluate_subexp_standard): Use it.
1331
288d26bc
TT
13322021-03-08 Tom Tromey <tom@tromey.com>
1333
1334 * eval.c (eval_op_subscript): New function.
1335 (evaluate_subexp_standard): Use it.
1336
7cdcdd02
TT
13372021-03-08 Tom Tromey <tom@tromey.com>
1338
1339 * eval.c (eval_op_binary): New function.
1340 (evaluate_subexp_standard): Use it.
1341
d9790e22
TT
13422021-03-08 Tom Tromey <tom@tromey.com>
1343
1344 * eval.c (eval_op_sub): New function.
1345 (evaluate_subexp_standard): Use it.
1346
aedaf9ac
TT
13472021-03-08 Tom Tromey <tom@tromey.com>
1348
1349 * eval.c (eval_op_add): New function.
1350 (evaluate_subexp_standard): Use it.
1351
b7a96ed2
TT
13522021-03-08 Tom Tromey <tom@tromey.com>
1353
1354 * eval.c (eval_op_member): New function.
1355 (evaluate_subexp_standard): Use it.
1356
fb461aa3
TT
13572021-03-08 Tom Tromey <tom@tromey.com>
1358
1359 * eval.c (eval_op_structop_ptr): New function.
1360 (evaluate_subexp_standard): Use it.
1361
3e96c4fc
TT
13622021-03-08 Tom Tromey <tom@tromey.com>
1363
1364 * eval.c (eval_op_structop_struct): New function.
1365 (evaluate_subexp_standard): Use it.
1366
f960a617
TT
13672021-03-08 Tom Tromey <tom@tromey.com>
1368
1369 * eval.c (eval_op_ternop): New function.
1370 (evaluate_subexp_standard): Use it.
1371
5c2f201e
TT
13722021-03-08 Tom Tromey <tom@tromey.com>
1373
1374 * eval.c (eval_op_concat): New function.
1375 (evaluate_subexp_standard): Use it.
1376
f871bae1
TT
13772021-03-08 Tom Tromey <tom@tromey.com>
1378
1379 * eval.c (eval_op_objc_selector): New function.
1380 (evaluate_subexp_standard): Use it.
1381
14a1c64a
TT
13822021-03-08 Tom Tromey <tom@tromey.com>
1383
1384 * eval.c (eval_op_string): New function.
1385 (evaluate_subexp_standard): Use it.
1386
ffff730b
TT
13872021-03-08 Tom Tromey <tom@tromey.com>
1388
1389 * eval.c (eval_op_register): New function.
1390 (evaluate_subexp_standard): Use it.
1391
9b1d8af6
TT
13922021-03-08 Tom Tromey <tom@tromey.com>
1393
1394 * eval.c (eval_op_func_static_var): New function.
1395 (evaluate_subexp_standard): Use it.
1396
c0df9289
TT
13972021-03-08 Tom Tromey <tom@tromey.com>
1398
1399 * eval.c (eval_op_var_msym_value): New function.
1400 (evaluate_subexp_standard): Use it.
1401
50b98adc
TT
14022021-03-08 Tom Tromey <tom@tromey.com>
1403
1404 * eval.c (eval_op_var_entry_value): New function.
1405 (evaluate_subexp_standard): Use it.
1406
ea2d29f7
TT
14072021-03-08 Tom Tromey <tom@tromey.com>
1408
1409 * eval.c (eval_op_scope): New function.
1410 (evaluate_subexp_standard): Use it.
1411
01573d73
TT
14122021-03-06 Chernov Sergey <klen_s@mail.ru>
1413
1414 PR gdb/27528:
1415 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1416
9938d15a
TT
14172021-03-06 Tom Tromey <tom@tromey.com>
1418
1419 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1420 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1421 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1422 (locate_dwz_sections, dwz_search_other_debugdirs)
1423 (dwarf2_get_dwz_file): Move to dwz.c.
1424 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1425 read.h.
1426 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1427 (dwarf2_get_dwz_file): Move from read.c.
1428
18035655
TT
14292021-03-06 Tom Tromey <tom@tromey.com>
1430
1431 * debuginfod-support.h: Include scoped_fd.h.
1432
a7308ce0
TT
14332021-03-06 Tom Tromey <tom@tromey.com>
1434
1435 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1436 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1437 (get_abbrev_section_for_cu, read_attribute_value)
1438 (get_debug_line_section): Update.
1439 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1440
fbedd546
TT
14412021-03-06 Tom Tromey <tom@tromey.com>
1442
1443 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1444 method.
1445 * dwarf2/read.c (section_is_p): Remove.
1446 (dwarf2_per_bfd::locate_sections)
1447 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1448 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1449 (dwarf2_locate_common_dwp_sections)
1450 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1451 Update.
1452
c2a62a3d
TT
14532021-03-06 Tom Tromey <tom@tromey.com>
1454
1455 * xcoffread.c: Include sect-names.h.
1456 * symfile.h (struct dwarf2_section_names, struct
1457 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1458 * dwarf2/sect-names.h: New file, from symfile.h.
1459 * dwarf2/read.c: Include sect-names.h.
1460
4444f407
TT
14612021-03-06 Tom Tromey <tom@tromey.com>
1462
1463 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1464 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1465 (abbrev_table::read): Update.
1466 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1467 (struct abbrev_info): Reformat.
1468 <attrs>: Now an array.
1469 (struct abbrev_table) <alloc_abbrev>: Remove.
1470
dd99cf0c
WP
14712021-03-06 Weimin Pan <weimin.pan@oracle.com>
1472
1473 * ctfread.c (ctf_psymtab_add_enums): New function.
1474 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1475
844be3f2
WP
14762021-03-06 Weimin Pan <weimin.pan@oracle.com>
1477
1478 * ctfread.c (read_func_kind_type): Set up function arguments.
1479
b2668f28
AB
14802021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1481 Andrew Burgess <andrew.burgess@embecosm.com>
1482
1483 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1484 includes.
1485 (riscv_csrset): New static global.
1486 (riscv_update_csrmap): New function.
1487 (riscv_iterate_over_regset_sections): Process CSRs.
1488
d782d24b
AB
14892021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1490
1491 * riscv-tdep.c (riscv_feature_name_csr): Define.
1492 (riscv_feature_name_cpu): Define.
1493 (riscv_feature_name_fpu): Define.
1494 (riscv_feature_name_virtual): Define.
1495 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1496 (riscv_freg_feature): Use riscv_feature_name_fpu.
1497 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1498 (riscv_csr_feature): Use riscv_feature_name_csr.
1499 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1500
fb8f3fc0
AB
15012021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1502 Craig Blackmore <craig.blackmore@embecosm.com>
1503
1504 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1505 (ALLDEPFILES): Add riscv-none-tdep.c.
1506 * configure: Regenerate.
1507 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1508 support.
1509 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1510 * elf-none-tdep.c: New file.
1511 * elf-none-tdep.h: New file.
1512 * riscv-none-tdep.c: New file.
1513
95ce627a
AB
15142021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1515 Andrew Burgess <andrew.burgess@embecosm.com>
1516
1517 * corelow.c: Add 'xml-tdesc.h' include.
1518 (core_target::read_description): Load the target description from
1519 the core file when possible.
1520 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1521 note.
1522 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1523 (gcore_elf_make_tdesc_note): New function.
1524 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1525 * linux-tdep.c (linux_make_corefile_notes): Add target description
1526 note.
1527
f3a5df7b
AB
15282021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1529
1530 * Makefile.in (SFILES): Add gcore-elf.c.
1531 (HFILES_NO_SRCDIR): Add gcore-elf.h
1532 * configure: Regenerate.
1533 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1534 support.
1535 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1536 (struct fbsd_collect_regset_section_cb_data): Delete.
1537 (fbsd_collect_regset_section_cb): Delete.
1538 (fbsd_collect_thread_registers): Delete.
1539 (struct fbsd_corefile_thread_data): Delete.
1540 (fbsd_corefile_thread): Delete.
1541 (fbsd_make_corefile_notes): Call
1542 gcore_elf_build_thread_register_notes instead of the now deleted
1543 FreeBSD code.
1544 * gcore-elf.c: New file, the content was moved here from
1545 linux-tdep.c, functions were renamed and given minor cleanup.
1546 * gcore-elf.h: New file.
1547 * gcore.c (gcore_find_signalled_thread): Moved here from
1548 linux-tdep.c and given a new name. Minor cleanups.
1549 * gcore.h (gcore_find_signalled_thread): Declare.
1550 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1551 (struct linux_collect_regset_section_cb_data): Delete.
1552 (linux_collect_regset_section_cb): Delete.
1553 (linux_collect_thread_registers): Delete.
1554 (linux_corefile_thread): Call
1555 gcore_elf_build_thread_register_notes.
1556 (find_signalled_thread): Delete.
1557 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1558
d1e93af6
SM
15592021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1560
1561 PR gdb/27147
1562 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1563 process_stratum_target parameter,
1564 sparc_store_inferior_registers): update callers.
1565 * sparc-nat.c (sparc_fetch_inferior_registers,
1566 sparc_store_inferior_registers): Add process_stratum_target
1567 parameter. Switch current thread before calling
1568 sparc_supply_gregset / sparc_collect_rwindow.
1569 (sparc_store_inferior_registers): Likewise.
1570 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1571 (sparc32obsd_collect_uthread): Likewise.
1572 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1573 Add assertion.
1574 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1575 sparc64obsd_supply_uthread): Add assertion.
1576
1178743e
TT
15772021-03-04 Tom Tromey <tromey@adacore.com>
1578
1579 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1580 (aux_add_nonlocal_symbols): Update.
1581 (ada_add_block_symbols): Change "found_sym" to bool.
1582
1bfa81ac
TT
15832021-03-03 Tom Tromey <tromey@adacore.com>
1584
1585 * ada-lang.c (ada_resolve_function): Update comment.
1586 (is_nonfunction, add_symbols_from_enclosing_procs)
1587 (remove_extra_symbols): Likewise.
1588 (struct match_data): Add constructor, initializers.
1589 (add_nonlocal_symbols): Remove memset.
1590 (aux_add_nonlocal_symbols): Update comment.
1591 (ada_add_block_renamings, add_nonlocal_symbols)
1592 (ada_add_all_symbols): Likewise.
1593 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1594
bbcdf9ab
TT
15952021-03-02 Tom Tromey <tromey@adacore.com>
1596
1597 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1598 (cast_to_gnat_encoded_fixed_point_type): Remove.
1599 (ada_value_cast, ada_evaluate_subexp): Update.
1600 (gnat_encoded_fixed_point_type_info)
1601 (ada_is_gnat_encoded_fixed_point_type)
1602 (gnat_encoded_fixed_point_delta)
1603 (gnat_encoded_fixed_point_scaling_factor): Remove.
1604 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1605 (gnat_encoded_fixed_point_delta)
1606 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1607 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1608 (ada_print_type): Update.
1609 * ada-valprint.c (ada_value_print_num): Update.
1610 * dwarf2/read.c (ada_get_gnat_encoded_number)
1611 (ada_get_gnat_encoded_ratio): New functions.
1612 (finish_fixed_point_type): Use them. Add parameters.
1613 (GNAT_FIXED_POINT_SUFFIX): New define.
1614 (gnat_encoded_fixed_point_type_info): New function.
1615 (read_base_type): Handle gnat encodings.
1616
5f9febe0
TT
16172021-03-02 Tom Tromey <tromey@adacore.com>
1618
1619 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1620 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1621 std::string.
1622 (GROW_VECT): Remove.
1623 (grow_vect): Remove.
1624
d1183b06
TT
16252021-03-02 Tom Tromey <tromey@adacore.com>
1626
1627 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1628 * ada-lang.c (resolve_subexp): Update.
1629 (ada_resolve_function): Accept a vector.
1630 (is_nonfunction, add_defn_to_vec)
1631 (add_symbols_from_enclosing_procs): Likewise.
1632 (num_defns_collected, defns_collected): Remove.
1633 (remove_extra_symbols): Return a vector.
1634 (remove_irrelevant_renamings): Return void.
1635 (ada_add_local_symbols): Accept a vector.
1636 (struct match_data) <obstackp>: Remove.
1637 <resultp>: New member.
1638 (aux_add_nonlocal_symbols): Update.
1639 (ada_add_block_renamings, add_nonlocal_symbols)
1640 (ada_add_all_symbols): Accept a vector.
1641 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1642 vector.
1643 (ada_lookup_symbol): Update.
1644 (ada_add_block_symbols): Accept a vector.
1645 (get_var_value, iterate_over_symbols): Update.
1646 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1647 Update.
1648
886d459f
TT
16492021-03-02 Tom Tromey <tromey@adacore.com>
1650
1651 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1652
bdcccc56
TT
16532021-03-02 Tom Tromey <tromey@adacore.com>
1654
1655 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1656 auto_obstack.
1657 <root>: Initialize.
1658 (ada_pspace_data): Remove destructor.
1659 <sym_cache>: Now a unique_ptr.
1660 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1661 (ada_get_symbol_cache): Use 'new'.
1662 (ada_clear_symbol_cache): Rewrite.
1663
1228719f
TT
16642021-03-02 Tom Tromey <tromey@adacore.com>
1665
1666 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1667 is null.
1668
bb3a4efe
LS
16692021-02-27 Lancelot Six <lsix@lancelotsix.com>
1670
1671 PR gdb/27393
1672 * source.c (add_path): Skip empty dirnames.
1673
26b43ca6 16742021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
1675
1676 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1677 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1678
dffdd8b5
SM
16792021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1680
1681 PR gdb/26861
1682 * target.c (target_mourn_inferior): Only compare pids in
1683 target_mourn_inferior.
1684
64d38fdd
JM
16852021-02-25 Jan Matyas <jmatyas@codasip.com>
1686
1687 PR gdb/26819
1688 * remote.c (remote_target::start_remote): Ensure the single
1689 thread, automatically added for remote targets without the
1690 concept of threading, is initially in set to the "resumed"
1691 state.
1692 * remote.c (remote_target::add_current_inferior_and_thread):
1693 Add return value - return the main thread.
1694
2450ad54
JV
16952021-02-25 Jan Vrany <jan.vrany@labware.com>
1696
1697 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1698 (mi_tsv_created): Likewise.
1699 (mi_tsv_deleted): Likewise.
1700
30c80d88
TV
17012021-02-25 Tom de Vries <tdevries@suse.de>
1702
1703 PR symtab/27354
1704 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1705 section_kind for &dwo_file->sections.info.
1706
68337b8b
AB
17072021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1708
1709 PR fortran/26155
1710 * f-lang.c (fortran_argument_convert): Delete declaration.
1711 (fortran_prepare_argument): New function.
1712 (evaluate_subexp_f): Move logic to new function
1713 fortran_prepare_argument.
1714
faeb9f13
AB
17152021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1716
1717 * f-exp.y (f77_keywords): Add 'associated'.
1718 * f-lang.c (fortran_associated): New function.
1719 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1720 (operator_length_f): Likewise.
1721 (print_unop_or_binop_subexp_f): New function.
1722 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1723 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1724 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1725 (operator_check_f): Likewise.
1726 * std-operator.def: Add FORTRAN_ASSOCIATED.
1727
170f4b23
AB
17282021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1729
1730 * f-exp.y (fortran_operators): Add ".xor.".
1731
aa659cfa
TV
17322021-02-24 Tom de Vries <tdevries@suse.de>
1733
1734 PR symtab/27336
1735 * dwarf2/attribute.c (attribute::form_is_signed): New function
1736 factored out of ...
1737 * dwarf2/attribute.h (attribute::as_signed): ... here.
1738 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1739 (attribute::form_is_signed): Declare.
1740 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1741 for DW_AT_decl_file.
1742
268c77c1
KB
17432021-02-24 Kevin Buettner <kevinb@redhat.com>
1744
1745 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1746 order for <sys/ptrace.h> and <asm/ptrace.h>.
1747
665af52e
KB
17482021-02-24 Kevin Buettner <kevinb@redhat.com>
1749
1750 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1751 <sys/ptrace.h>.
1752
dd80d750
AB
17532021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1754
1755 * exec.c (set_section_command): Move variable declarations into
1756 the function body, and use std::string instead of a fixed size
1757 buffer.
1758
336aa7b7
AB
17592021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1760
1761 * exec.c (exec_target::get_section_table): Delete member function.
1762 (section_table_read_available_memory): Use current_top_target, not
1763 just the exec_ops target.
1764 * target-delegates.c: Regenerate.
1765 * target.c (default_get_section_table): New function.
1766 * target.h (target_ops::get_section_table): Change default
1767 behaviour to call default_get_section_table.
1768 (default_get_section_table): Declare.
1769
02f7d26b
AB
17702021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1771
1772 * exec.c (exec_target::close): Call new clear_target_sections
1773 function.
1774 (program_space::add_target_sections): Update name of member
1775 variable.
1776 (program_space::add_target_sections): Update name of member
1777 variable.
1778 (program_space::remove_target_sections): Likewise.
1779 (exec_one_fork): Use new target_sections member function.
1780 (exec_target::get_section_table): Likewise.
1781 (exec_target::files_info): Likewise.
1782 (set_section_command): Likewise.
1783 (exec_set_section_address): Likewise.
1784 (exec_target::has_memory): Use new target_sections member
1785 function.
1786 * progspace.h (program_space::clear_target_sections): New member
1787 function.
1788 (program_space::target_sections): Rename member variable to
1789 m_target_sections, replace with a new member function.
1790 (program_space::m_target_sections): New member variable.
1791 * solib-dsbt.c (scan_dyntag): Use new member function.
1792 * solib-svr4.c (scan_dyntag): Likewise.
1793
19cf757a
AB
17942021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1795
1796 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1797 return type const.
1798 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1799 (section_table_read_available_memory): Make local const.
1800 (exec_target::xfer_partial): Make local const.
1801 (print_section_info): Make parameter const.
1802 * gdb/exec.h (print_section_info): Likewise.
1803 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1804 const.
1805 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1806 Likewise.
1807 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1808 Likewise.
1809 * gdb/s390-tdep.c (s390_load): Likewise.
1810 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1811 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1812 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1813 Rename to...
1814 (target_debug_print_const_target_section_table_p): ...this.
1815 * gdb/target-delegates.c: Regenerate.
1816 * gdb/target.c (target_get_section_table): Make return type const.
1817 (target_section_by_addr): Likewise. Also make some locals const.
1818 (memory_xfer_partial_1): Make some locals const.
1819 * gdb/target.h (struct target_ops) <get_section_table>: Make
1820 return type const.
1821 (target_section_by_addr): Likewise.
1822 (target_get_section_table): Likewise.
1823
02a79309
AB
18242021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1825
1826 * NEWS: Mention new 'maint info target-sections' command.
1827 * maint.c (maintenance_info_target_sections): New function.
1828 (_initialize_maint_cmds): Register new command.
1829
895b7b4e
AB
18302021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1831
1832 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1833 (riscv_features_from_bfd): ...this. Change parameter type to
1834 'bfd*', and update as required.
1835 (riscv_find_default_target_description): Update call to
1836 riscv_features_from_bfd. Select a default xlen based on
1837 info.bfd_arch_info.
1838 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1839
bc3c0632
AB
18402021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1841
1842 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1843 dynamic types in UNOP_IND.
1844
08ac5771
SM
18452021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1846
1847 PR gdb/26828
1848 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1849 Instantiate queue.
1850 (~dwarf2_queue_guard): Clear queue.
1851 (queue_comp_unit): Assert that queue is
1852 instantiated.
1853 (process_queue): Adjust.
1854 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1855
616c069a
SM
18562021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1857
1858 PR gdb/26828
1859 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1860 to decide whether or not to enqueue it for expansion.
1861 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1862 after calling maybe_queue_comp_unit.
1863
897608ed
SM
18642021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1865
1866 * linux-nat.c (linux_nat_filter_event): Return void.
1867
15908a11
TT
18682021-02-22 Tom Tromey <tromey@adacore.com>
1869
1870 * solib-svr4.c (enable_break): Update.
1871 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
1872 type.
1873 (target_bfd_reopen): Change parameter type.
1874 * bfd-target.h (target_bfd_reopen): Change parameter type.
1875
f53fc427
SM
18762021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1877
1878 * thread.c (add_thread_silent): Add assert.
1879 (find_thread_ptid): Add assert.
1880
de146e19
SM
18812021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1882
1883 PR gdb/27435
1884 * inf-ptrace.c (struct target_unpusher): Move to target.h.
1885 (target_unpush_up): Likewise.
1886 * procfs.c (procfs_target::attach): Push target early. Use
1887 target_unpush_up to unpush target in case of error.
1888 * target.h (struct target_unpusher): Move here.
1889 (target_unpush_up): Likewise.
1890
8488c357
KB
18912021-02-19 Kevin Buettner <kevinb@redhat.com>
1892
1893 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
1894 (which in turn includes <gnulib/config.h>) before include
1895 of <signal.h>.
1896
5a9f5403
NC
18972021-02-19 Nelson Chu <nelson.chu@sifive.com>
1898
1899 PR 27158
1900 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
1901 (decode_j_type_insn): Likewise.
1902 (decode_cj_type_insn): Likewise.
1903 (decode_b_type_insn): Likewise.
1904 (decode): Likewise.
1905
26f53cd3
TT
19062021-02-18 Tom Tromey <tom@tromey.com>
1907
1908 * expression.h (struct expression) <evaluate>: Declare method.
1909 * eval.c (evaluate_subexp): Simplify.
1910 (expression::evaluate): New method.
1911 (evaluate_expression, evaluate_type): Use expression::evaluate.
1912
6a780b67
KB
19132021-02-17 Kevin Buettner <kevinb@redhat.com>
1914
1915 * ada-lang.c (ada_fold_name): Check for non-empty string prior
1916 to accessing it.
1917 (ada_lookup_name_info): Likewise.
1918
adeab0c5
MF
19192021-02-13 Mike Frysinger <vapier@gentoo.org>
1920
1921 * aclocal.m4: Regenerate.
1922
089436f7
TV
19232021-02-12 Tom de Vries <tdevries@suse.de>
1924
1925 PR threads/26228
1926 * linux-nat.c (lin_thread_get_thread_signals): Remove.
1927 (lin_thread_signals): New static var.
1928 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1929 New function.
1930 * linux-nat.h (lin_thread_get_thread_signals): Remove.
1931 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
1932 Declare.
1933 * linux-thread-db.c (check_thread_signals): Use
1934 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
1935
96df3e28
AB
19362021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
1937
1938 * f-exp.y (f77_keywords): Add allocated.
1939 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
1940 (operator_length_f): Likewise.
1941 (print_subexp_f): Likewise.
1942 (dump_subexp_body_f): Likewise.
1943 (operator_check_f): Likewise.
1944 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
1945
05f68f52
TV
19462021-02-11 Tom de Vries <tdevries@suse.de>
1947
1948 PR symtab/27353
1949 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
1950 Return true for DW_FORM_strx.
1951
b260f8d6
TT
19522021-02-11 Tom Tromey <tromey@adacore.com>
1953
1954 PR gdb/27383:
1955 * parse.c (write_exp_symbol_reference): Write sym.block.
1956
bf3386f0
AB
19572021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1958
1959 * NEWS: Mention changes to 'maint info sections'.
1960 * maint.c (match_substring): Return a bool, fix whitespace issue.
1961 (struct single_bfd_flag_info): New struct.
1962 (bfd_flag_info): New static global.
1963 (match_bfd_flags): Return a bool, use bfd_flag_info.
1964 (print_bfd_flags): Use bfd_flag_info.
1965 (maint_print_section_info): Delete trailing whitespace.
1966 (struct maint_info_sections_opts): New struct.
1967 (maint_info_sections_option_defs): New static global.
1968 (maint_info_sections_completer): New function.
1969 (maintenance_info_sections): Use option parsing mechanism.
1970 (_initialize_maint_cmds): Update command help text for 'maint info
1971 sections' and register a command completer.
1972
4790db14
AB
19732021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1974
1975 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
1976 functionality merged into...
1977 (maint_print_all_sections): ...this new function.
1978 (maintenance_info_sections): Make use of maint_print_all_sections,
1979 allow all objects to be printed even where there's no executable.
1980
1db66e34
AB
19812021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
1982
1983 * breakpoint.c (resolve_sal_pc): Make use of
1984 bound_minimal_symbol::obj_section.
1985 * maint.c (maintenance_translate_address): Likewise.
1986 * minsyms.c (minimal_symbol_upper_bound): Likewise.
1987 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
1988 member function.
1989 * printcmd.c (info_address_command): Make use of
1990 bound_minimal_symbol::obj_section.
1991
18b8df43
AM
19922021-02-11 Alan Modra <amodra@gmail.com>
1993
1994 * arm-symbian-tdep.c: Delete.
1995 * NEWS: Mention arm-symbian removal.
1996 * Makefile.in: Remove arm-symbian-tdep entries.
1997 * configure.tgt: Remove arm*-*-symbianelf*.
1998 * doc/gdb.texinfo: Remove mention of SymbianOS.
1999 * osabi.c (gdb_osabi_names): Remove "Symbian".
2000 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2001 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2002 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2003 handling.
2004 * testsuite/gdb.base/dup-sect.exp: Likewise.
2005 * testsuite/gdb.base/long_long.exp: Likewise.
2006 * testsuite/gdb.base/solib-weak.exp: Likewise.
2007 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2008 * testsuite/gdb.python/py-section-script.exp: Likewise.
2009 * testsuite/lib/dwarf.exp: Likewise.
2010 * testsuite/lib/gdb.exp: Likewise.
2011
e92c8eb8
AB
20122021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2013
2014 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2015 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2016 (one_or_two_args): New pattern.
2017 (f77_keywords): Add lbound and ubound.
2018 * f-lang.c (fortran_bounds_all_dims): New function.
2019 (fortran_bounds_for_dimension): New function.
2020 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2021 (operator_length_f): Likewise.
2022 (print_subexp_f): Likewise.
2023 (dump_subexp_body_f): Likewise.
2024 (operator_check_f): Likewise.
2025 * std-operator.def (FORTRAN_LBOUND): Define.
2026 (FORTRAN_UBOUND): Define.
2027
a52d653e
AB
20282021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2029
2030 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2031 and set_section_index member functions where appropriate.
2032 * coffread.c (coff_symtab_read): Likewise.
2033 (process_coff_symbol): Likewise.
2034 * ctfread.c (set_symbol_address): Likewise.
2035 * dwarf2/read.c (add_partial_symbol): Likewise.
2036 (var_decode_location): Likewise.
2037 * language.c: Likewise.
2038 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2039 (compact_minimal_symbols): Likewise.
2040 (minimal_symbol_upper_bound): Likewise.
2041 * objfiles.c (relocate_one_symbol): Likewise.
2042 * psympriv.h (partial_symbol::obj_section): Likewise.
2043 (partial_symbol::address): Likewise.
2044 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2045 * stabsread.c (scan_file_globals): Likewise.
2046 * symmisc.c (dump_msymbols): Likewise.
2047 * symtab.c (general_symbol_info::obj_section): Likewise.
2048 (fixup_section): Likewise.
2049 (get_msymbol_address): Likewise.
2050 * symtab.h (general_symbol_info::section): Rename to...
2051 (general_symbol_info::m_section): ...this.
2052 (general_symbol_info::set_section_index): New member function.
2053 (general_symbol_info::section_index): Likewise.
2054 (SYMBOL_SECTION): Delete.
2055 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2056 set_section_index member functions where appropriate.
2057 (MSYMBOL_SECTION): Delete.
2058 (symbol::symbol): Update to initialize 'm_section'.
2059 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2060 (process_xcoff_symbol): Likewise.
2061
ebbc3a7d
AB
20622021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2065 MSYMBOL_OBJ_SECTION.
2066 * findvar.c (language_defn::read_var_value): Likewise.
2067 * infcmd.c (jump_command): Likewise.
2068 * linespec.c (minsym_found): Likewise.
2069 * maint.c (maintenance_translate_address): Likewise.
2070 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2071 (minimal_symbol_upper_bound): Likewise.
2072 * parse.c (find_minsym_type_and_address): Likewise.
2073 (operator_check_standard): Likewise.
2074 * printcmd.c (info_address_command): Likewise.
2075 * symmisc.c (dump_msymbols): Likewise.
2076 (print_symbol): Likewise.
2077 * symtab.c (general_symbol_info::obj_section): Define new
2078 function.
2079 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2080 (find_pc_sect_compunit_symtab): Likewise.
2081 (find_function_start_sal): Likewise.
2082 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2083 MSYMBOL_OBJ_SECTION.
2084 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2085 function.
2086 (SYMBOL_OBJ_SECTION): Delete.
2087 (MSYMBOL_OBJ_SECTION): Delete.
2088
9bb305b3
TT
20892021-02-09 Tom Tromey <tom@tromey.com>
2090
2091 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2092
cf2b2075
TV
20932021-02-09 Tom de Vries <tdevries@suse.de>
2094
2095 PR symtab/27341
2096 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2097 construct an array type. Add assert to ensure that element_type is
2098 not being modified.
2099
03642b71
AB
21002021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2101
2102 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2103 (gcore_collect_regset_section_cb): Delete.
2104 (gcore_collect_thread_registers): Delete.
2105 (gcore_build_thread_register_notes): Delete.
2106 (gcore_find_signalled_thread): Delete.
2107 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2108 'gdbarch' and 'thread_info' declarations.
2109 (gcore_build_thread_register_notes): Delete declaration.
2110 (gcore_find_signalled_thread): Likewise.
2111 * fbsd-tdep.c: Remove 'gcore.h' include.
2112 (struct fbsd_collect_regset_section_cb_data): New struct.
2113 (fbsd_collect_regset_section_cb): New function.
2114 (fbsd_collect_thread_registers): New function.
2115 (struct fbsd_corefile_thread_data): New struct.
2116 (fbsd_corefile_thread): New function.
2117 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2118 * linux-tdep.c: Remove 'gcore.h' include.
2119 (struct linux_collect_regset_section_cb_data): New struct.
2120 (linux_collect_regset_section_cb): New function.
2121 (linux_collect_thread_registers): New function.
2122 (linux_corefile_thread): Call Linux specific code.
2123 (find_signalled_thread): New function.
2124 (linux_make_corefile_notes): Call find_signalled_thread.
2125
f73e424f
TT
21262021-02-09 Tom Tromey <tromey@adacore.com>
2127
2128 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2129 not_lval value.
2130 * value.c (value_contents_copy_raw): Now static.
2131 * value.h (value_contents_copy_raw): Don't declare.
2132
a4f0544b
TT
21332021-02-09 Tom Tromey <tromey@adacore.com>
2134
2135 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2136 fields.
2137
9b3e4b5d
SV
21382021-02-08 Shahab Vahedi <shahab@synopsys.com>
2139
2140 PR tdep/27369
2141 * arc-linux-tdep.c (handle_atomic_sequence): New.
2142 (arc_linux_software_single_step): Call handle_atomic_sequence().
2143
29db1eb3
AB
21442021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2145
2146 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2147 function.
2148 (REQUIRE_WINDOW): Call is_valid member function.
2149 (REQUIRE_WINDOW_FOR_SETTER): New define.
2150 (gdbpy_tui_is_valid): Call is_valid member function.
2151 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2152 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2153 tui_active too.
2154 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2155 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2156 the function.
2157
e0c23e11
AB
21582021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2159
2160 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2161 for the title is not nullptr.
2162
1cf23996
AB
21632021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2164
2165 * tui-layout.c (saved_tui_windows): Delete.
2166 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2167 call new get_windows member function instead.
2168 (tui_get_window_by_name): Check in tui_windows.
2169 (tui_layout_window::apply): Don't add to tui_windows.
2170 * tui-layout.h (tui_layout_base::get_windows): New member function.
2171 (tui_layout_window::get_windows): Likewise.
2172 (tui_layout_split::get_windows): Likewise.
2173
a53a2657
AB
21742021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2175
2176 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2177 of the window objects.
2178
2708dbbd
AB
21792021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2180
2181 * python/python.c (gdbpy_print_stack): Reformat an error message.
2182
cd074e04
AB
21832021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2184
2185 * tui/tui-interp.c (tui_command_line_handler): New function.
2186 (tui_interp::resume): Register tui_command_line_handler as the
2187 input_handler.
2188 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2189 function.
2190 (tui_getc_1): Delete handling of '\n' and '\r'.
2191 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2192
4cf28e91
HD
21932021-02-07 Hannes Domani <ssbssa@yahoo.de>
2194
2195 * tui/tui-regs.c (tui_data_window::display_registers_from):
2196 Mark invisible register sub windows.
2197 (tui_data_window::check_register_values): Ignore invisible
2198 register sub windows.
2199
3537bc23
HD
22002021-02-07 Hannes Domani <ssbssa@yahoo.de>
2201
2202 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2203 n_spaces with a negative value.
2204
5fc2d6aa
HD
22052021-02-07 Hannes Domani <ssbssa@yahoo.de>
2206
2207 * tui/tui-regs.c (tui_data_window::display_registers_from):
2208 Add refresh_window call.
2209
83962f83
HD
22102021-02-07 Hannes Domani <ssbssa@yahoo.de>
2211
2212 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2213
0110ec82
SM
22142021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2215
2216 * symmisc.c (std_in, std_out, std_err): Remove.
2217 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2218
7c6944ab
TV
22192021-02-05 Tom de Vries <tdevries@suse.de>
2220
2221 PR breakpoints/27330
2222 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2223 glibc object file has debug info.
2224
e77b0004
TV
22252021-02-05 Tom de Vries <tdevries@suse.de>
2226
2227 PR symtab/27333
2228 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2229
0e857c82
TV
22302021-02-05 Tom de Vries <tdevries@suse.de>
2231
2232 PR breakpoints/27313
2233 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2234 syscall numbers.
2235
bdfea17e
TT
22362021-02-05 Tom Tromey <tom@tromey.com>
2237
2238 * compile/compile-c-support.c (get_compile_context)
2239 (c_get_compile_context, cplus_get_compile_context): Change return
2240 type.
2241 * language.c (language_defn::get_compile_instance): New method.
2242 * language.h (language_defn::get_compile_instance): Change return
2243 type. No longer inline.
2244 * c-lang.c (c_language::get_compile_instance): Change return type.
2245 (cplus_language::get_compile_instance): Change return type.
2246 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2247 Change return type.
2248 * compile/compile.c (compile_to_object): Update.
2249
1b30f421
TT
22502021-02-05 Tom Tromey <tom@tromey.com>
2251
2252 * parser-defs.h (write_exp_symbol_reference): Declare.
2253 * parse.c (write_exp_symbol_reference): New function.
2254 * p-exp.y (variable): Use write_exp_symbol_reference.
2255 * m2-exp.y (variable): Use write_exp_symbol_reference.
2256 * f-exp.y (variable): Use write_exp_symbol_reference.
2257 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2258 * c-exp.y (variable): Use write_exp_symbol_reference.
2259
ae710496
TV
22602021-02-05 Tom de Vries <tdevries@suse.de>
2261
2262 PR exp/27265
2263 * valarith.c (complex_binop): Throw an error if complex type can't
2264 be created.
2265
d3b54e63
TV
22662021-02-05 Tom de Vries <tdevries@suse.de>
2267
2268 PR symtab/27307
2269 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2270 return.
2271
fc9a13fb
TV
22722021-02-05 Tom de Vries <tdevries@suse.de>
2273
2274 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2275
04b4939b
MF
22762021-02-04 Mike Frysinger <vapier@gentoo.org>
2277
2278 * configure.tgt (riscv*-*-*): Set gdb_sim.
2279
6ff267e1
SM
22802021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2281
2282 * target.c (target_is_non_stop_p): Return bool.
2283 * target.h (target_is_non_stop_p): Return bool.
2284
fdbc5215
SM
22852021-02-04 Simon Marchi <simon.marchi@efficios.com>
2286
2287 * record-full.c (record_full_async_inferior_event_handler):
2288 Don't clear async event handler.
2289 (record_full_base_target::wait): Clear async event handler at
2290 beginning.
2291
85d3ad8e
SM
22922021-02-04 Simon Marchi <simon.marchi@efficios.com>
2293
2294 * record-btrace.c (record_btrace_handle_async_inferior_event):
2295 Don't clear async event handler.
2296 (record_btrace_target::wait): Clear async event handler at
2297 beginning.
2298
baa8575b
SM
22992021-02-04 Simon Marchi <simon.marchi@efficios.com>
2300
2301 * remote.c (remote_target::wait): Clear async event handler at
2302 beginning, mark if needed at the end.
2303 (remote_async_inferior_event_handler): Don't set or clear async
2304 event handler.
2305
6b36ddeb
SM
23062021-02-04 Simon Marchi <simon.marchi@efficios.com>
2307
2308 * async-event.h (async_event_handler_func): Add documentation.
2309 * async-event.c (check_async_event_handlers): Don't clear
2310 async_event_handler ready flag.
2311 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2312 flag.
2313 * record-btrace.c (record_btrace_handle_async_inferior_event):
2314 Likewise.
2315 * record-full.c (record_full_async_inferior_event_handler):
2316 Likewise.
2317 * remote-notif.c (remote_async_get_pending_events_handler):
2318 Likewise.
2319 * remote.c (remote_async_inferior_event_handler): Likewise.
2320
72d383bb
SM
23212021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2322
2323 * infrun.c (handle_inferior_event): Move stop_soon variable to
2324 inner scope.
2325
408f6686
PA
23262021-02-03 Pedro Alves <pedro@palves.net>
2327
2328 * infcmd.c (detach_command): Hold strong reference to target, and
2329 if all-stop on entry, restart threads on exit.
2330 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2331 (restart_stepped_thread): ... this new function. Also handle
2332 trap_expected.
2333 (restart_after_all_stop_detach): New function.
2334 * infrun.h (restart_after_all_stop_detach): Declare.
2335
ac7d717c
PA
23362021-02-03 Pedro Alves <pedro@palves.net>
2337
2338 * infrun.c (struct step_over_info): Initialize fields.
2339 (prepare_for_detach): Handle ongoing in-line step over.
2340
e87f0fe8
PA
23412021-02-03 Pedro Alves <pedro@palves.net>
2342
2343 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2344 here...
2345 * remote.c (remote_target::remote_detach_1): ... and here ...
2346 * target.c (target_detach): ... instead of here.
2347 * target.h (target_ops::detach): Add comment.
2348
8ff53139
PA
23492021-02-03 Pedro Alves <pedro@palves.net>
2350
2351 * infrun.c (struct wait_one_event): Move higher up.
2352 (prepare_for_detach): Abort in-progress displaced steps instead of
2353 letting them complete.
2354 (handle_one): If the inferior is detaching, don't add the thread
2355 back to the global step-over chain.
2356 (restart_threads): Don't restart threads if detaching.
2357 (handle_signal_stop): Remove inferior::detaching reference.
2358
91475068
PA
23592021-02-03 Pedro Alves <pedro@palves.net>
2360
2361 * infrun.c (prepare_for_detach): Don't release scoped_restore
2362 before returning.
2363
d758e62c
PA
23642021-02-03 Pedro Alves <pedro@palves.net>
2365
2366 * infrun.c (handle_one): New function, factored out from ...
2367 (stop_all_threads): ... here.
2368
b0083dd7
PA
23692021-02-03 Pedro Alves <pedro@palves.net>
2370
2371 * remote.c (remote_notif_stop_ack): Don't error out on
2372 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2373 (remote_target::discard_pending_stop_replies): Don't delete
2374 in-flight notification; instead, clear its contents.
2375
621cc310
PA
23762021-02-03 Pedro Alves <pedro@palves.net>
2377
2378 * remote.c (extended_remote_target::attach): Set target async in
2379 the target-non-stop path too.
2380
2ab76a18
PA
23812021-02-03 Pedro Alves <pedro@palves.net>
2382
2383 PR gdb/27055
2384 * infrun.c (handle_signal_stop): Move main context_switch call
2385 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2386
2e3773ff
LS
23872021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2388
2389 * NEWS (Changed commands): Add entry for the behavior change of
2390 the inferior command.
2391 * inferior.c (inferior_command): When no argument is given to the
2392 inferior command, display info about the currently selected
2393 inferior.
2394
e57933dc
SM
23952021-02-02 Simon Marchi <simon.marchi@efficios.com>
2396
2397 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2398 a sect_offset.
2399 (read_attribute_reprocess): Adjust.
2400
2b0c7f41
SM
24012021-02-02 Simon Marchi <simon.marchi@efficios.com>
2402
2403 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2404 <gnu_ranges_base>: ... this...
2405 <rnglists_base>: ... and this.
2406 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2407 <gnu_ranges_base>: ... this...
2408 <rnglists_base>: ... and this.
2409 (read_cutu_die_from_dwo): Adjust
2410 (dwarf2_get_pc_bounds): Adjust
2411 (dwarf2_record_block_ranges): Adjust.
2412 (read_full_die_1): Adjust
2413 (partial_die_info::read): Adjust.
2414 (read_rnglist_index): Adjust.
2415
a1c40103
SM
24162021-02-02 Simon Marchi <simon.marchi@efficios.com>
2417
2418 PR gdb/26813
2419 * dwarf2/read.c (read_loclists_rnglists_header): Add
2420 header_offset parameter and use it.
2421 (read_loclist_index): Read header of the current contribution,
2422 not the one at the beginning of the section.
2423 (read_rnglist_index): Likewise.
2424
b1829e1b
SM
24252021-02-02 Simon Marchi <simon.marchi@efficios.com>
2426
2427 PR gdb/26813
2428 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2429 requires_reprocessing flag.
2430 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2431 DW_FORM_loclistx.
2432 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2433 and DW_FORM_loclistx.
2434 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2435 instead of set_address for DW_FORM_loclistx and
2436 DW_FORM_rnglistx.
2437
0c800c6e
SM
24382021-02-02 Simon Marchi <simon.marchi@efficios.com>
2439
2440 * dwarf2/read.c (read_loclist_index): Remove bound check for
2441 start of offset.
2442 (read_rnglist_index): Likewise.
2443
05787bad
SM
24442021-02-02 Simon Marchi <simon.marchi@efficios.com>
2445
2446 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2447 of the offset.
2448
5e4d9bbc
SM
24492021-02-02 Simon Marchi <simon.marchi@efficios.com>
2450
2451 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2452
a0c1eeba
SM
24532021-02-02 Simon Marchi <simon.marchi@efficios.com>
2454
2455 * dwarf2/read.c (read_loclist_index): Change complaints into
2456 errors.
2457
2bd3e4b8
TV
24582021-02-02 Tom de Vries <tdevries@suse.de>
2459
2460 PR symtab/24620
2461 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2462 psymtab == nullptr.
2463
82a1fd3a
AB
24642021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2465
2466 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2467 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2468 here from linux-tdep.c and given a new name. Minor cleanups.
2469 (gcore_collect_regset_section_cb): Likewise.
2470 (gcore_collect_thread_registers): Likewise.
2471 (gcore_build_thread_register_notes): Likewise.
2472 (gcore_find_signalled_thread): Likewise.
2473 * gcore.h (gcore_build_thread_register_notes): Declare.
2474 (gcore_find_signalled_thread): Declare.
2475 * fbsd-tdep.c: Add 'gcore.h' include.
2476 (struct fbsd_collect_regset_section_cb_data): Delete.
2477 (fbsd_collect_regset_section_cb): Delete.
2478 (fbsd_collect_thread_registers): Delete.
2479 (struct fbsd_corefile_thread_data): Delete.
2480 (fbsd_corefile_thread): Delete.
2481 (fbsd_make_corefile_notes): Call
2482 gcore_build_thread_register_notes instead of the now deleted
2483 FreeBSD code.
2484 * linux-tdep.c: Add 'gcore.h' include.
2485 (struct linux_collect_regset_section_cb_data): Delete.
2486 (linux_collect_regset_section_cb): Delete.
2487 (linux_collect_thread_registers): Delete.
2488 (linux_corefile_thread): Call
2489 gcore_build_thread_register_notes.
2490 (find_signalled_thread): Delete.
2491 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2492
ebde6f2d
TV
24932021-01-29 Tom de Vries <tdevries@suse.de>
2494
2495 PR breakpoints/26063
2496 * infrun.c (process_event_stop_test): Reset
2497 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2498 changed.
2499
0f93c3a2
AB
25002021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2501
2502 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2503 assert. Extend the header comment.
2504
f237f998
AB
25052021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2506
2507 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2508 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2509 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2510 (tui_locator_win_info_ptr): Delete declaration.
2511 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2512 (tui_disasm_window::set_contents): Fetch state from tui_location
2513 global.
2514 (tui_get_begin_asm_address): Likewise.
2515 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2516 for locator window.
2517 (get_locator_window): Delete.
2518 (initialize_known_windows): Treat locator window just like all the
2519 rest.
2520 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2521 (tui_source_window::set_contents): Fetch state from tui_location
2522 global.
2523 (tui_source_window::showing_source_p): Likewise.
2524 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2525 (_locator): Delete.
2526 (tui_locator_win_info_ptr): Delete.
2527 (tui_locator_window::make_status_line): Fetch state from
2528 tui_location global.
2529 (tui_locator_window::rerender): Remove check of 'handle',
2530 reindent function body.
2531 (tui_locator_window::set_locator_fullname): Delete.
2532 (tui_locator_window::set_locator_info): Delete.
2533 (tui_update_locator_fullname): Delete.
2534 (tui_show_frame_info): Likewise.
2535 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2536 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2537 tui/tui-location.h and renamed to
2538 tui_location_tracker::set_location.
2539 (tui_locator_window::set_locator_fullname): Moved to
2540 tui/tui-location.h and renamed to
2541 tui_location_tracker::set_fullname.
2542 (tui_locator_window::full_name): Delete.
2543 (tui_locator_window::proc_name): Delete.
2544 (tui_locator_window::line_no): Delete.
2545 (tui_locator_window::addr): Delete.
2546 (tui_locator_window::gdbarch): Delete.
2547 (tui_update_locator_fullname): Delete declaration.
2548 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2549 for locator window.
2550 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2551 (tui_display_main): Call function on tui_location directly.
2552 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2553 * tui/tui-location.c: New file.
2554 * tui/tui-location.h: New file.
2555
8ee511af
SM
25562021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2557
2558 * gdbtypes.h (get_type_arch): Rename to...
2559 (struct type) <arch>: ... this, update all users.
2560
6ac37371
SM
25612021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2562
2563 * gdbtypes.h (struct type) <arch>: Rename to...
2564 <arch_owner>: ... this, update all users.
2565 <objfile>: Rename to...
2566 <objfile_owner>: ... this, update all users.
2567
24cf6389
AB
25682021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2569
2570 * gdbcmd.h (execute_command_to_string): Update comment.
2571 * top.c (execute_command_to_string): Update header comment.
2572
2a7f6487
TV
25732021-01-28 Tom de Vries <tdevries@suse.de>
2574
2575 PR breakpoints/27205
2576 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2577 (create_longjmp_master_breakpoint_names): New function, factored out
2578 of ...
2579 (create_longjmp_master_breakpoint): ... here. Only try to install
2580 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2581 breakpoint in libc.so failed.
2582
59b59f08
LS
25832021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2584
2585 PR gdb/27133
2586 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2587 unique_ptr is released when the wrapped pointer is kept for later
2588 use.
2589
807f647c
MM
25902021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2591
2592 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2593 BLR and BR instructions.
2594 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2595 (enum aarch64_masks): New.
2596
4ef367bf
TT
25972021-01-26 Tom Tromey <tromey@adacore.com>
2598
2599 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2600 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2601 (windows_init_thread_list, windows_nat::handle_load_dll)
2602 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2603 (windows_nat_target::resume)
2604 (windows_nat_target::get_windows_debug_event)
2605 (windows_nat_target::interrupt, windows_xfer_memory)
2606 (windows_nat_target::close): Update.
2607 * nat/windows-nat.c (DEBUG_EVENTS): Use
2608 debug_prefixed_printf_cond.
2609 (matching_pending_stop, fetch_pending_stop)
2610 (continue_last_debug_event): Update.
2611
4cb1265b
MS
26122020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2613
2614 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2615 elfcore_write_file_note.
2616
d0cc52bd
SV
26172021-01-26 Shahab Vahedi <shahab@synopsys.com>
2618
2619 * arc-tdep.c (arc_add_reggroups): New function.
2620 (arc_gdbarch_init): Call arc_add_reggroups.
2621
ac3571d9 26222021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
2623
2624 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2625
9f6c202e
TV
26262021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2627 Simon Marchi <simon.marchi@polymtl.ca>
2628 Tom de Vries <tdevries@suse.de>
2629
2630 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2631 DW_AT_ranges.
2632
a625a8c9
TT
26332021-01-25 Tom Tromey <tromey@adacore.com>
2634
2635 * dwarf2/read.c (get_mpz): New function.
2636 (get_dwarf2_rational_constant): Use it.
2637
19184910
TT
26382021-01-25 Tom Tromey <tromey@adacore.com>
2639
2640 * ada-lang.c (resolve_subexp): Handle array context.
2641
b10bae18
TT
26422021-01-23 Tom Tromey <tom@tromey.com>
2643
2644 PR compile/25575
2645 * compile/compile-loc2c.c (note_register): New function.
2646 (pushf_register_address, pushf_register): Use it.
2647
3637a558
TT
26482021-01-23 Tom Tromey <tom@tromey.com>
2649
2650 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2651 Change type of "registers_used".
2652 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2653 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2654 (locexpr_generate_c_location, loclist_generate_c_location): Change
2655 type of "registers_used".
2656 * compile/compile.h (compile_dwarf_expr_to_c)
2657 (compile_dwarf_bounds_to_c): Update.
2658 * compile/compile-loc2c.c (pushf_register_address)
2659 (pushf_register, do_compile_dwarf_expr_to_c)
2660 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2661 of "registers_used".
2662 * compile/compile-c.h (generate_c_for_variable_locations):
2663 Update.
2664 * compile/compile-c-symbols.c (generate_vla_size)
2665 (generate_c_for_for_one_variable): Change type of
2666 "registers_used".
2667 (generate_c_for_variable_locations): Return std::vector.
2668 * compile/compile-c-support.c (generate_register_struct): Change
2669 type of "registers_used".
2670 (compute): Update.
2671
9f7f6cb8
TT
26722021-01-23 Tom Tromey <tom@tromey.com>
2673
2674 * compile/compile-internal.h (class compile_instance)
2675 <set_arguments>: Change return type.
2676 * compile/compile.c (compile_to_object): Remove call to reset.
2677 (compile_instance::set_arguments): Change return type.
2678
dd5ca05f
SM
26792021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2680
2681 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2682 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2683
d3ee35db
LS
26842021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2685
2686 * Makefile.in (SELFTESTS_SRCS): Add
2687 unittests/gdb_tilde_expand-selftests.c.
2688 * unittests/gdb_tilde_expand-selftests.c: New file.
2689
9d2d8a16
AB
26902021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2691
2692 PR cli/25956
2693 * NEWS: Mention new command.
2694 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2695 (version_style): Define.
2696 (cli_style_option::cli_style_option): Add intensity parameter, and
2697 use as appropriate.
2698 (_initialize_cli_style): Register version style set/show commands.
2699 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2700 (version_style): Declare.
2701 * top.c (print_gdb_version): Use version_stype, and styled_string
2702 to print the GDB version string.
2703
e7b43072
AB
27042021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2705
2706 * utils.c (emit_style_escape): Only emit an escape sequence if the
2707 requested style is different than the current applied style.
2708 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2709 current applied_style.
2710 (fputs_styled): Remove is_default check.
2711 (fputs_styled_unfiltered): Likewise.
2712 (vfprintf_styled_no_gdbfmt): Likewise.
2713
2189c312
SM
27142021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2715
2716 * remote.h (remote_debug_printf): New.
2717 (remote_debug_printf_nofunc): New.
2718 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2719 * remote.c: Use above macros throughout file.
2720
02349803
SM
27212021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2722
2723 * remote.h (remote_debug): Change to bool.
2724 * remote.c (remote_debug): Change to bool.
2725 (_initialize_remote): Adjust.
2726
cda09ec9
SM
27272021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2728
2729 * target.h (remote_debug): Move to...
2730 * remote.h (remote_debug): ... here.
2731 * top.c (remote_debug): Move to...
2732 * remote.c (remote_debug): ... here.
2733 * remote-sim.c: Include remote.h.
2734
baf2b57f
SM
27352021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2736
2737 * cli/cli-cmds.c (show_remote_debug): Remove.
2738 (show_remote_timeout): Remove.
2739 (_initialize_cli_cmds): Don't register commands.
2740 * remote.c (show_remote_debug): Move here.
2741 (show_remote_timeout): Move here.
2742 (_initialize_remote): Register commands.
2743
344e9841
SM
27442021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2745
2746 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2747 type::objfile method instead.
2748
30625020
SM
27492021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2750
2751 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2752 use the type::is_objfile_owned method.
2753
5b7d941b
SM
27542021-01-22 Simon Marchi <simon.marchi@efficios.com>
2755
2756 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2757 (TYPE_OWNER): Remove.
2758 (TYPE_OBJFILE): Adjust.
2759 (struct main_type) <flag_objfile_owned>: Rename to...
2760 <m_flag_objfile_owned>: ... this.
2761 <owner>: Rename to...
2762 <m_owner>: ... this.
2763 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2764 methods.
2765 (TYPE_ALLOC): Adjust.
2766 * gdbtypes.c (alloc_type): Adjust.
2767 (alloc_type_arch): Adjust.
2768 (alloc_type_copy): Adjust.
2769 (get_type_arch): Adjust.
2770 (smash_type): Adjust.
2771 (lookup_array_range_type): Adjust.
2772 (recursive_dump_type): Adjust.
2773 (copy_type_recursive): Adjust.
2774 * compile/compile-c-types.c (convert_func): Adjust.
2775 (convert_type_basic): Adjust.
2776 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2777 Adjust.
2778 * language.c
2779 (language_arch_info::type_and_symbol::alloc_type_symbol):
2780 Adjust.
2781
d5d24e12
LM
27822021-01-21 Luis Machado <luis.machado@linaro.org>
2783
2784 * coffread.c (enter_linenos): Passing string to complaint.
2785 * valops.c (value_assign): Make array view.
2786
a59902a7
SM
27872021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2788
2789 * auto-load.h (debug_auto_load): Move here.
2790 (auto_load_debug_printf): New.
2791 * auto-load.c: Use auto_load_debug_printf.
2792 (debug_auto_load): Move to header.
2793 * linux-thread-db.c (try_thread_db_load): Use
2794 auto_load_debug_printf.
2795 * main.c (captured_main_1): Likewise.
2796
d3abc0ce
SM
27972021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2798
2799 * f-valprint.c (f77_array_offset_tbl): Remove.
2800
1e15fcac
SM
28012021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2802
2803 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2804
439706e6
SM
28052021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2806
2807 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2808 of gdb_select.
2809
325d39e4
HD
28102021-01-21 Hannes Domani <ssbssa@yahoo.de>
2811
2812 PR python/19151
2813 * python/py-breakpoint.c (bppy_get_location): Handle
2814 bp_hardware_breakpoint.
2815 (bppy_init): Likewise.
2816 (gdbpy_breakpoint_created): Likewise.
2817
7cb6d92a
SM
28182021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2819
2820 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2821
d4dd4fca
SM
28222021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2823
2824 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2825 (_initialize_gdb_bfd): Adjust.
2826
de53369b
SM
28272021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2828
2829 PR gdb/26828
2830 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2831
17e593e9
SM
28322021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2833
2834 * dwarf2/read.c (follow_die_offset): Add logging.
2835 (dwarf2_per_objfile::age_comp_units): Add logging.
2836
6bd434d6
SM
28372021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2838
2839 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2840 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2841 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2842 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2843 * arm-tdep.c (struct frame_unwind): Make static.
2844 * auto-load.c (auto_load_safe_path_vec): Make static.
2845 * csky-tdep.c (csky_stub_unwind): Make static.
2846 * gdbarch.c (gdbarch_data_registry): Make static.
2847 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2848 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2849 * i386-tdep.c (i386_frame_setup_skip_insns,
2850 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2851 Make static.
2852 * infrun.c (observer_mode): Make static.
2853 * linux-nat.c (sigchld_action): Make static.
2854 * linux-thread-db.c (thread_db_list): Make static.
2855 * maint-test-options.c (maintenance_test_options_list):
2856 * mep-tdep.c (mep_csr_registers): Make static.
2857 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2858 (stats): Make static.
2859 * nat/linux-osdata.c (struct osdata_type): Make static.
2860 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2861 * progspace.c (last_program_space_num): Make static.
2862 * python/py-param.c (struct parm_constant): Remove struct type
2863 name.
2864 (parm_constants): Make static.
2865 * python/py-record-btrace.c (btpy_list_methods): Make static.
2866 * python/py-record.c (recpy_gap_type): Make static.
2867 * record.c (record_goto_cmdlist): Make static.
2868 * regcache.c (regcache_descr_handle): Make static.
2869 * registry.h (DEFINE_REGISTRY): Make definition static.
2870 * symmisc.c (std_in, std_out, std_err): Make static.
2871 * top.c (previous_saved_command_line): Make static.
2872 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
2873 static.
2874 * unittests/command-def-selftests.c (nr_duplicates,
2875 nr_invalid_prefixcmd, lists): Make static.
2876 * unittests/observable-selftests.c (test_notification): Make
2877 static.
2878 * unittests/optional/assignment/1.cc (counter): Make static.
2879 * unittests/optional/assignment/2.cc (counter): Make static.
2880 * unittests/optional/assignment/3.cc (counter): Make static.
2881 * unittests/optional/assignment/4.cc (counter): Make static.
2882 * unittests/optional/assignment/5.cc (counter): Make static.
2883 * unittests/optional/assignment/6.cc (counter): Make static.
2884
a6c11cbb
JS
28852021-01-20 Joel Sherrill <joel@rtems.org>
2886
2887 PR gdb/27219
2888 * remote.c (struct remote_thread_info) <resume_state>: Rename
2889 to...
2890 <get_resume_state>: ... this.
2891 (remote_target::resume): Adjust.
2892 (remote_target::commit_resume): Adjust.
2893 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
2894
6f52fdf4
SDJ
28952021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
2896 Tom Tromey <tom@tromey.com>
2897
2898 * stap-probe.c (stap_parse_single_operand): Handle '!'
2899 operator.
2900 (stap_parse_argument_conditionally): Likewise.
2901 Skip spaces after processing open-parenthesis sub-expression.
2902 (stap_parse_argument_1): Skip spaces after call to
2903 stap_parse_argument_conditionally.
2904 Handle case when right-side expression is a parenthesized
2905 sub-expression.
2906 Skip spaces after call to stap_parse_argument_1.
2907
1c3b85ad
LS
29082021-01-19 Lancelot SIX <lsix@lancelotsix.com>
2909
2910 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
2911
a9a87d35
LM
29122021-01-19 Luis Machado <luis.machado@linaro.org>
2913
2914 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
2915 memory and save data.
2916 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
2917 (trad_frame_set_unknown, trad_frame_set_value_bytes)
2918 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2919 (trad_frame_value_bytes_p): Remove.
2920 (trad_frame_reset_saved_regs): Adjust documentation.
2921 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
2922 constructor and reset the state of the registers.
2923 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
2924 (trad_frame_value_bytes_p, trad_frame_set_value)
2925 (trad_frame_set_realreg, trad_frame_set_addr)
2926 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
2927 (trad_frame_set_reg_realreg): Update to call member function.
2928 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
2929 (trad_frame_get_prev_register): Likewise.
2930
2931 * aarch64-tdep.c (aarch64_analyze_prologue)
2932 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
2933 (aarch64_prologue_prev_register): Update to use member functions.
2934 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
2935 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
2936 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
2937 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
2938 (arm_make_epilogue_frame_cache): Likewise.
2939 * avr-tdep.c (avr_frame_unwind_cache)
2940 (avr_frame_prev_register): Likewise.
2941 * cris-tdep.c (cris_scan_prologue): Likewise.
2942 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
2943 * frv-tdep.c (frv_analyze_prologue): Likewise.
2944 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
2945 * lm32-tdep.c (lm32_frame_cache): Likewise.
2946 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
2947 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2948 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
2949 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
2950 (reset_saved_regs): Adjust to set realreg.
2951 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
2952 call member functions.
2953 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
2954 * s390-tdep.c (s390_prologue_frame_unwind_cache)
2955 (s390_backchain_frame_unwind_cache): Likewise.
2956 * score-tdep.c (score7_analyze_prologue)
2957 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
2958 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
2959 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
2960 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
2961 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
2962 * tilegx-tdep.c (tilegx_analyze_prologue)
2963 (tilegx_frame_cache): Likewise.
2964 * v850-tdep.c (v850_frame_cache): Likewise.
2965 * vax-tdep.c (vax_frame_cache): Likewise.
2966
bdec2917
LM
29672021-01-19 Luis Machado <luis.machado@linaro.org>
2968
2969 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
2970 of buffer + length.
2971 (put_frame_register_bytes): Likewise.
2972 Adjust documentation.
2973 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
2974 (safe_frame_unwind_memory): Likewise.
2975 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
2976 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
2977 gdb::array_view.
2978 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
2979 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
2980 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
2981 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
2982 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
2983 * dwarf2/loc.c (rw_pieced_value): Likewise.
2984 * hppa-tdep.c (hppa_frame_cache): Likewise.
2985 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
2986 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
2987 * i386-linux-tdep.c (i386_linux_sigtramp_start)
2988 (i386_linux_rt_sigtramp_start): Likewise.
2989 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
2990 * i386-tdep.c (i386_register_to_value): Likewise.
2991 * i387-tdep.c (i387_register_to_value): Likewise.
2992 * ia64-tdep.c (ia64_register_to_value): Likewise.
2993 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
2994 (m32r_linux_rt_sigtramp_start): Likewise.
2995 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
2996 * m68k-tdep.c (m68k_register_to_value): Likewise.
2997 * mips-tdep.c (mips_register_to_value)
2998 (mips_value_to_register): Likewise.
2999 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3000 (ppcfbsd_sigtramp_frame_cache): Likewise.
3001 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3002 (ppcobsd_sigtramp_frame_cache): Likewise.
3003 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3004 (rs6000_register_to_value): Likewise.
3005 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3006 * tramp-frame.c (tramp_frame_start): Likewise.
3007 * valops.c (value_assign): Likewise.
3008
ccbe4c82
LM
30092021-01-19 Luis Machado <luis.machado@linaro.org>
3010
3011 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3012 array_view.
3013 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3014 instead of buffer and size.
3015 (trad_frame_set_reg_value_bytes): Likewise.
3016 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3017 (trad_frame_set_value_bytes): Likewise.
3018
0e7620dc
MF
30192021-01-18 Mike Frysinger <vapier@gentoo.org>
3020
3021 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3022
6a9ad81c
AB
30232021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3024
3025 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3026 (riscv_fbsd_gregset): Use riscv_supply_regset.
3027 (riscv_fbsd_fpregset): Likewise.
3028 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3029 (riscv_linux_fregset): Likewise.
3030 * riscv-tdep.c (riscv_supply_regset): Define new function.
3031 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3032
d3d7d1ba
TV
30332021-01-18 Tom de Vries <tdevries@suse.de>
3034
3035 PR tdep/27172
3036 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3037 New macro.
3038 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3039 for SEGV_BNDERR.
3040
aa2838cc
SM
30412021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3042
3043 * remote.c (class remote_target) <remote_hostio_send_command,
3044 remote_hostio_parse_result>: Constify parameter.
3045 (remote_hostio_parse_result): Likewise.
3046 (remote_target::remote_hostio_send_command): Adjust.
3047 (remote_target::remote_hostio_pread_vFile): Adjust.
3048 (remote_target::fileio_readlink): Adjust.
3049 (remote_target::fileio_fstat): Adjust.
3050
b5c8f22d
SM
30512021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3052
3053 * remote.c (remote_target::start_remote): Move wait_status to
3054 narrower scope.
3055
e3b2741b
SM
30562021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3057
3058 * remote.c (class remote_target):
3059 <add_current_inferior_and_thread>: Constify parameter.
3060 (stop_reply_extract_thread): Likewise.
3061 (remote_target::get_current_thread): Likewise.
3062 (remote_target::add_current_inferior_and_thread): Likewise.
3063
cecb1912
SM
30642021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3065
3066 * remote.c (class remote_target)
3067 <remote_unpack_thread_info_response,
3068 parse_threadlist_response>: Constify parameter and/or return
3069 value and or local variable.
3070 (stub_unpack_int): Likewise.
3071 (unpack_nibble): Likewise.
3072 (unpack_byte): Likewise.
3073 (unpack_int): Likewise.
3074 (unpack_string): Likewise.
3075 (unpack_threadid): Likewise.
3076 (remote_target::remote_unpack_thread_info_response): Likewise.
3077 (remote_target::parse_threadlist_response): Likewise.
3078
5a11fff0
AB
30792021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3080
3081 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3082
17e89137
LS
30832021-01-14 Lancelot Six <lsix@lancelotsix.com>
3084
3085 * MAINTAINERS (Write After Approval): Add myself.
3086
58eadc4b
BE
30872021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3088
3089 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3090 because is_trivially_default_constructible was first implemented with
3091 gcc-5.
3092
5fae2a2c
TV
30932021-01-14 Tom de Vries <tdevries@suse.de>
3094
3095 PR breakpoints/27151
3096 * objfiles.h (in_plt_section): Handle .plt.sec.
3097
8f66807b
AB
30982021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3099
3100 PR gdb/26819
3101 * remote.c
3102 (remote_target::select_thread_for_ambiguous_stop_reply): New
3103 member function.
3104 (remote_target::process_stop_reply): Call
3105 select_thread_for_ambiguous_stop_reply.
3106
bd497355
SM
31072021-01-13 Simon Marchi <simon.marchi@efficios.com>
3108
3109 * record-btrace.c (class record_btrace_target): Remove.
3110 (record_btrace_target::commit_resume): Remove.
3111 * record-full.c (class record_full_target): Remove.
3112 (record_full_target::commit_resume): Remove.
3113
c9d22089
SM
31142021-01-13 Simon Marchi <simon.marchi@efficios.com>
3115
3116 * remote.c (enum class resume_state): New.
3117 (struct resumed_pending_vcont_info): New.
3118 (struct remote_thread_info) <resume_state, set_not_resumed,
3119 set_resumed_pending_vcont, resumed_pending_vcont_info,
3120 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3121 New.
3122 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3123 (remote_target::remote_add_thread): Adjust.
3124 (remote_target::process_initial_stop_replies): Adjust.
3125 (remote_target::resume): Adjust.
3126 (remote_target::commit_resume): Rely on state in
3127 remote_thread_info and not on tp->executing.
3128 (remote_target::process_stop_reply): Adjust.
3129
d8d1feb4
SM
31302021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3131
3132 * arc-tdep.h (arc_debug_printf): New.
3133 * arc-tdep.c: Use arc_debug_printf.
3134 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3135 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3136 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3137
fb0f5031
SM
31382021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3139
3140 * arc-tdep.h (arc_debug): Change type to bool.
3141 * arc-tdep.c (arc_debug): Change type to bool.
3142 (arc_analyze_prologue): Adjust.
3143 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3144 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3145
5bf7e91b
SM
31462021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3147
3148 * auto-load.c (auto_load_objfile_script_1): Use bool.
3149 (execute_script_contents): Use bool.
3150
db972fce
SM
31512021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3152
3153 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3154 comment here.
3155 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3156 comment to header.
3157 * extension-priv.h (struct extension_language_script_ops)
3158 <auto_load_enabled>: Return bool.
3159 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3160 comment here.
3161 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3162 comment to header.
3163 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3164 move comment here.
3165 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3166 move comment to header.
3167 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3168 move comment here.
3169 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3170 move comment to header.
3171
5e12f48f
SM
31722021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3173
3174 * auto-load.h (file_is_auto_load_safe): Change return type to
3175 bool, move comment here.
3176 * auto-load.c (file_is_auto_load_safe): Change return type and
3177 advice_printed to bool. Move comment to header.
3178
54ca9002
SM
31792021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3180
3181 * jit.c (jit_debug_printf): New, use throughout file.
3182
24a7f1b5
SM
31832021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3184
3185 * infrun.c (normal_stop): Fix indentation.
3186
fe7a351a
SM
31872021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3188
3189 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3190 declarations to ...
3191 * symfile.h: ... here.
3192 * symfile.c: Update doc.
3193
16e9019e
SM
31942021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3195
3196 * target.h (baud_rate, serial_parity): Move declarations...
3197 * serial.h: ... here.
3198 * main.c: Include serial.h.
3199 * serial.c (baud_rate, serial_parity): Update doc.
3200
b2f2ae0d
SM
32012021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3202
3203 * top.c (pre_init_ui_hook): Remove.
3204
5291fe3c
SP
32052021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3206
3207 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3208 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3209 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3210 * features/aarch64-fpu.xml: Add bfloat16 type.
3211
ce38f5ed
AB
32122021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3213
3214 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3215
7c654b71
AB
32162021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3217
3218 * f-exp.y (dot_ops): Rename to...
3219 (fortran_operators): ...this. Add a header comment. Add symbol
3220 based operators.
3221 (yylex): Update to use fortran_operators not dot_ops. Remove
3222 special handling for '**', this is now included in
3223 fortran_operators.
3224
c6185dce
SM
32252021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3226
3227 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3228 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3229 * aarch64-tdep.c: Use aarch64_debug_printf.
3230
eef401dc
SM
32312021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3232
3233 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3234 file.
3235
062eaacb
SM
32362021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3237
3238 * jit.c (jit_debug): Change type to bool.
3239 (_initialize_jit): Adjust.
3240
54585eee
TT
32412021-01-09 Tom Tromey <tom@tromey.com>
3242
3243 PR compile/23672
3244 * compile/compile.c (compile_to_object): Avoid crash when
3245 osabi_triplet_regexp returns NULL.
3246
bc167b6b
TT
32472021-01-09 Tom Tromey <tom@tromey.com>
3248
3249 * tracepoint.h (class collection_list) <append_exp>: Take a
3250 std::string.
3251 * tracepoint.c (collection_list::append_exp): Take a std::string.
3252 (encode_actions_1): Update.
3253
8fc48b79
TT
32542021-01-08 Tom Tromey <tromey@adacore.com>
3255
3256 * parse.c (parse_expression): Add void_context_p parameter. Use
3257 parse_exp_in_context.
3258 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3259 parse_expression.
3260 (print_command, call_command): Update.
3261 * expression.h (parse_expression): Add void_context_p parameter.
3262
3c8c6de2
AB
32632021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3264
3265 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3266 for internalvar components that have a dynamic location.
3267
1940319c
TV
32682021-01-08 Tom de Vries <tdevries@suse.de>
3269
3270 PR gdb/26881
3271 * breakpoint.c (create_exception_master_breakpoint_probe)
3272 (create_exception_master_breakpoint_hook): Factor out
3273 of ...
3274 (create_exception_master_breakpoint): ... here. Only try to install
3275 the master exception breakpoint in objfile.debug using the
3276 _Unwind_DebugHook method, if the install using probes in objfile
3277 failed.
3278
e3436813
AB
32792021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3280
3281 * f-lang.c (fortran_value_subarray): Call value_from_component.
3282
e904f56d
MF
32832021-01-07 Mike Frysinger <vapier@gentoo.org>
3284
3285 * remote-sim.c: Include memory-map.h.
3286 (gdbsim_target): Define memory_map override.
3287 (gdbsim_target::memory_map): Define.
3288
959d6a67
TT
32892021-01-07 Tom Tromey <tromey@adacore.com>
3290
3291 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3292
d4813f10
TT
32932021-01-07 Tom Tromey <tromey@adacore.com>
3294
3295 * ada-lang.c (add_component_interval): Start loop using vector's
3296 updated size.
3297
b49180ac
TT
32982021-01-06 Tom Tromey <tromey@adacore.com>
3299
3300 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3301 Do not cast result.
3302 * valarith.c (fixed_point_binop): Handle multiplication
3303 and division specially.
3304 * valops.c (value_to_gdb_mpq): New function.
3305 (value_cast_to_fixed_point): Use it.
3306
55195361
HD
33072021-01-05 Hannes Domani <ssbssa@yahoo.de>
3308
3309 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3310 Call wnoutrefresh instead of tui_win_info::refresh_window.
3311
1b6d4bb2
HD
33122021-01-05 Hannes Domani <ssbssa@yahoo.de>
3313
3314 * tui/tui-source.c (tui_source_window::show_line_number):
3315 Redraw second space after line number.
3316
b5ff370e
HD
33172021-01-05 Hannes Domani <ssbssa@yahoo.de>
3318
3319 PR tui/26927
3320 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3321 Fix source pad size in prefresh.
3322 (tui_source_window_base::show_source_content): Grow source pad
3323 if necessary.
3324
c68ea49f
MF
33252021-01-04 Mike Frysinger <vapier@gentoo.org>
3326
3327 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3328 (bfin_frame_align): Use align_down.
3329
e4ad960a
TV
33302021-01-04 Tom de Vries <tdevries@suse.de>
3331
3332 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3333 terminators that do not terminate anything.
3334
3ec3145c
SM
33352021-01-04 Simon Marchi <simon.marchi@efficios.com>
3336
3337 * debug.c (debug_print_depth): New.
3338 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3339 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3340 * infrun.c (start_step_over): Use
3341 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3342 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3343 INFRUN_SCOPED_DEBUG_START_END.
3344 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3345
e71daf80
SM
33462021-01-04 Simon Marchi <simon.marchi@efficios.com>
3347
3348 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3349
335709bc
SM
33502021-01-04 Simon Marchi <simon.marchi@efficios.com>
3351
3352 * utils.c (vfprintf_unfiltered): Print timestamp only when
3353 previous debug output ended with a newline.
3354
098caef4
LM
33552021-01-04 Luis Machado <luis.machado@linaro.org>
3356
3357 Update all users of trad_frame_saved_reg to use the new member
3358 functions.
3359
3360 Remote all struct keywords from declarations of trad_frame_saved_reg
3361 types, except on forward declarations.
3362
3363 * aarch64-tdep.c: Update.
3364 * alpha-mdebug-tdep.c: Update.
3365 * alpha-tdep.c: Update.
3366 * arc-tdep.c: Update.
3367 * arm-tdep.c: Update.
3368 * avr-tdep.c: Update.
3369 * cris-tdep.c: Update.
3370 * csky-tdep.c: Update.
3371 * frv-tdep.c: Update.
3372 * hppa-linux-tdep.c: Update.
3373 * hppa-tdep.c: Update.
3374 * hppa-tdep.h: Update.
3375 * lm32-tdep.c: Update.
3376 * m32r-linux-tdep.c: Update.
3377 * m32r-tdep.c: Update.
3378 * m68hc11-tdep.c: Update.
3379 * mips-tdep.c: Update.
3380 * moxie-tdep.c: Update.
3381 * riscv-tdep.c: Update.
3382 * rs6000-tdep.c: Update.
3383 * s390-linux-tdep.c: Update.
3384 * s390-tdep.c: Update.
3385 * score-tdep.c: Update.
3386 * sparc-netbsd-tdep.c: Update.
3387 * sparc-sol2-tdep.c: Update.
3388 * sparc64-fbsd-tdep.c: Update.
3389 * sparc64-netbsd-tdep.c: Update.
3390 * sparc64-obsd-tdep.c: Update.
3391 * sparc64-sol2-tdep.c: Update.
3392 * tilegx-tdep.c: Update.
3393 * v850-tdep.c: Update.
3394 * vax-tdep.c: Update.
3395
3396 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3397 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3398
3399 * trad-frame.c: Update.
3400 Remove TF_REG_* enum.
3401 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3402 a trivially-constructible struct.
3403 (trad_frame_reset_saved_regs): Adjust to use member function.
3404 (trad_frame_value_p): Likewise.
3405 (trad_frame_addr_p): Likewise.
3406 (trad_frame_realreg_p): Likewise.
3407 (trad_frame_value_bytes_p): Likewise.
3408 (trad_frame_set_value): Likewise.
3409 (trad_frame_set_realreg): Likewise.
3410 (trad_frame_set_addr): Likewise.
3411 (trad_frame_set_unknown): Likewise.
3412 (trad_frame_set_value_bytes): Likewise.
3413 (trad_frame_get_prev_register): Likewise.
3414 * trad-frame.h: Update.
3415 (trad_frame_saved_reg_kind): New enum.
3416 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3417 <m_kind, m_reg>: New member fields.
3418 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3419 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3420 <is_addr, is_unknown, is_value_bytes>: New member functions.
3421
9898e882
SM
34222021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3423
3424 * target-float.c: Fix typos.
3425
b66b4e65
HD
34262021-01-02 Hannes Domani <ssbssa@yahoo.de>
3427
3428 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3429
b5b5650a
JB
34302021-01-01 Joel Brobecker <brobecker@adacore.com>
3431
3432 * gdbarch.sh: Update copyright year range.
3433
3666a048
JB
34342021-01-01 Joel Brobecker <brobecker@adacore.com>
3435
3436 Update copyright year range in copyright header of all GDB files.
3437
ff7e39b6
JB
34382021-01-01 Joel Brobecker <brobecker@adacore.com>
3439
3440 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3441 to the list of directories to update.
3442
2b47c078
JB
34432021-01-01 Joel Brobecker <brobecker@adacore.com>
3444
3445 * top.c (print_gdb_version): Update copyright year.
3446
476923f1 34472021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 3448
476923f1 3449 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 3450
476923f1 3451For older changes see ChangeLog-2020.
c906108c
SS
3452\f
3453Local Variables:
3454mode: change-log
3455left-margin: 8
3456fill-column: 74
3457version-control: never
57da7796 3458coding: utf-8
c906108c 3459End:
This page took 2.800238 seconds and 4 git commands to generate.