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