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