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