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