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