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