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