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