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