Implement Ada operator overloading
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c04da66c
TT
12021-03-15 Tom Tromey <tromey@adacore.com>
2
3 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
4 fixed-point.
5 * ada-exp.y (maybe_overload): New function.
6 (ada_wrap_overload): New function.
7 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
8 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
9 (or_else_exp, xor_exp, primary): Update.
10
9863c3b5
TT
112021-03-15 Tom Tromey <tromey@adacore.com>
12
13 PR ada/27545:
14 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
15 call for tagged type.
16
1ac74522
TT
172021-03-15 Tom Tromey <tromey@adacore.com>
18
19 * ada-exp.y (exp1): Handle resolution of the right hand side of an
20 assignment.
21
207582c0
TT
222021-03-15 Tom Tromey <tromey@adacore.com>
23
24 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
25 container.
26 (ada_assign_operation::evaluate): Update.
27 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
28 Change return type.
29
8d624a9d
FW
302021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
31
32 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
33
ba6a0ef3
AB
342021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 * python/python.c (gdbpy_source_objfile_script): Use
37 make_scoped_restore to restore gdbpy_current_objfile.
38 (gdbpy_execute_objfile_script): Likewise.
39
7c290a04
TT
402021-03-14 Tom Tromey <tom@tromey.com>
41
42 * dwarf2/read.c (read_attribute_value): Use cu_header
43 consistently.
44
0280fdcc
TT
452021-03-14 Tom Tromey <tom@tromey.com>
46
47 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
48 (peek_die_abbrev): Use reader.abfd.
49
a9f172c6
TT
502021-03-14 Tom Tromey <tom@tromey.com>
51
52 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
53 m_header_read_in.
54
7c32eebb
TT
552021-03-13 Tom Tromey <tom@tromey.com>
56
57 * dwarf2/read.c (struct partial_die_info): Update.
58 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
59 (load_partial_dies, partial_die_info::partial_die_info): Update.
60 * dwarf2/abbrev.h (lookup_abbrev): Constify.
61
27012aba
TT
622021-03-13 Tom Tromey <tom@tromey.com>
63
64 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
65
fece451c
CB
662021-03-12 Christian Biesinger <cbiesinger@google.com>
67
68 PR threads/27239
69 * cp-support.c: Use scoped_segv_handler_restore.
70 * event-top.c (thread_local_segv_handler): Made static.
71 (scoped_segv_handler_restore::scoped_segv_handler_restore):
72 New function.
73 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
74 function.
75 * event-top.h (class scoped_segv_handler_restore): New class.
76 (thread_local_segv_handler): Removed.
77
7056f312
TT
782021-03-10 Tom Tromey <tromey@adacore.com>
79
80 * parser-defs.h (parser_state): Change completion to bool.
81 <parse_completion>: Likewise.
82 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
83 (ada_resolve_variable, ada_resolve_function): Update.
84 * ada-lang.c (ada_find_operator_symbol): Change
85 parse_completion to bool.
86 (ada_resolve_funcall, ada_resolve_variable)
87 (ada_resolve_function): Likewise.
88
ccdc02ed
TT
892021-03-09 Tom Tromey <tromey@adacore.com>
90
91 * eval.c (operation::evaluate_funcall): Use function formal
92 parameter types when evaluating.
93
fbb1aace
AB
942021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
95
96 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
97 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
98 and owner to m_owner.
99
611aa09d
FW
1002021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
101
102 * f-exp.h (eval_op_f_loc): Declare.
103 (expr::fortran_loc_operation): New typedef.
104 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
105 UNOP_INTRINSIC.
106 (f77_keywords): Add LOC keyword.
107 * f-lang.c (eval_op_f_loc): New function.
108 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
109
eef32f59
AB
1102021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
111
112 * f-exp.h (eval_op_f_array_shape): Declare.
113 (fortran_array_shape_operation): New type.
114 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
115 UNOP_INTRINSIC.
116 (f77_keywords): Add "shape" keyword.
117 * f-lang.c (fortran_array_shape): New function.
118 (eval_op_f_array_shape): New function.
119 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
120
7ba155b3
AB
1212021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
122
123 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
124 of this function.
125 (expr::fortran_array_size_1arg): New type.
126 (expr::fortran_array_size_2arg): Likewise.
127 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
128 UNOP_OR_BINOP_INTRINSIC.
129 (f77_keywords): Add "size" keyword.
130 * f-lang.c (fortran_array_size): New function.
131 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
132 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
133
e14816a8
AB
1342021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
135
136 * f-exp.h (eval_op_f_rank): Declare.
137 (expr::fortran_rank_operation): New typedef.
138 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
139 UNOP_INTRINSIC.
140 (f77_keywords): Add "rank" keyword.
141 * f-lang.c (eval_op_f_rank): New function.
142 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
143
3dd93bf8
TT
1442021-03-08 Tom Tromey <tom@tromey.com>
145
146 * printcmd.c (set_command): Remove null check.
147 * value.c (init_if_undefined_command): Remove null check.
148
9c79936b
TT
1492021-03-08 Tom Tromey <tom@tromey.com>
150
151 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
152 Update.
153 * p-exp.y (variable): Update.
154 * go-exp.y (variable): Update.
155 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
156 Remove overload for objfile.
157 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
158 parameter.
159 (check_objfile): Likewise.
160 (dump_for_expression): Likewise. Remove overload for objfile.
161 (class var_msym_value_operation): Use bound_minimal_symbol.
162 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
163 parameter.
164 (var_msym_value_operation::evaluate_for_address)
165 (var_msym_value_operation::evaluate_for_sizeof)
166 (var_msym_value_operation::evaluate_for_cast): Update.
167 * d-exp.y (PrimaryExpression): Update.
168 * c-exp.y (variable): Update.
169 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
170 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
171 Update.
172 * ada-exp.y (write_var_or_type): Update.
173
40d07d07
TT
1742021-03-08 Tom Tromey <tom@tromey.com>
175
176 * parser-defs.h (exp_uses_objfile): Return bool.
177 * parse.c (exp_uses_objfile): Return bool.
178
0b2b0b82
TT
1792021-03-08 Tom Tromey <tom@tromey.com>
180
181 * value.h (eval_skip_value): Don't declare.
182 * opencl-lang.c (eval_opencl_assign): Update.
183 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
184 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
185 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
186 * expression.h (enum noside) <EVAL_SKIP>: Remove.
187 * expop.h (typeof_operation::evaluate)
188 (decltype_operation::evaluate, unop_addr_operation::evaluate)
189 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
190 (cxx_cast_operation::evaluate): Update.
191 * eval.c (eval_skip_value): Remove.
192 (eval_op_scope, eval_op_var_entry_value)
193 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
194 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
195 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
196 (eval_op_binary, eval_op_subscript, eval_op_equal)
197 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
198 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
199 (eval_op_complement, eval_op_lognot, eval_op_ind)
200 (eval_op_memval, eval_op_preinc, eval_op_predec)
201 (eval_op_postinc, eval_op_postdec, eval_op_type)
202 (eval_binop_assign_modify, eval_op_objc_msgcall)
203 (eval_multi_subscript, logical_and_operation::evaluate)
204 (logical_or_operation::evaluate, array_operation::evaluate)
205 (operation::evaluate_for_cast)
206 (var_msym_value_operation::evaluate_for_cast)
207 (var_value_operation::evaluate_for_cast): Update.
208 * c-lang.c (c_string_operation::evaluate): Update.
209 * c-exp.h (objc_nsstring_operation::evaluate)
210 (objc_selector_operation::evaluate): Update.
211 * ada-lang.c (ada_assign_operation::evaluate)
212 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
213 (ada_atr_size): Update.
214
96db551d
TT
2152021-03-08 Tom Tromey <tom@tromey.com>
216
217 * eval.c: Merge "namespace" scopes.
218
ce284361
TT
2192021-03-08 Tom Tromey <tom@tromey.com>
220
221 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
222 <release>: Inline.
223 * parse.c (expr_builder::expr_builder, expr_builder::release):
224 Remove.
225
b9d06571
TT
2262021-03-08 Tom Tromey <tom@tromey.com>
227
228 * parse.c (expression::expression, expression::~expression):
229 Remove.
230 * expression.h (struct expression): Inline constructor. Remove
231 destructor.
232
79ab486e
TT
2332021-03-08 Tom Tromey <tom@tromey.com>
234
235 * std-operator.def (BINOP_END): Remove.
236 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
237 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
238 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
239 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
240 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
241 BINOP_END.
242
48fa6f23
TT
2432021-03-08 Tom Tromey <tom@tromey.com>
244
245 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
246
43f542e3
TT
2472021-03-08 Tom Tromey <tom@tromey.com>
248
249 * std-operator.def (OP_EXTENDED0): Remove.
250
5d9ba982
TT
2512021-03-08 Tom Tromey <tom@tromey.com>
252
253 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
254 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
255 Remove.
256
d357570d
TT
2572021-03-08 Tom Tromey <tom@tromey.com>
258
259 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
260 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
261
0922dc84
TT
2622021-03-08 Tom Tromey <tom@tromey.com>
263
264 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
265 * ada-lang.c (ada_binop_minmax): Update.
266 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
267 Use BINOP_MIN and BINOP_MAX.
268
1eaebe02
TT
2692021-03-08 Tom Tromey <tom@tromey.com>
270
271 * value.h (evaluate_subexp_with_coercion): Don't declare.
272 * parse.c (exp_descriptor_standard): Remove.
273 (expr_builder::expr_builder, expr_builder::release): Update.
274 (expression::expression): Remove size_t parameter.
275 (expression::~expression): Simplify.
276 (expression::resize): Remove.
277 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
278 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
279 (write_exp_elt_longcst, write_exp_elt_floatcst)
280 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
281 (write_exp_string_vector, write_exp_bitstring): Remove.
282 * p-lang.h (class pascal_language) <opcode_print_table,
283 op_print_tab>: Remove.
284 * p-lang.c (pascal_language::op_print_tab): Remove.
285 * opencl-lang.c (class opencl_language) <opcode_print_table>:
286 Remove.
287 * objc-lang.c (objc_op_print_tab): Remove.
288 (class objc_language) <opcode_print_table>: Remove.
289 * m2-lang.h (class m2_language) <opcode_print_table,
290 op_print_tab>: Remove.
291 * m2-lang.c (m2_language::op_print_tab): Remove.
292 * language.h (struct language_defn) <post_parser, expression_ops,
293 opcode_print_table>: Remove.
294 * language.c (language_defn::expression_ops)
295 (auto_or_unknown_language::opcode_print_table): Remove.
296 * go-lang.h (class go_language) <opcode_print_table,
297 op_print_tab>: Remove.
298 * go-lang.c (go_language::op_print_tab): Remove.
299 * f-lang.h (class f_language) <opcode_print_table>: Remove
300 <op_print_tab>: Remove.
301 * f-lang.c (f_language::op_print_tab): Remove.
302 * expression.h (union exp_element): Remove.
303 (struct expression): Remove size_t parameter from constructor.
304 <resize>: Remove.
305 <first_opcode>: Update.
306 <nelts, elts>: Remove.
307 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
308 (evaluate_subexp_standard, print_expression, op_string)
309 (dump_raw_expression): Don't declare.
310 * expprint.c (print_expression, print_subexp)
311 (print_subexp_funcall, print_subexp_standard, op_string)
312 (dump_raw_expression, dump_subexp, dump_subexp_body)
313 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
314 (dump_prefix_expression): Update.
315 * eval.c (evaluate_subexp): Remove.
316 (evaluate_expression, evaluate_type): Update.
317 (evaluate_subexpression_type): Remove.
318 (fetch_subexp_value): Remove "pc" parameter. Update.
319 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
320 (evaluate_subexp_standard, evaluate_subexp_for_address)
321 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
322 (evaluate_subexp_for_cast): Remove.
323 (parse_and_eval_type): Update.
324 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
325 * d-lang.c (d_op_print_tab): Remove.
326 (class d_language) <opcode_print_table>: Remove.
327 * c-lang.h (c_op_print_tab): Don't declare.
328 * c-lang.c (c_op_print_tab): Remove.
329 (class c_language, class cplus_language, class asm_language, class
330 minimal_language) <opcode_print_table>: Remove.
331 * breakpoint.c (update_watchpoint, watchpoint_check)
332 (watchpoint_exp_is_const, watch_command_1): Update.
333 * ax-gdb.h (union exp_element): Don't declare.
334 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
335 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
336 (gen_expr_binop_rest): Remove.
337 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
338 * ada-lang.c (ada_op_print_tab): Remove.
339 (class ada_language) <post_parser, opcode_print_table>: Remove.
340
f2a98603
TT
3412021-03-08 Tom Tromey <tom@tromey.com>
342
343 * go-lang.c (go_language::expression_ops): Don't declare.
344 * go-lang.h (class go_language) <expression_ops>: Remove.
345 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
346 Remove.
347 (class opencl_language) <expression_ops>: Remove.
348 * d-lang.c (class d_language) <expression_ops>: Remove.
349 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
350 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
351 (class c_language, class cplus_language, class asm_language)
352 (class minimal_language) <expression_ops>: Remove.
353
d3c54a1c
TT
3542021-03-08 Tom Tromey <tom@tromey.com>
355
356 * ada-lang.c (resolve_subexp, replace_operator_with_call)
357 (evaluate_subexp_type, assign_aggregate)
358 (aggregate_assign_positional, aggregate_assign_from_choices)
359 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
360 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
361 (ada_operator_check, ada_forward_operator_length)
362 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
363 Remove.
364 (post_parser): Update.
365 (class ada_language) <expresssion_ops>: Remove.
366
5871f0a3
TT
3672021-03-08 Tom Tromey <tom@tromey.com>
368
369 * m2-lang.h (class m2_language) <expresssion_ops,
370 exp_descriptor_modula2>: Remove.
371 * m2-lang.c (evaluate_subexp_modula2)
372 (m2_language::exp_descriptor_modula2): Remove.
373
a99be8c1
TT
3742021-03-08 Tom Tromey <tom@tromey.com>
375
376 * f-lang.h (class f_language) <expresssion_ops>: Remove.
377 <exp_descriptor_tab>: Remove.
378 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
379 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
380 (print_subexp_f, dump_subexp_body_f, operator_check_f)
381 (f_language::exp_descriptor_tab, fortran_prepare_argument):
382 Remove.
383
aa1da9ed
TT
3842021-03-08 Tom Tromey <tom@tromey.com>
385
386 * rust-lang.h (class rust_language) <expression_ops,
387 exp_descriptor_tab>: Remove.
388 * rust-lang.c (rust_evaluate_funcall): Remove.
389 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
390 EVAL_SKIP.
391 (rust_evaluate_subexp): Remove.
392 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
393 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
394 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
395
08a057e6
TT
3962021-03-08 Tom Tromey <tom@tromey.com>
397
398 * ada-exp.y: Create operations.
399 (empty_stoken): Remove.
400 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
401 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
402 (components): New global.
403 (push_component, choice_component, pop_component, pop_components):
404 New functions.
405 (associations): New global
406 (push_association, pop_association, pop_associations): New
407 functions.
408 (ada_parse): Update.
409 (write_var_from_sym, write_int): Create operations.
410 (write_exp_op_with_string): Remove.
411 (write_object_renaming, write_selectors, write_ambiguous_var)
412 (write_var_or_type, write_name_assoc): Create operations.
413 * ada-lang.h (ada_index_type): Declare.
414 * ada-lang.c (ada_index_type): No longer static.
415
d308ba78
TT
4162021-03-08 Tom Tromey <tom@tromey.com>
417
418 * f-exp.y: Create operations.
419 (f_language::parser): Update.
420
f1b8ceef
TT
4212021-03-08 Tom Tromey <tom@tromey.com>
422
423 * m2-exp.y: Create operations.
424 (m2_language::parser): Update.
425
3163898e
TT
4262021-03-08 Tom Tromey <tom@tromey.com>
427
428 * p-exp.y: Create operations.
429 (pascal_language::parser): Update.
430
9412fdcc
TT
4312021-03-08 Tom Tromey <tom@tromey.com>
432
433 * d-exp.y: Create operations.
434 (d_parse): Update.
435
bb4e0574
TT
4362021-03-08 Tom Tromey <tom@tromey.com>
437
438 * go-exp.y: Create operations.
439 (go_language::parser): Update.
440
d182f279
TT
4412021-03-08 Tom Tromey <tom@tromey.com>
442
443 * objc-lang.c (end_msglist): Create operations.
444 * c-exp.y: Change parser to create operations.
445 (write_destructor_name): Remove.
446 (c_parse): Update.
447
c1299a23
TT
4482021-03-08 Tom Tromey <tom@tromey.com>
449
450 * rust-exp.y: Create operations.
451 (rust_parser::convert_params_to_expression): Change return type.
452 (binop_maker_ftype): New typedef.
453 (maker_map): New global.
454 (rust_parser::convert_ast_to_expression): Change return type.
455 (rust_language::parser): Update.
456 (_initialize_rust_exp): Initialize maker_map.
457
4c5e7a93
TT
4582021-03-08 Tom Tromey <tom@tromey.com>
459
460 * stap-probe.c (binop_maker_ftype): New typedef.
461 (stap_maker_map): New global.
462 (stap_make_binop): New function.
463 (stap_parse_register_operand): Return operation_up.
464 (stap_parse_single_operand, stap_parse_argument_conditionally)
465 (stap_parse_argument_1): Likewise.
466 (stap_parse_argument): Create operations.
467 (stap_probe::parse_arguments): Update.
468 (_initialize_stap_probe): Initialize stap_maker_map.
469 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
470 type.
471 * i386-tdep.h (i386_stap_parse_special_token): Change return
472 type.
473 * i386-tdep.c (i386_stap_parse_special_token_triplet)
474 (i386_stap_parse_special_token_three_arg_disp)
475 (i386_stap_parse_special_token): Change return type.
476 * gdbarch.sh (stap_parse_special_token): Change return type.
477 * gdbarch.c: Rebuild.
478 * gdbarch.h: Rebuild.
479 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
480 type.
481 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
482 return type.
483
482ddd69
TT
4842021-03-08 Tom Tromey <tom@tromey.com>
485
486 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
487 * gdbarch.h: Rebuild.
488 * gdbarch.c: Rebuild.
489 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
490 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
491 return type.
492 (amd64_dtrace_parse_probe_argument): Update.
493
8227d9e2
TT
4942021-03-08 Tom Tromey <tom@tromey.com>
495
496 * parser-defs.h (struct parser_state) <push, push_new,
497 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
498 wrap2>: New methods.
499 <m_operations>: New member.
500 * parse.c (parser_state::push_c_string)
501 (parser_state::push_symbol, parser_state::push_dollar): New
502 methods.
503
4933522d
TT
5042021-03-08 Tom Tromey <tom@tromey.com>
505
506 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
507 New member.
508 (struct parser_state) <mark_struct_expression>: New method.
509 * parse.c (parser_state::mark_struct_expression): Update assert.
510 (parser_state::mark_struct_expression): New method.
511 (parser_state::mark_completion_tag): Update assert.
512 (parse_expression_for_completion): Handle expout_last_op.
513
413403fc
TT
5142021-03-08 Tom Tromey <tom@tromey.com>
515
516 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
517 now in superclass.
518 * value.h (fetch_subexp_value): Add "op" parameter.
519 * value.c (init_if_undefined_command): Update.
520 * tracepoint.c (validate_actionline, encode_actions_1): Update.
521 * stap-probe.c (stap_probe::compile_to_ax): Update.
522 * printcmd.c (set_command): Update.
523 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
524 Update.
525 * parser-defs.h (struct expr_builder) <set_operation>: New
526 method.
527 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
528 * expression.h (struct expression) <first_opcode>: Update.
529 <op>: New member.
530 * expprint.c (dump_raw_expression, dump_prefix_expression):
531 Update.
532 * expop.h (class var_value_operation) <get_symbol>: New method.
533 (class register_operation) <get_name>: New method.
534 (class equal_operation): No longer a typedef, now a subclass.
535 (class unop_memval_operation) <get_type>: New method.
536 (class assign_operation) <get_lhs>: New method.
537 (class unop_cast_operation) <get_type>: New method.
538 * eval.c (evaluate_expression, evaluate_type)
539 (evaluate_subexpression_type): Update.
540 (fetch_subexp_value): Add "op" parameter.
541 (parse_and_eval_type): Update.
542 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
543 * breakpoint.c (update_watchpoint, watchpoint_check)
544 (watchpoint_exp_is_const, watch_command_1): Update.
545 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
546 Update.
547
b0f9164c
TT
5482021-03-08 Tom Tromey <tom@tromey.com>
549
550 * ada-lang.c (ada_value_binop): Do not use op_string.
551
a88c4354
TT
5522021-03-08 Tom Tromey <tom@tromey.com>
553
554 * expprint.c (dump_for_expression): New overload.
555 * expop.h (check_objfile, dump_for_expression): Declare new
556 overloads.
557 * ada-lang.c (check_objfile): New overload.
558 (assign_component, ada_aggregate_component::uses_objfile)
559 (ada_aggregate_component::dump, ada_aggregate_component::assign)
560 (ada_aggregate_component::assign_aggregate)
561 (ada_positional_component::uses_objfile)
562 (ada_positional_component::dump, ada_positional_component::assign)
563 (ada_discrete_range_association::uses_objfile)
564 (ada_discrete_range_association::dump)
565 (ada_discrete_range_association::assign)
566 (ada_name_association::uses_objfile, ada_name_association::dump)
567 (ada_name_association::assign)
568 (ada_choices_component::uses_objfile, ada_choices_component::dump)
569 (ada_choices_component::assign)
570 (ada_others_component::uses_objfile, ada_others_component::dump)
571 (ada_others_component::assign, ada_assign_operation::evaluate):
572 New methods.
573 * ada-exp.h (ada_string_operation) <get_name>: New method.
574 (class ada_assign_operation): New.
575 (class ada_component): New.
576 (ada_component_up): New typedef.
577 (class ada_aggregate_operation, class ada_aggregate_component)
578 (class ada_positional_component, class ada_others_component)
579 (class ada_association): New.
580 (ada_association_up): New typedef.
581 (class ada_choices_component)
582 (class ada_discrete_range_association)
583 (class ada_name_association): New.
584
d8a4ed8a
TT
5852021-03-08 Tom Tromey <tom@tromey.com>
586
587 * ada-lang.c (ada_var_value_operation::resolve)
588 (ada_funcall_operation::resolve)
589 (ada_ternop_slice_operation::resolve): New methods.
590 * ada-exp.h (struct ada_resolvable): New.
591 (class ada_var_value_operation): Derive from ada_resolvable.
592 <get_block, resolve>: New methods.
593 (class ada_funcall_operation): Derive from ada_resolvable.
594 <resolve>: New method.
595 (class ada_ternop_slice_operation): Derive from ada_resolvable.
596 <resolve>: New method.
597
efe3af2f
TT
5982021-03-08 Tom Tromey <tom@tromey.com>
599
600 * ada-lang.c (ada_funcall_operation::evaluate): New method.
601 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
602 method.
603 (class ada_funcall_operation): New.
604
ebc06ad8
TT
6052021-03-08 Tom Tromey <tom@tromey.com>
606
607 * ada-lang.c (ada_structop_operation::evaluate): New method.
608 * ada-exp.h (class ada_structop_operation): New.
609
e8c33fa1
TT
6102021-03-08 Tom Tromey <tom@tromey.com>
611
612 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
613 * ada-exp.h (class ada_unop_ind_operation): New.
614
065ec826
TT
6152021-03-08 Tom Tromey <tom@tromey.com>
616
617 * ada-lang.c (ada_binop_exp): No longer static.
618 * ada-exp.h (ada_binop_exp_operation): New typedef.
619
9e99f48f
TT
6202021-03-08 Tom Tromey <tom@tromey.com>
621
622 * ada-lang.c (ada_val_atr): No longer static.
623 (ada_atr_val_operation::evaluate): New method.
624 * ada-exp.h (class ada_atr_val_operation): New.
625
7631cf6c
TT
6262021-03-08 Tom Tromey <tom@tromey.com>
627
628 * ada-lang.c (ada_pos_atr): No longer static.
629 * ada-exp.h (ada_pos_operation): New typedef.
630
7992accc
TT
6312021-03-08 Tom Tromey <tom@tromey.com>
632
633 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
634 parameters.
635 (ada_evaluate_subexp): Use it.
636
6ad3b8bf
TT
6372021-03-08 Tom Tromey <tom@tromey.com>
638
639 * ada-lang.c (ada_binop_minmax): No longer static.
640 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
641 New typedefs.
642
3f4a0053
TT
6432021-03-08 Tom Tromey <tom@tromey.com>
644
645 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
646 New method.
647 * ada-exp.h (class ada_var_msym_value_operation): New.
648
99a3b1e7
TT
6492021-03-08 Tom Tromey <tom@tromey.com>
650
651 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
652 (ada_var_value_operation::evaluate): New methods.
653 * ada-exp.h (class ada_var_value_operation): New.
654
60fa02ca
TT
6552021-03-08 Tom Tromey <tom@tromey.com>
656
657 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
658 * ada-exp.h (class ada_unop_atr_operation): New.
659
82c3886e
TT
6602021-03-08 Tom Tromey <tom@tromey.com>
661
662 * ada-lang.c (ada_binop_in_bounds): No longer static.
663 * ada-exp.h (class ada_binop_in_bounds_operation): New.
664
1b1ebfab
TT
6652021-03-08 Tom Tromey <tom@tromey.com>
666
667 * ada-lang.c (ada_ternop_slice): No longer static.
668 * ada-exp.h (class ada_ternop_slice_operation): New.
669
039e4b76
TT
6702021-03-08 Tom Tromey <tom@tromey.com>
671
672 * ada-exp.h (ada_bitwise_operation): New template class.
673 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
674 (ada_bitwise_xor_operation): New typedefs.
675
6e8fb7b7
TT
6762021-03-08 Tom Tromey <tom@tromey.com>
677
678 * ada-lang.c (ada_equal_binop): No longer static.
679 * ada-exp.h (class ada_binop_equal_operation): New.
680
d9e7db06
TT
6812021-03-08 Tom Tromey <tom@tromey.com>
682
683 * ada-lang.c (ada_mult_binop): No longer static.
684 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
685 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
686
73796c73
TT
6872021-03-08 Tom Tromey <tom@tromey.com>
688
689 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
690 * ada-exp.h (class ada_binop_addsub_operation): New.
691
cd9a3148
TT
6922021-03-08 Tom Tromey <tom@tromey.com>
693
694 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
695 (ada_resolve_variable): Declare.
696 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
697 (ada_resolve_variable): New functions.
698 (resolve_subexp): Update.
699
cf12b17f
TT
7002021-03-08 Tom Tromey <tom@tromey.com>
701
702 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
703 method.
704 * c-exp.h (class opencl_ternop_cond_operation): New.
705
944fd3b8
TT
7062021-03-08 Tom Tromey <tom@tromey.com>
707
708 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
709 method.
710 * c-exp.h (class opencl_logical_binop_operation): New.
711
33b79214
TT
7122021-03-08 Tom Tromey <tom@tromey.com>
713
714 * opencl-lang.c (opencl_structop_operation::evaluate): New
715 method.
716 * c-exp.h (class opencl_structop_operation): New.
717
2492ba36
TT
7182021-03-08 Tom Tromey <tom@tromey.com>
719
720 * opencl-lang.c (opencl_logical_not): No longer static. Change
721 parameters.
722 (evaluate_subexp_opencl): Update.
723 * c-exp.h (opencl_notequal_operation): New typedef.
724
a88c3c8d
TT
7252021-03-08 Tom Tromey <tom@tromey.com>
726
727 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
728 static. Change parameters.
729 (eval_opencl_assign): No longer static. Add "op" parameter.
730 (evaluate_subexp_opencl): Update.
731 * c-exp.h (opencl_binop_operation): New template class.
732 (opencl_assign_operation, opencl_equal_operation)
733 (opencl_notequal_operation, opencl_less_operation)
734 (opencl_gtr_operation, opencl_geq_operation)
735 (opencl_leq_operation): New typedefs.
736
e9677704
TT
7372021-03-08 Tom Tromey <tom@tromey.com>
738
739 * opencl-lang.c (opencl_value_cast): No longer static.
740 * c-exp.h (opencl_cast_type_operation): New typedef.
741
f403a4e4
TT
7422021-03-08 Tom Tromey <tom@tromey.com>
743
744 * f-exp.h (eval_op_f_allocated): Declare.
745 (fortran_allocated_operation): New typedef.
746 * f-lang.c (eval_op_f_allocated): No longer static.
747
eb4c9271
TT
7482021-03-08 Tom Tromey <tom@tromey.com>
749
750 * f-lang.c (eval_op_f_associated): New functions.
751 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
752 typedefs.
753
58a76c72
TT
7542021-03-08 Tom Tromey <tom@tromey.com>
755
756 * f-lang.c (fortran_bound_1arg::evaluate)
757 (fortran_bound_2arg::evaluate): New methods.
758 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
759 New.
760
2f98abe1
TT
7612021-03-08 Tom Tromey <tom@tromey.com>
762
763 * expop.h (class unop_addr_operation) <get_expression>: New
764 method.
765 * f-lang.c (fortran_undetermined::value_subarray)
766 (fortran_undetermined::evaluate): New methods.
767 (fortran_prepare_argument): New overload.
768 * f-exp.h (class fortran_range_operation)
769 (class fortran_undetermined): New classes.
770
638fd74a
TT
7712021-03-08 Tom Tromey <tom@tromey.com>
772
773 * rust-lang.c (rust_structop::evaluate_funcall): New method.
774 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
775 method.
776
a00b7254
TT
7772021-03-08 Tom Tromey <tom@tromey.com>
778
779 * expression.h (class operation) <evaluate_funcall>: New methods.
780 * expop.h (class scope_operation) <evaluate_funcall>: New method.
781 (class var_value_operation) <evaluate_funcall>: New method.
782 (class structop_base_operation) <evaluate_funcall>: New method.
783 (class var_msym_value_operation) <evaluate_funcall>: New method.
784 (class structop_member_base): New class.
785 (class structop_member_operation): Derive from
786 structop_member_base.
787 (class structop_mptr_operation): Derive from
788 structop_member_base.
789 (class funcall_operation): New class.
790 * eval.c (operation::evaluate_funcall)
791 (var_value_operation::evaluate_funcall)
792 (scope_operation::evaluate_funcall)
793 (structop_member_base::evaluate_funcall)
794 (structop_base_operation::evaluate_funcall): New methods.
795
1c02eb30
TT
7962021-03-08 Tom Tromey <tom@tromey.com>
797
798 * expop.h (class array_operation): New.
799 * eval.c (array_operation::evaluate_struct_tuple)
800 (array_operation::evaluate): New methods.
801
e4479080
TT
8022021-03-08 Tom Tromey <tom@tromey.com>
803
804 * expop.h (class adl_func_operation): New.
805 * eval.c (adl_func_operation::evaluate): New method.
806
95d49dfb
TT
8072021-03-08 Tom Tromey <tom@tromey.com>
808
809 * ada-lang.c (ada_unop_in_range): No longer static.
810 * ada-exp.h (class ada_unop_range_operation): New.
811
7c15d377
TT
8122021-03-08 Tom Tromey <tom@tromey.com>
813
814 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
815 No longer static.
816 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
817 (ada_atr_size_operation, ada_abs_operation): New typedefs.
818
5019124b
TT
8192021-03-08 Tom Tromey <tom@tromey.com>
820
821 * expop.h (class logical_and_operation)
822 (class logical_or_operation): New.
823 * eval.c (logical_and_operation::evaluate)
824 (logical_or_operation::evaluate): New methods.
825 * ax-gdb.c (logical_and_operation::do_generate_ax)
826 (logical_or_operation::do_generate_ax): New methods.
827
2bc9b40c
TT
8282021-03-08 Tom Tromey <tom@tromey.com>
829
830 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
831 static.
832 * m2-exp.h: New file.
833
5947d337
TT
8342021-03-08 Tom Tromey <tom@tromey.com>
835
836 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
837 * rust-exp.h (class rust_aggregate_operation): New.
838
e4407a20
TT
8392021-03-08 Tom Tromey <tom@tromey.com>
840
841 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
842 No longer static.
843 * rust-exp.h (class rust_struct_anon): New.
844 (class rust_structop): New.
845
9db6b6dd
TT
8462021-03-08 Tom Tromey <tom@tromey.com>
847
848 * rust-lang.c (rust_range): No longer static.
849 * rust-exp.h (class rust_range_operation): New.
850
6ce1ad67
TT
8512021-03-08 Tom Tromey <tom@tromey.com>
852
853 * rust-lang.c (rust_subscript): No longer static.
854 * rust-exp.h (class rust_subscript_operation): New.
855
11dd3dce
TT
8562021-03-08 Tom Tromey <tom@tromey.com>
857
858 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
859 parameter.
860 (rust_evaluate_subexp): Update.
861 * rust-exp.h (class rust_unop_ind_operation): New.
862
6fab4359
TT
8632021-03-08 Tom Tromey <tom@tromey.com>
864
865 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
866 longer static. Add "opcode" parameter.
867 (rust_evaluate_subexp): Update.
868 * rust-exp.h: New file.
869
9dcd3e29
TT
8702021-03-08 Tom Tromey <tom@tromey.com>
871
872 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
873 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
874 (eval_op_f_kind): No longer static. Add "opcode" parameter.
875 (evaluate_subexp_f): Update.
876 * f-exp.h: New file.
877
fc715eb2
TT
8782021-03-08 Tom Tromey <tom@tromey.com>
879
880 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
881 * ada-exp.h (class ada_ternop_range_operation): New.
882
cc6bd32e
TT
8832021-03-08 Tom Tromey <tom@tromey.com>
884
885 * ada-lang.c (ada_qual_operation::evaluate): New method.
886 * ada-exp.h (class ada_qual_operation): New.
887
42fecb61
TT
8882021-03-08 Tom Tromey <tom@tromey.com>
889
890 * ada-lang.c (ada_string_operation::evaluate): New method.
891 * ada-exp.h (class ada_string_operation): New.
892
03070ee9
TT
8932021-03-08 Tom Tromey <tom@tromey.com>
894
895 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
896 * ada-exp.h: New file.
897
821e72d7
TT
8982021-03-08 Tom Tromey <tom@tromey.com>
899
900 * expop.h (class multi_subscript_operation): New.
901 * eval.c (multi_subscript_operation::evaluate): New method.
902
085734dd
TT
9032021-03-08 Tom Tromey <tom@tromey.com>
904
905 * eval.c (objc_msgcall_operation::evaluate): New method.
906 * c-exp.h (class objc_msgcall_operation): New.
907
e82a5afc
TT
9082021-03-08 Tom Tromey <tom@tromey.com>
909
910 * expop.h (class var_value_operation): New.
911 * eval.c (var_value_operation::evaluate)
912 (var_value_operation::evaluate_for_address)
913 (var_value_operation::evaluate_with_coercion)
914 (var_value_operation::evaluate_for_sizeof)
915 (var_value_operation::evaluate_for_cast): New methods.
916 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
917
d9ad79d8
TT
9182021-03-08 Tom Tromey <tom@tromey.com>
919
920 * expop.h (cxx_cast_ftype): New typedef.
921 (cxx_cast_operation): New template.
922 (dynamic_cast_operation, reinterpret_cast_operation): New
923 typedefs.
924
292382f4
TT
9252021-03-08 Tom Tromey <tom@tromey.com>
926
927 * expop.h (class unop_cast_type_operation): New.
928 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
929 method.
930
165a813a
TT
9312021-03-08 Tom Tromey <tom@tromey.com>
932
933 * expop.h (class unop_cast_operation): New.
934 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
935
e5946e16
TT
9362021-03-08 Tom Tromey <tom@tromey.com>
937
938 * expop.h (class assign_modify_operation): New.
939 * eval.c (eval_binop_assign_modify): No longer static.
940 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
941
40786782
TT
9422021-03-08 Tom Tromey <tom@tromey.com>
943
944 * expop.h (class assign_operation): New.
945 * ax-gdb.c (assign_operation::do_generate_ax): New method.
946
44b675c8
TT
9472021-03-08 Tom Tromey <tom@tromey.com>
948
949 * expop.h (class type_instance_operation): New.
950 * eval.c (type_instance_operation::evaluate): New method.
951
f6b42326
TT
9522021-03-08 Tom Tromey <tom@tromey.com>
953
954 * expop.h (class op_this_operation): New.
955 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
956
cbc18219
TT
9572021-03-08 Tom Tromey <tom@tromey.com>
958
959 * expop.h (class unop_memval_operation)
960 (class unop_memval_type_operation): New.
961 * eval.c (eval_op_memval): No longer static.
962 (unop_memval_operation::evaluate_for_address)
963 (unop_memval_type_operation::evaluate_for_address)
964 (unop_memval_operation::evaluate_for_sizeof)
965 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
966 * ax-gdb.c (unop_memval_operation::do_generate_ax)
967 (unop_memval_type_operation::do_generate_ax): New methods.
968
ae4bb61e
TT
9692021-03-08 Tom Tromey <tom@tromey.com>
970
971 * expop.h (class unop_alignof_operation): New.
972 * eval.c (eval_op_alignof): No longer static.
973
85d23bda
TT
9742021-03-08 Tom Tromey <tom@tromey.com>
975
976 * expop.h (class unop_sizeof_operation): New.
977 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
978
14aff815
TT
9792021-03-08 Tom Tromey <tom@tromey.com>
980
981 * expop.h (class unop_addr_operation): New.
982 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
983
929f3aa7
TT
9842021-03-08 Tom Tromey <tom@tromey.com>
985
986 * expop.h (class typeid_operation): New.
987
0af8829e
TT
9882021-03-08 Tom Tromey <tom@tromey.com>
989
990 * expop.h (class decltype_operation): New.
991
4efc574c
TT
9922021-03-08 Tom Tromey <tom@tromey.com>
993
994 * expop.h (class typeof_operation): New.
995
5b5f5140
TT
9962021-03-08 Tom Tromey <tom@tromey.com>
997
998 * expop.h (class type_operation): New.
999 * eval.c (eval_op_type): No longer static.
1000
876469ff
TT
10012021-03-08 Tom Tromey <tom@tromey.com>
1002
1003 * expop.h (class unop_ind_base_operation)
1004 (class unop_ind_operation): New.
1005 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1006 (unop_ind_base_operation::evaluate_for_address)
1007 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1008 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1009
6d89e296
TT
10102021-03-08 Tom Tromey <tom@tromey.com>
1011
1012 * expop.h (unop_incr_operation): New template.
1013 (preinc_operation, predec_operation, postinc_operation)
1014 (postdec_operation): New typedefs.
1015 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1016 (eval_op_postdec): No longer static.
1017
9307d17b
TT
10182021-03-08 Tom Tromey <tom@tromey.com>
1019
1020 * expop.h (unary_ftype): New typedef.
1021 (unop_operation, usual_ax_binop_operation): New templates.
1022 (unary_plus_operation, unary_neg_operation)
1023 (unary_complement_operation, unary_logical_not_operation): New
1024 typedefs.
1025 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1026 (eval_op_lognot): No longer static.
1027 * ax-gdb.c (gen_expr_unop): New function.
1028
ae64ba58
TT
10292021-03-08 Tom Tromey <tom@tromey.com>
1030
1031 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1032
d4eff4c1
TT
10332021-03-08 Tom Tromey <tom@tromey.com>
1034
1035 * expop.h (class repeat_operation): New.
1036 * eval.c (eval_op_repeat): No longer static. Remove "op"
1037 parameter.
1038 (evaluate_subexp_standard): Update.
1039 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1040
46916f2b
TT
10412021-03-08 Tom Tromey <tom@tromey.com>
1042
1043 * expop.h (class comparison_operation): New.
1044 (equal_operation, notequal_operation, less_operation)
1045 (gtr_operation, geq_operation, leq_operation): New typedefs.
1046 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1047 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1048
224d6424
TT
10492021-03-08 Tom Tromey <tom@tromey.com>
1050
1051 * expop.h (class subscript_operation): New.
1052 * eval.c (eval_op_subscript): No longer static.
1053
373907ff
TT
10542021-03-08 Tom Tromey <tom@tromey.com>
1055
1056 * expop.h (class binop_operation, class usual_ax_binop_operation):
1057 New.
1058 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1059 (div_operation, rem_operation, lsh_operation, rsh_operation)
1060 (bitwise_and_operation, bitwise_ior_operation)
1061 (bitwise_xor_operation): New typedefs.
1062 * eval.c (eval_op_binary): No longer static.
1063
5133d78b
TT
10642021-03-08 Tom Tromey <tom@tromey.com>
1065
1066 * expop.h (class sub_operation): New.
1067 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1068 (evaluate_subexp_standard): Update.
1069
a94323b6
TT
10702021-03-08 Tom Tromey <tom@tromey.com>
1071
1072 * expop.h (class add_operation): New.
1073 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1074 (evaluate_subexp_standard): Update.
1075
e51e26a0
TT
10762021-03-08 Tom Tromey <tom@tromey.com>
1077
1078 * expop.h (class concat_operation): New.
1079 * eval.c (eval_op_concat): No longer static. Remove "op"
1080 parameter.
1081 (evaluate_subexp_standard): Update.
1082
07f724a8
TT
10832021-03-08 Tom Tromey <tom@tromey.com>
1084
1085 * expop.h (class structop_member_operation)
1086 (class structop_mptr_operation): New.
1087 * eval.c (eval_op_member): No longer static.
1088
ab0609be
TT
10892021-03-08 Tom Tromey <tom@tromey.com>
1090
1091 * expop.h (class structop_ptr_operation): New.
1092 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1093 parameter.
1094
808b22cf
TT
10952021-03-08 Tom Tromey <tom@tromey.com>
1096
1097 * expop.h (class structop_base_operation)
1098 (class structop_operation): New.
1099 * eval.c (eval_op_structop_struct): No longer static.
1100
8cfd3e95
TT
11012021-03-08 Tom Tromey <tom@tromey.com>
1102
1103 * expop.h (class complex_operation): New.
1104
09db3700
TT
11052021-03-08 Tom Tromey <tom@tromey.com>
1106
1107 * eval.c (eval_op_objc_selector): No longer static.
1108 * c-exp.h (class objc_selector_operation): New.
1109
06dc61b9
TT
11102021-03-08 Tom Tromey <tom@tromey.com>
1111
1112 * eval.c: Include c-exp.h.
1113 * c-exp.h (class objc_nsstring_operation): New.
1114
72d0a711
TT
11152021-03-08 Tom Tromey <tom@tromey.com>
1116
1117 * c-lang.c (c_string_operation::evaluate): New method.
1118 * c-exp.h: New file.
1119
9186293f
TT
11202021-03-08 Tom Tromey <tom@tromey.com>
1121
1122 * expop.h (class ternop_cond_operation): New.
1123 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1124
1594e0bb
TT
11252021-03-08 Tom Tromey <tom@tromey.com>
1126
1127 * expop.h (class ternop_slice_operation): New.
1128 * eval.c (eval_op_ternop): No longer static.
1129
b50db09f
TT
11302021-03-08 Tom Tromey <tom@tromey.com>
1131
1132 * expop.h (class string_operation): New.
1133 * eval.c (eval_op_string): No longer static.
1134
e6e01e16
TT
11352021-03-08 Tom Tromey <tom@tromey.com>
1136
1137 * expop.h (class internalvar_operation): New.
1138 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1139
e6985c5e
TT
11402021-03-08 Tom Tromey <tom@tromey.com>
1141
1142 * expop.h (class bool_operation): New.
1143
55bdbff8
TT
11442021-03-08 Tom Tromey <tom@tromey.com>
1145
1146 * expop.h (class register_operation): New.
1147 * eval.c (eval_op_register): No longer static.
1148 * ax-gdb.c (register_operation::do_generate_ax): New method.
1149
247d935b
TT
11502021-03-08 Tom Tromey <tom@tromey.com>
1151
1152 * expop.h (class last_operation): New.
1153
17679395
TT
11542021-03-08 Tom Tromey <tom@tromey.com>
1155
1156 * expop.h (class func_static_var_operation): New.
1157 * eval.c (eval_op_func_static_var): No longer static.
1158
b5cc3923
TT
11592021-03-08 Tom Tromey <tom@tromey.com>
1160
1161 * expop.h (class var_entry_value_operation): New.
1162 * eval.c (eval_op_var_entry_value): No longer static.
1163
0c8effa3
TT
11642021-03-08 Tom Tromey <tom@tromey.com>
1165
1166 * expression.h (class operation) <set_outermost>: New method.
1167 * expop.h (class var_msym_value_operation): New.
1168 * eval.c (eval_op_var_msym_value): No longer static.
1169 (var_msym_value_operation::evaluate_for_address)
1170 (var_msym_value_operation::evaluate_for_sizeof)
1171 (var_msym_value_operation::evaluate_for_cast): New methods.
1172 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1173 method.
1174
d336c29e
TT
11752021-03-08 Tom Tromey <tom@tromey.com>
1176
1177 * expop.h (class long_const_operation): New.
1178 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1179
d5ab122c
TT
11802021-03-08 Tom Tromey <tom@tromey.com>
1181
1182 * expop.h (class scope_operation): New.
1183 * eval.c (eval_op_scope): No longer static.
1184 (scope_operation::evaluate_for_address): New method.
1185 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1186
cae26a0c
TT
11872021-03-08 Tom Tromey <tom@tromey.com>
1188
1189 * expprint.c (float_const_operation::dump): New method.
1190 * expop.h (float_data): New typedef.
1191 (class float_const_operation): New.
1192
75f9892d
TT
11932021-03-08 Tom Tromey <tom@tromey.com>
1194
1195 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1196 * ax-gdb.c (gen_expr_binop): New function.
1197 (gen_expr_structop): Likewise.
1198
de401988
TT
11992021-03-08 Tom Tromey <tom@tromey.com>
1200
1201 * expprint.c (expr::dump_for_expression): New functions.
1202 * expop.h (dump_for_expression): New overloads.
1203 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1204 Update.
1205
e2803273
TT
12062021-03-08 Tom Tromey <tom@tromey.com>
1207
1208 * expression.h (expr::operation): New class.
1209 (expr::make_operation): New function.
1210 (expr::operation_up): New typedef.
1211 * expop.h: New file.
1212 * eval.c (operation::evaluate_for_cast)
1213 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1214 New methods.
1215 * ax-gdb.c (operation::generate_ax): New method.
1216
e18c58f2
TT
12172021-03-08 Tom Tromey <tom@tromey.com>
1218
1219 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1220 (gen_expr_binop_rest): New overload.
1221
c0d7ed8c
TT
12222021-03-08 Tom Tromey <tom@tromey.com>
1223
1224 * eval.c (eval_multi_subscript): New function.
1225 (evaluate_subexp_standard): Use it.
1226
dd5fd283
TT
12272021-03-08 Tom Tromey <tom@tromey.com>
1228
1229 * ada-lang.c (ada_binop_exp): New function.
1230 (ada_evaluate_subexp): Use it.
1231
3848abd6
TT
12322021-03-08 Tom Tromey <tom@tromey.com>
1233
1234 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1235 parameters.
1236 (ada_evaluate_subexp): Use it.
1237
38dc70cf
TT
12382021-03-08 Tom Tromey <tom@tromey.com>
1239
1240 * ada-lang.c (ada_binop_minmax): New function.
1241 (ada_evaluate_subexp): Use it.
1242
b84564fc
TT
12432021-03-08 Tom Tromey <tom@tromey.com>
1244
1245 * ada-lang.c (ada_unop_atr): New function.
1246 (ada_evaluate_subexp): Use it.
1247
b467efaa
TT
12482021-03-08 Tom Tromey <tom@tromey.com>
1249
1250 * ada-lang.c (ada_binop_in_bounds): New function.
1251 (ada_evaluate_subexp): Use it.
1252
5ce19db8
TT
12532021-03-08 Tom Tromey <tom@tromey.com>
1254
1255 * ada-lang.c (ada_ternop_slice): New function.
1256 (ada_evaluate_subexp): Use it.
1257
214b13ac
TT
12582021-03-08 Tom Tromey <tom@tromey.com>
1259
1260 * ada-lang.c (ada_equal_binop): New function.
1261 (ada_evaluate_subexp): Use it.
1262
faa1dfd7
TT
12632021-03-08 Tom Tromey <tom@tromey.com>
1264
1265 * ada-lang.c (ada_mult_binop): New function.
1266 (ada_evaluate_subexp): Use it.
1267
d05e24e6
TT
12682021-03-08 Tom Tromey <tom@tromey.com>
1269
1270 * ada-lang.c (ada_abs): New function.
1271 (ada_evaluate_subexp): Use it.
1272
68c75735
TT
12732021-03-08 Tom Tromey <tom@tromey.com>
1274
1275 * ada-lang.c (ada_atr_size): New function.
1276 (ada_evaluate_subexp): Use it.
1277
020dbabe
TT
12782021-03-08 Tom Tromey <tom@tromey.com>
1279
1280 * ada-lang.c (ada_atr_tag): New function.
1281 (ada_evaluate_subexp): Use it.
1282
7efc87ff
TT
12832021-03-08 Tom Tromey <tom@tromey.com>
1284
1285 * ada-lang.c (ada_unop_in_range): New function.
1286 (ada_evaluate_subexp): Use it.
1287
82390ab8
TT
12882021-03-08 Tom Tromey <tom@tromey.com>
1289
1290 * ada-lang.c (ada_unop_neg): New function.
1291 (ada_evaluate_subexp): Use it.
1292
62d4bd94
TT
12932021-03-08 Tom Tromey <tom@tromey.com>
1294
1295 * ada-lang.c (eval_ternop_in_range): New function.
1296 (ada_evaluate_subexp): Use it.
1297
3634f669
TT
12982021-03-08 Tom Tromey <tom@tromey.com>
1299
1300 * opencl-lang.c (eval_opencl_assign): New function.
1301 (evaluate_subexp_opencl): Use it.
1302
5e80600e
TT
13032021-03-08 Tom Tromey <tom@tromey.com>
1304
1305 * eval.c (eval_op_objc_msgcall): New function.
1306 (evaluate_subexp_standard): Use it.
1307
fb5ba2ab
TT
13082021-03-08 Tom Tromey <tom@tromey.com>
1309
1310 * eval.c (eval_binop_assign_modify): New function.
1311 (evaluate_subexp_standard): Use it.
1312
a49881f7
TT
13132021-03-08 Tom Tromey <tom@tromey.com>
1314
1315 * m2-lang.c (eval_op_m2_subscript): New function.
1316 (evaluate_subexp_modula2): Use it.
1317
41bdced5
TT
13182021-03-08 Tom Tromey <tom@tromey.com>
1319
1320 * m2-lang.c (eval_op_m2_high): New function.
1321 (evaluate_subexp_modula2): Use it.
1322
13ea014a
TT
13232021-03-08 Tom Tromey <tom@tromey.com>
1324
1325 * eval.c (evaluate_subexp_for_address_base): New function.
1326 (evaluate_subexp_for_address): Use it.
1327 (evaluate_subexp_for_sizeof_base): New function.
1328 (evaluate_subexp_for_sizeof): Use it.
1329
1fa41fc7
TT
13302021-03-08 Tom Tromey <tom@tromey.com>
1331
1332 * rust-lang.c (eval_op_rust_structop): New function.
1333 (rust_evaluate_subexp): Use it.
1334
575cae23
TT
13352021-03-08 Tom Tromey <tom@tromey.com>
1336
1337 * rust-lang.c (eval_op_rust_struct_anon): New function.
1338 (rust_evaluate_subexp): Use it.
1339
05104233
TT
13402021-03-08 Tom Tromey <tom@tromey.com>
1341
1342 * rust-lang.c (eval_op_rust_array): New function.
1343 (rust_evaluate_subexp): Use it.
1344
6fa9831f
TT
13452021-03-08 Tom Tromey <tom@tromey.com>
1346
1347 * rust-lang.c (eval_op_rust_complement): New function.
1348 (rust_evaluate_subexp): Use it.
1349
d123f9e4
TT
13502021-03-08 Tom Tromey <tom@tromey.com>
1351
1352 * rust-lang.c (eval_op_rust_ind): New function.
1353 (rust_evaluate_subexp): Use it.
1354
984af2cb
TT
13552021-03-08 Tom Tromey <tom@tromey.com>
1356
1357 * rust-lang.c (rust_subscript): Change parameters.
1358 (rust_evaluate_subexp): Update.
1359
d148f803
TT
13602021-03-08 Tom Tromey <tom@tromey.com>
1361
1362 * rust-lang.c (rust_range): Change parameters.
1363 (rust_evaluate_subexp): Update.
1364
9cbd1c20
TT
13652021-03-08 Tom Tromey <tom@tromey.com>
1366
1367 * f-lang.c (eval_op_f_allocated): New function.
1368 (evaluate_subexp_f): Use it.
1369
3c18c49c
TT
13702021-03-08 Tom Tromey <tom@tromey.com>
1371
1372 * f-lang.c (fortran_require_array): New function.
1373 (evaluate_subexp_f): Use it.
1374
216f6fcb
TT
13752021-03-08 Tom Tromey <tom@tromey.com>
1376
1377 * f-lang.c (eval_op_f_kind): New function.
1378 (evaluate_subexp_f): Use it.
1379
00f2db6f
TT
13802021-03-08 Tom Tromey <tom@tromey.com>
1381
1382 * f-lang.c (eval_op_f_cmplx): New function.
1383 (evaluate_subexp_f): Use it.
1384
93b2b5fa
TT
13852021-03-08 Tom Tromey <tom@tromey.com>
1386
1387 * f-lang.c (eval_op_f_modulo): New function.
1388 (evaluate_subexp_f): Use it.
1389
9f1a1f3c
TT
13902021-03-08 Tom Tromey <tom@tromey.com>
1391
1392 * f-lang.c (eval_op_f_floor): New function.
1393 (evaluate_subexp_f): Use it.
1394
3dc41f3c
TT
13952021-03-08 Tom Tromey <tom@tromey.com>
1396
1397 * f-lang.c (eval_op_f_ceil): New function.
1398 (evaluate_subexp_f): Use it.
1399
e08109f2
TT
14002021-03-08 Tom Tromey <tom@tromey.com>
1401
1402 * f-lang.c (eval_op_f_mod): New function.
1403 (evaluate_subexp_f): Use it.
1404
cc05c68e
TT
14052021-03-08 Tom Tromey <tom@tromey.com>
1406
1407 * f-lang.c (eval_op_f_abs): New function.
1408 (evaluate_subexp_f): Use it.
1409
aec95807
TT
14102021-03-08 Tom Tromey <tom@tromey.com>
1411
1412 * eval.c (eval_op_type): New function.
1413 (evaluate_subexp_standard): Use it.
1414
a220ead5
TT
14152021-03-08 Tom Tromey <tom@tromey.com>
1416
1417 * eval.c (eval_op_postdec): New function.
1418 (evaluate_subexp_standard): Use it.
1419
abffe116
TT
14202021-03-08 Tom Tromey <tom@tromey.com>
1421
1422 * eval.c (eval_op_postinc): New function.
1423 (evaluate_subexp_standard): Use it.
1424
9e1361b7
TT
14252021-03-08 Tom Tromey <tom@tromey.com>
1426
1427 * eval.c (eval_op_predec): New file.
1428 (evaluate_subexp_standard): Use it.
1429
00f50884
TT
14302021-03-08 Tom Tromey <tom@tromey.com>
1431
1432 * eval.c (eval_op_preinc): New function.
1433 (evaluate_subexp_standard): Use it.
1434
3aef2a07
TT
14352021-03-08 Tom Tromey <tom@tromey.com>
1436
1437 * eval.c (eval_op_memval): New function.
1438 (evaluate_subexp_standard): Use it.
1439
acee9468
TT
14402021-03-08 Tom Tromey <tom@tromey.com>
1441
1442 * eval.c (eval_op_alignof): New function.
1443 (evaluate_subexp_standard): Use it.
1444
786f70ee
TT
14452021-03-08 Tom Tromey <tom@tromey.com>
1446
1447 * eval.c (eval_op_ind): New function.
1448 (evaluate_subexp_standard): Use it.
1449
24338fb9
TT
14502021-03-08 Tom Tromey <tom@tromey.com>
1451
1452 * eval.c (eval_op_lognot): New function.
1453 (evaluate_subexp_standard): Use it.
1454
1f09ec81
TT
14552021-03-08 Tom Tromey <tom@tromey.com>
1456
1457 * eval.c (eval_op_complement): New function.
1458 (evaluate_subexp_standard): Use it.
1459
606d105f
TT
14602021-03-08 Tom Tromey <tom@tromey.com>
1461
1462 * eval.c (eval_op_neg): New function.
1463 (evaluate_subexp_standard): Use it.
1464
39f288be
TT
14652021-03-08 Tom Tromey <tom@tromey.com>
1466
1467 * eval.c (eval_op_plus): New function.
1468 (evaluate_subexp_standard): Use it.
1469
eed70b1c
TT
14702021-03-08 Tom Tromey <tom@tromey.com>
1471
1472 * eval.c (eval_op_repeat): New function.
1473 (evaluate_subexp_standard): Use it.
1474
60cdd487
TT
14752021-03-08 Tom Tromey <tom@tromey.com>
1476
1477 * eval.c (eval_op_leq): New function.
1478 (evaluate_subexp_standard): Use it.
1479
96e3efd9
TT
14802021-03-08 Tom Tromey <tom@tromey.com>
1481
1482 * eval.c (eval_op_geq): New function.
1483 (evaluate_subexp_standard): Use it.
1484
1f78d732
TT
14852021-03-08 Tom Tromey <tom@tromey.com>
1486
1487 * eval.c (eval_op_gtr): New function.
1488 (evaluate_subexp_standard): Use it.
1489
6cad1349
TT
14902021-03-08 Tom Tromey <tom@tromey.com>
1491
1492 * eval.c (eval_op_less): New function.
1493 (evaluate_subexp_standard): Use it.
1494
1fcb3559
TT
14952021-03-08 Tom Tromey <tom@tromey.com>
1496
1497 * eval.c (eval_op_notequal): New function.
1498 (evaluate_subexp_standard): Use it.
1499
0cc96de8
TT
15002021-03-08 Tom Tromey <tom@tromey.com>
1501
1502 * eval.c (eval_op_equal): New function.
1503 (evaluate_subexp_standard): Use it.
1504
288d26bc
TT
15052021-03-08 Tom Tromey <tom@tromey.com>
1506
1507 * eval.c (eval_op_subscript): New function.
1508 (evaluate_subexp_standard): Use it.
1509
7cdcdd02
TT
15102021-03-08 Tom Tromey <tom@tromey.com>
1511
1512 * eval.c (eval_op_binary): New function.
1513 (evaluate_subexp_standard): Use it.
1514
d9790e22
TT
15152021-03-08 Tom Tromey <tom@tromey.com>
1516
1517 * eval.c (eval_op_sub): New function.
1518 (evaluate_subexp_standard): Use it.
1519
aedaf9ac
TT
15202021-03-08 Tom Tromey <tom@tromey.com>
1521
1522 * eval.c (eval_op_add): New function.
1523 (evaluate_subexp_standard): Use it.
1524
b7a96ed2
TT
15252021-03-08 Tom Tromey <tom@tromey.com>
1526
1527 * eval.c (eval_op_member): New function.
1528 (evaluate_subexp_standard): Use it.
1529
fb461aa3
TT
15302021-03-08 Tom Tromey <tom@tromey.com>
1531
1532 * eval.c (eval_op_structop_ptr): New function.
1533 (evaluate_subexp_standard): Use it.
1534
3e96c4fc
TT
15352021-03-08 Tom Tromey <tom@tromey.com>
1536
1537 * eval.c (eval_op_structop_struct): New function.
1538 (evaluate_subexp_standard): Use it.
1539
f960a617
TT
15402021-03-08 Tom Tromey <tom@tromey.com>
1541
1542 * eval.c (eval_op_ternop): New function.
1543 (evaluate_subexp_standard): Use it.
1544
5c2f201e
TT
15452021-03-08 Tom Tromey <tom@tromey.com>
1546
1547 * eval.c (eval_op_concat): New function.
1548 (evaluate_subexp_standard): Use it.
1549
f871bae1
TT
15502021-03-08 Tom Tromey <tom@tromey.com>
1551
1552 * eval.c (eval_op_objc_selector): New function.
1553 (evaluate_subexp_standard): Use it.
1554
14a1c64a
TT
15552021-03-08 Tom Tromey <tom@tromey.com>
1556
1557 * eval.c (eval_op_string): New function.
1558 (evaluate_subexp_standard): Use it.
1559
ffff730b
TT
15602021-03-08 Tom Tromey <tom@tromey.com>
1561
1562 * eval.c (eval_op_register): New function.
1563 (evaluate_subexp_standard): Use it.
1564
9b1d8af6
TT
15652021-03-08 Tom Tromey <tom@tromey.com>
1566
1567 * eval.c (eval_op_func_static_var): New function.
1568 (evaluate_subexp_standard): Use it.
1569
c0df9289
TT
15702021-03-08 Tom Tromey <tom@tromey.com>
1571
1572 * eval.c (eval_op_var_msym_value): New function.
1573 (evaluate_subexp_standard): Use it.
1574
50b98adc
TT
15752021-03-08 Tom Tromey <tom@tromey.com>
1576
1577 * eval.c (eval_op_var_entry_value): New function.
1578 (evaluate_subexp_standard): Use it.
1579
ea2d29f7
TT
15802021-03-08 Tom Tromey <tom@tromey.com>
1581
1582 * eval.c (eval_op_scope): New function.
1583 (evaluate_subexp_standard): Use it.
1584
01573d73
TT
15852021-03-06 Chernov Sergey <klen_s@mail.ru>
1586
1587 PR gdb/27528:
1588 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1589
9938d15a
TT
15902021-03-06 Tom Tromey <tom@tromey.com>
1591
1592 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1593 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1594 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1595 (locate_dwz_sections, dwz_search_other_debugdirs)
1596 (dwarf2_get_dwz_file): Move to dwz.c.
1597 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1598 read.h.
1599 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1600 (dwarf2_get_dwz_file): Move from read.c.
1601
18035655
TT
16022021-03-06 Tom Tromey <tom@tromey.com>
1603
1604 * debuginfod-support.h: Include scoped_fd.h.
1605
a7308ce0
TT
16062021-03-06 Tom Tromey <tom@tromey.com>
1607
1608 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1609 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1610 (get_abbrev_section_for_cu, read_attribute_value)
1611 (get_debug_line_section): Update.
1612 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1613
fbedd546
TT
16142021-03-06 Tom Tromey <tom@tromey.com>
1615
1616 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1617 method.
1618 * dwarf2/read.c (section_is_p): Remove.
1619 (dwarf2_per_bfd::locate_sections)
1620 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1621 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1622 (dwarf2_locate_common_dwp_sections)
1623 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1624 Update.
1625
c2a62a3d
TT
16262021-03-06 Tom Tromey <tom@tromey.com>
1627
1628 * xcoffread.c: Include sect-names.h.
1629 * symfile.h (struct dwarf2_section_names, struct
1630 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1631 * dwarf2/sect-names.h: New file, from symfile.h.
1632 * dwarf2/read.c: Include sect-names.h.
1633
4444f407
TT
16342021-03-06 Tom Tromey <tom@tromey.com>
1635
1636 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1637 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1638 (abbrev_table::read): Update.
1639 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1640 (struct abbrev_info): Reformat.
1641 <attrs>: Now an array.
1642 (struct abbrev_table) <alloc_abbrev>: Remove.
1643
dd99cf0c
WP
16442021-03-06 Weimin Pan <weimin.pan@oracle.com>
1645
1646 * ctfread.c (ctf_psymtab_add_enums): New function.
1647 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1648
844be3f2
WP
16492021-03-06 Weimin Pan <weimin.pan@oracle.com>
1650
1651 * ctfread.c (read_func_kind_type): Set up function arguments.
1652
b2668f28
AB
16532021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1654 Andrew Burgess <andrew.burgess@embecosm.com>
1655
1656 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1657 includes.
1658 (riscv_csrset): New static global.
1659 (riscv_update_csrmap): New function.
1660 (riscv_iterate_over_regset_sections): Process CSRs.
1661
d782d24b
AB
16622021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1663
1664 * riscv-tdep.c (riscv_feature_name_csr): Define.
1665 (riscv_feature_name_cpu): Define.
1666 (riscv_feature_name_fpu): Define.
1667 (riscv_feature_name_virtual): Define.
1668 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1669 (riscv_freg_feature): Use riscv_feature_name_fpu.
1670 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1671 (riscv_csr_feature): Use riscv_feature_name_csr.
1672 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1673
fb8f3fc0
AB
16742021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1675 Craig Blackmore <craig.blackmore@embecosm.com>
1676
1677 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1678 (ALLDEPFILES): Add riscv-none-tdep.c.
1679 * configure: Regenerate.
1680 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1681 support.
1682 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1683 * elf-none-tdep.c: New file.
1684 * elf-none-tdep.h: New file.
1685 * riscv-none-tdep.c: New file.
1686
95ce627a
AB
16872021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1688 Andrew Burgess <andrew.burgess@embecosm.com>
1689
1690 * corelow.c: Add 'xml-tdesc.h' include.
1691 (core_target::read_description): Load the target description from
1692 the core file when possible.
1693 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1694 note.
1695 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1696 (gcore_elf_make_tdesc_note): New function.
1697 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1698 * linux-tdep.c (linux_make_corefile_notes): Add target description
1699 note.
1700
f3a5df7b
AB
17012021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1702
1703 * Makefile.in (SFILES): Add gcore-elf.c.
1704 (HFILES_NO_SRCDIR): Add gcore-elf.h
1705 * configure: Regenerate.
1706 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1707 support.
1708 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1709 (struct fbsd_collect_regset_section_cb_data): Delete.
1710 (fbsd_collect_regset_section_cb): Delete.
1711 (fbsd_collect_thread_registers): Delete.
1712 (struct fbsd_corefile_thread_data): Delete.
1713 (fbsd_corefile_thread): Delete.
1714 (fbsd_make_corefile_notes): Call
1715 gcore_elf_build_thread_register_notes instead of the now deleted
1716 FreeBSD code.
1717 * gcore-elf.c: New file, the content was moved here from
1718 linux-tdep.c, functions were renamed and given minor cleanup.
1719 * gcore-elf.h: New file.
1720 * gcore.c (gcore_find_signalled_thread): Moved here from
1721 linux-tdep.c and given a new name. Minor cleanups.
1722 * gcore.h (gcore_find_signalled_thread): Declare.
1723 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1724 (struct linux_collect_regset_section_cb_data): Delete.
1725 (linux_collect_regset_section_cb): Delete.
1726 (linux_collect_thread_registers): Delete.
1727 (linux_corefile_thread): Call
1728 gcore_elf_build_thread_register_notes.
1729 (find_signalled_thread): Delete.
1730 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1731
d1e93af6
SM
17322021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1733
1734 PR gdb/27147
1735 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1736 process_stratum_target parameter,
1737 sparc_store_inferior_registers): update callers.
1738 * sparc-nat.c (sparc_fetch_inferior_registers,
1739 sparc_store_inferior_registers): Add process_stratum_target
1740 parameter. Switch current thread before calling
1741 sparc_supply_gregset / sparc_collect_rwindow.
1742 (sparc_store_inferior_registers): Likewise.
1743 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1744 (sparc32obsd_collect_uthread): Likewise.
1745 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1746 Add assertion.
1747 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1748 sparc64obsd_supply_uthread): Add assertion.
1749
1178743e
TT
17502021-03-04 Tom Tromey <tromey@adacore.com>
1751
1752 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1753 (aux_add_nonlocal_symbols): Update.
1754 (ada_add_block_symbols): Change "found_sym" to bool.
1755
1bfa81ac
TT
17562021-03-03 Tom Tromey <tromey@adacore.com>
1757
1758 * ada-lang.c (ada_resolve_function): Update comment.
1759 (is_nonfunction, add_symbols_from_enclosing_procs)
1760 (remove_extra_symbols): Likewise.
1761 (struct match_data): Add constructor, initializers.
1762 (add_nonlocal_symbols): Remove memset.
1763 (aux_add_nonlocal_symbols): Update comment.
1764 (ada_add_block_renamings, add_nonlocal_symbols)
1765 (ada_add_all_symbols): Likewise.
1766 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1767
bbcdf9ab
TT
17682021-03-02 Tom Tromey <tromey@adacore.com>
1769
1770 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1771 (cast_to_gnat_encoded_fixed_point_type): Remove.
1772 (ada_value_cast, ada_evaluate_subexp): Update.
1773 (gnat_encoded_fixed_point_type_info)
1774 (ada_is_gnat_encoded_fixed_point_type)
1775 (gnat_encoded_fixed_point_delta)
1776 (gnat_encoded_fixed_point_scaling_factor): Remove.
1777 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1778 (gnat_encoded_fixed_point_delta)
1779 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1780 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1781 (ada_print_type): Update.
1782 * ada-valprint.c (ada_value_print_num): Update.
1783 * dwarf2/read.c (ada_get_gnat_encoded_number)
1784 (ada_get_gnat_encoded_ratio): New functions.
1785 (finish_fixed_point_type): Use them. Add parameters.
1786 (GNAT_FIXED_POINT_SUFFIX): New define.
1787 (gnat_encoded_fixed_point_type_info): New function.
1788 (read_base_type): Handle gnat encodings.
1789
5f9febe0
TT
17902021-03-02 Tom Tromey <tromey@adacore.com>
1791
1792 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1793 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1794 std::string.
1795 (GROW_VECT): Remove.
1796 (grow_vect): Remove.
1797
d1183b06
TT
17982021-03-02 Tom Tromey <tromey@adacore.com>
1799
1800 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1801 * ada-lang.c (resolve_subexp): Update.
1802 (ada_resolve_function): Accept a vector.
1803 (is_nonfunction, add_defn_to_vec)
1804 (add_symbols_from_enclosing_procs): Likewise.
1805 (num_defns_collected, defns_collected): Remove.
1806 (remove_extra_symbols): Return a vector.
1807 (remove_irrelevant_renamings): Return void.
1808 (ada_add_local_symbols): Accept a vector.
1809 (struct match_data) <obstackp>: Remove.
1810 <resultp>: New member.
1811 (aux_add_nonlocal_symbols): Update.
1812 (ada_add_block_renamings, add_nonlocal_symbols)
1813 (ada_add_all_symbols): Accept a vector.
1814 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1815 vector.
1816 (ada_lookup_symbol): Update.
1817 (ada_add_block_symbols): Accept a vector.
1818 (get_var_value, iterate_over_symbols): Update.
1819 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1820 Update.
1821
886d459f
TT
18222021-03-02 Tom Tromey <tromey@adacore.com>
1823
1824 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1825
bdcccc56
TT
18262021-03-02 Tom Tromey <tromey@adacore.com>
1827
1828 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1829 auto_obstack.
1830 <root>: Initialize.
1831 (ada_pspace_data): Remove destructor.
1832 <sym_cache>: Now a unique_ptr.
1833 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1834 (ada_get_symbol_cache): Use 'new'.
1835 (ada_clear_symbol_cache): Rewrite.
1836
1228719f
TT
18372021-03-02 Tom Tromey <tromey@adacore.com>
1838
1839 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1840 is null.
1841
bb3a4efe
LS
18422021-02-27 Lancelot Six <lsix@lancelotsix.com>
1843
1844 PR gdb/27393
1845 * source.c (add_path): Skip empty dirnames.
1846
26b43ca6 18472021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
1848
1849 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1850 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1851
dffdd8b5
SM
18522021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1853
1854 PR gdb/26861
1855 * target.c (target_mourn_inferior): Only compare pids in
1856 target_mourn_inferior.
1857
64d38fdd
JM
18582021-02-25 Jan Matyas <jmatyas@codasip.com>
1859
1860 PR gdb/26819
1861 * remote.c (remote_target::start_remote): Ensure the single
1862 thread, automatically added for remote targets without the
1863 concept of threading, is initially in set to the "resumed"
1864 state.
1865 * remote.c (remote_target::add_current_inferior_and_thread):
1866 Add return value - return the main thread.
1867
2450ad54
JV
18682021-02-25 Jan Vrany <jan.vrany@labware.com>
1869
1870 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1871 (mi_tsv_created): Likewise.
1872 (mi_tsv_deleted): Likewise.
1873
30c80d88
TV
18742021-02-25 Tom de Vries <tdevries@suse.de>
1875
1876 PR symtab/27354
1877 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1878 section_kind for &dwo_file->sections.info.
1879
68337b8b
AB
18802021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1881
1882 PR fortran/26155
1883 * f-lang.c (fortran_argument_convert): Delete declaration.
1884 (fortran_prepare_argument): New function.
1885 (evaluate_subexp_f): Move logic to new function
1886 fortran_prepare_argument.
1887
faeb9f13
AB
18882021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1889
1890 * f-exp.y (f77_keywords): Add 'associated'.
1891 * f-lang.c (fortran_associated): New function.
1892 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1893 (operator_length_f): Likewise.
1894 (print_unop_or_binop_subexp_f): New function.
1895 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1896 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1897 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1898 (operator_check_f): Likewise.
1899 * std-operator.def: Add FORTRAN_ASSOCIATED.
1900
170f4b23
AB
19012021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1902
1903 * f-exp.y (fortran_operators): Add ".xor.".
1904
aa659cfa
TV
19052021-02-24 Tom de Vries <tdevries@suse.de>
1906
1907 PR symtab/27336
1908 * dwarf2/attribute.c (attribute::form_is_signed): New function
1909 factored out of ...
1910 * dwarf2/attribute.h (attribute::as_signed): ... here.
1911 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1912 (attribute::form_is_signed): Declare.
1913 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1914 for DW_AT_decl_file.
1915
268c77c1
KB
19162021-02-24 Kevin Buettner <kevinb@redhat.com>
1917
1918 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1919 order for <sys/ptrace.h> and <asm/ptrace.h>.
1920
665af52e
KB
19212021-02-24 Kevin Buettner <kevinb@redhat.com>
1922
1923 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1924 <sys/ptrace.h>.
1925
dd80d750
AB
19262021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1927
1928 * exec.c (set_section_command): Move variable declarations into
1929 the function body, and use std::string instead of a fixed size
1930 buffer.
1931
336aa7b7
AB
19322021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1933
1934 * exec.c (exec_target::get_section_table): Delete member function.
1935 (section_table_read_available_memory): Use current_top_target, not
1936 just the exec_ops target.
1937 * target-delegates.c: Regenerate.
1938 * target.c (default_get_section_table): New function.
1939 * target.h (target_ops::get_section_table): Change default
1940 behaviour to call default_get_section_table.
1941 (default_get_section_table): Declare.
1942
02f7d26b
AB
19432021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1944
1945 * exec.c (exec_target::close): Call new clear_target_sections
1946 function.
1947 (program_space::add_target_sections): Update name of member
1948 variable.
1949 (program_space::add_target_sections): Update name of member
1950 variable.
1951 (program_space::remove_target_sections): Likewise.
1952 (exec_one_fork): Use new target_sections member function.
1953 (exec_target::get_section_table): Likewise.
1954 (exec_target::files_info): Likewise.
1955 (set_section_command): Likewise.
1956 (exec_set_section_address): Likewise.
1957 (exec_target::has_memory): Use new target_sections member
1958 function.
1959 * progspace.h (program_space::clear_target_sections): New member
1960 function.
1961 (program_space::target_sections): Rename member variable to
1962 m_target_sections, replace with a new member function.
1963 (program_space::m_target_sections): New member variable.
1964 * solib-dsbt.c (scan_dyntag): Use new member function.
1965 * solib-svr4.c (scan_dyntag): Likewise.
1966
19cf757a
AB
19672021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1968
1969 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1970 return type const.
1971 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1972 (section_table_read_available_memory): Make local const.
1973 (exec_target::xfer_partial): Make local const.
1974 (print_section_info): Make parameter const.
1975 * gdb/exec.h (print_section_info): Likewise.
1976 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1977 const.
1978 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1979 Likewise.
1980 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1981 Likewise.
1982 * gdb/s390-tdep.c (s390_load): Likewise.
1983 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1984 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1985 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1986 Rename to...
1987 (target_debug_print_const_target_section_table_p): ...this.
1988 * gdb/target-delegates.c: Regenerate.
1989 * gdb/target.c (target_get_section_table): Make return type const.
1990 (target_section_by_addr): Likewise. Also make some locals const.
1991 (memory_xfer_partial_1): Make some locals const.
1992 * gdb/target.h (struct target_ops) <get_section_table>: Make
1993 return type const.
1994 (target_section_by_addr): Likewise.
1995 (target_get_section_table): Likewise.
1996
02a79309
AB
19972021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1998
1999 * NEWS: Mention new 'maint info target-sections' command.
2000 * maint.c (maintenance_info_target_sections): New function.
2001 (_initialize_maint_cmds): Register new command.
2002
895b7b4e
AB
20032021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2006 (riscv_features_from_bfd): ...this. Change parameter type to
2007 'bfd*', and update as required.
2008 (riscv_find_default_target_description): Update call to
2009 riscv_features_from_bfd. Select a default xlen based on
2010 info.bfd_arch_info.
2011 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2012
bc3c0632
AB
20132021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2014
2015 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2016 dynamic types in UNOP_IND.
2017
08ac5771
SM
20182021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2019
2020 PR gdb/26828
2021 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2022 Instantiate queue.
2023 (~dwarf2_queue_guard): Clear queue.
2024 (queue_comp_unit): Assert that queue is
2025 instantiated.
2026 (process_queue): Adjust.
2027 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2028
616c069a
SM
20292021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2030
2031 PR gdb/26828
2032 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2033 to decide whether or not to enqueue it for expansion.
2034 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2035 after calling maybe_queue_comp_unit.
2036
897608ed
SM
20372021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2038
2039 * linux-nat.c (linux_nat_filter_event): Return void.
2040
15908a11
TT
20412021-02-22 Tom Tromey <tromey@adacore.com>
2042
2043 * solib-svr4.c (enable_break): Update.
2044 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2045 type.
2046 (target_bfd_reopen): Change parameter type.
2047 * bfd-target.h (target_bfd_reopen): Change parameter type.
2048
f53fc427
SM
20492021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2050
2051 * thread.c (add_thread_silent): Add assert.
2052 (find_thread_ptid): Add assert.
2053
de146e19
SM
20542021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2055
2056 PR gdb/27435
2057 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2058 (target_unpush_up): Likewise.
2059 * procfs.c (procfs_target::attach): Push target early. Use
2060 target_unpush_up to unpush target in case of error.
2061 * target.h (struct target_unpusher): Move here.
2062 (target_unpush_up): Likewise.
2063
8488c357
KB
20642021-02-19 Kevin Buettner <kevinb@redhat.com>
2065
2066 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2067 (which in turn includes <gnulib/config.h>) before include
2068 of <signal.h>.
2069
5a9f5403
NC
20702021-02-19 Nelson Chu <nelson.chu@sifive.com>
2071
2072 PR 27158
2073 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2074 (decode_j_type_insn): Likewise.
2075 (decode_cj_type_insn): Likewise.
2076 (decode_b_type_insn): Likewise.
2077 (decode): Likewise.
2078
26f53cd3
TT
20792021-02-18 Tom Tromey <tom@tromey.com>
2080
2081 * expression.h (struct expression) <evaluate>: Declare method.
2082 * eval.c (evaluate_subexp): Simplify.
2083 (expression::evaluate): New method.
2084 (evaluate_expression, evaluate_type): Use expression::evaluate.
2085
6a780b67
KB
20862021-02-17 Kevin Buettner <kevinb@redhat.com>
2087
2088 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2089 to accessing it.
2090 (ada_lookup_name_info): Likewise.
2091
adeab0c5
MF
20922021-02-13 Mike Frysinger <vapier@gentoo.org>
2093
2094 * aclocal.m4: Regenerate.
2095
089436f7
TV
20962021-02-12 Tom de Vries <tdevries@suse.de>
2097
2098 PR threads/26228
2099 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2100 (lin_thread_signals): New static var.
2101 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2102 New function.
2103 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2104 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2105 Declare.
2106 * linux-thread-db.c (check_thread_signals): Use
2107 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2108
96df3e28
AB
21092021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2110
2111 * f-exp.y (f77_keywords): Add allocated.
2112 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2113 (operator_length_f): Likewise.
2114 (print_subexp_f): Likewise.
2115 (dump_subexp_body_f): Likewise.
2116 (operator_check_f): Likewise.
2117 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2118
05f68f52
TV
21192021-02-11 Tom de Vries <tdevries@suse.de>
2120
2121 PR symtab/27353
2122 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2123 Return true for DW_FORM_strx.
2124
b260f8d6
TT
21252021-02-11 Tom Tromey <tromey@adacore.com>
2126
2127 PR gdb/27383:
2128 * parse.c (write_exp_symbol_reference): Write sym.block.
2129
bf3386f0
AB
21302021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2131
2132 * NEWS: Mention changes to 'maint info sections'.
2133 * maint.c (match_substring): Return a bool, fix whitespace issue.
2134 (struct single_bfd_flag_info): New struct.
2135 (bfd_flag_info): New static global.
2136 (match_bfd_flags): Return a bool, use bfd_flag_info.
2137 (print_bfd_flags): Use bfd_flag_info.
2138 (maint_print_section_info): Delete trailing whitespace.
2139 (struct maint_info_sections_opts): New struct.
2140 (maint_info_sections_option_defs): New static global.
2141 (maint_info_sections_completer): New function.
2142 (maintenance_info_sections): Use option parsing mechanism.
2143 (_initialize_maint_cmds): Update command help text for 'maint info
2144 sections' and register a command completer.
2145
4790db14
AB
21462021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2147
2148 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2149 functionality merged into...
2150 (maint_print_all_sections): ...this new function.
2151 (maintenance_info_sections): Make use of maint_print_all_sections,
2152 allow all objects to be printed even where there's no executable.
2153
1db66e34
AB
21542021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2155
2156 * breakpoint.c (resolve_sal_pc): Make use of
2157 bound_minimal_symbol::obj_section.
2158 * maint.c (maintenance_translate_address): Likewise.
2159 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2160 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2161 member function.
2162 * printcmd.c (info_address_command): Make use of
2163 bound_minimal_symbol::obj_section.
2164
18b8df43
AM
21652021-02-11 Alan Modra <amodra@gmail.com>
2166
2167 * arm-symbian-tdep.c: Delete.
2168 * NEWS: Mention arm-symbian removal.
2169 * Makefile.in: Remove arm-symbian-tdep entries.
2170 * configure.tgt: Remove arm*-*-symbianelf*.
2171 * doc/gdb.texinfo: Remove mention of SymbianOS.
2172 * osabi.c (gdb_osabi_names): Remove "Symbian".
2173 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2174 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2175 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2176 handling.
2177 * testsuite/gdb.base/dup-sect.exp: Likewise.
2178 * testsuite/gdb.base/long_long.exp: Likewise.
2179 * testsuite/gdb.base/solib-weak.exp: Likewise.
2180 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2181 * testsuite/gdb.python/py-section-script.exp: Likewise.
2182 * testsuite/lib/dwarf.exp: Likewise.
2183 * testsuite/lib/gdb.exp: Likewise.
2184
e92c8eb8
AB
21852021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2186
2187 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2188 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2189 (one_or_two_args): New pattern.
2190 (f77_keywords): Add lbound and ubound.
2191 * f-lang.c (fortran_bounds_all_dims): New function.
2192 (fortran_bounds_for_dimension): New function.
2193 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2194 (operator_length_f): Likewise.
2195 (print_subexp_f): Likewise.
2196 (dump_subexp_body_f): Likewise.
2197 (operator_check_f): Likewise.
2198 * std-operator.def (FORTRAN_LBOUND): Define.
2199 (FORTRAN_UBOUND): Define.
2200
a52d653e
AB
22012021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2202
2203 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2204 and set_section_index member functions where appropriate.
2205 * coffread.c (coff_symtab_read): Likewise.
2206 (process_coff_symbol): Likewise.
2207 * ctfread.c (set_symbol_address): Likewise.
2208 * dwarf2/read.c (add_partial_symbol): Likewise.
2209 (var_decode_location): Likewise.
2210 * language.c: Likewise.
2211 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2212 (compact_minimal_symbols): Likewise.
2213 (minimal_symbol_upper_bound): Likewise.
2214 * objfiles.c (relocate_one_symbol): Likewise.
2215 * psympriv.h (partial_symbol::obj_section): Likewise.
2216 (partial_symbol::address): Likewise.
2217 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2218 * stabsread.c (scan_file_globals): Likewise.
2219 * symmisc.c (dump_msymbols): Likewise.
2220 * symtab.c (general_symbol_info::obj_section): Likewise.
2221 (fixup_section): Likewise.
2222 (get_msymbol_address): Likewise.
2223 * symtab.h (general_symbol_info::section): Rename to...
2224 (general_symbol_info::m_section): ...this.
2225 (general_symbol_info::set_section_index): New member function.
2226 (general_symbol_info::section_index): Likewise.
2227 (SYMBOL_SECTION): Delete.
2228 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2229 set_section_index member functions where appropriate.
2230 (MSYMBOL_SECTION): Delete.
2231 (symbol::symbol): Update to initialize 'm_section'.
2232 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2233 (process_xcoff_symbol): Likewise.
2234
ebbc3a7d
AB
22352021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2236
2237 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2238 MSYMBOL_OBJ_SECTION.
2239 * findvar.c (language_defn::read_var_value): Likewise.
2240 * infcmd.c (jump_command): Likewise.
2241 * linespec.c (minsym_found): Likewise.
2242 * maint.c (maintenance_translate_address): Likewise.
2243 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2244 (minimal_symbol_upper_bound): Likewise.
2245 * parse.c (find_minsym_type_and_address): Likewise.
2246 (operator_check_standard): Likewise.
2247 * printcmd.c (info_address_command): Likewise.
2248 * symmisc.c (dump_msymbols): Likewise.
2249 (print_symbol): Likewise.
2250 * symtab.c (general_symbol_info::obj_section): Define new
2251 function.
2252 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2253 (find_pc_sect_compunit_symtab): Likewise.
2254 (find_function_start_sal): Likewise.
2255 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2256 MSYMBOL_OBJ_SECTION.
2257 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2258 function.
2259 (SYMBOL_OBJ_SECTION): Delete.
2260 (MSYMBOL_OBJ_SECTION): Delete.
2261
9bb305b3
TT
22622021-02-09 Tom Tromey <tom@tromey.com>
2263
2264 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2265
cf2b2075
TV
22662021-02-09 Tom de Vries <tdevries@suse.de>
2267
2268 PR symtab/27341
2269 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2270 construct an array type. Add assert to ensure that element_type is
2271 not being modified.
2272
03642b71
AB
22732021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2274
2275 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2276 (gcore_collect_regset_section_cb): Delete.
2277 (gcore_collect_thread_registers): Delete.
2278 (gcore_build_thread_register_notes): Delete.
2279 (gcore_find_signalled_thread): Delete.
2280 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2281 'gdbarch' and 'thread_info' declarations.
2282 (gcore_build_thread_register_notes): Delete declaration.
2283 (gcore_find_signalled_thread): Likewise.
2284 * fbsd-tdep.c: Remove 'gcore.h' include.
2285 (struct fbsd_collect_regset_section_cb_data): New struct.
2286 (fbsd_collect_regset_section_cb): New function.
2287 (fbsd_collect_thread_registers): New function.
2288 (struct fbsd_corefile_thread_data): New struct.
2289 (fbsd_corefile_thread): New function.
2290 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2291 * linux-tdep.c: Remove 'gcore.h' include.
2292 (struct linux_collect_regset_section_cb_data): New struct.
2293 (linux_collect_regset_section_cb): New function.
2294 (linux_collect_thread_registers): New function.
2295 (linux_corefile_thread): Call Linux specific code.
2296 (find_signalled_thread): New function.
2297 (linux_make_corefile_notes): Call find_signalled_thread.
2298
f73e424f
TT
22992021-02-09 Tom Tromey <tromey@adacore.com>
2300
2301 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2302 not_lval value.
2303 * value.c (value_contents_copy_raw): Now static.
2304 * value.h (value_contents_copy_raw): Don't declare.
2305
a4f0544b
TT
23062021-02-09 Tom Tromey <tromey@adacore.com>
2307
2308 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2309 fields.
2310
9b3e4b5d
SV
23112021-02-08 Shahab Vahedi <shahab@synopsys.com>
2312
2313 PR tdep/27369
2314 * arc-linux-tdep.c (handle_atomic_sequence): New.
2315 (arc_linux_software_single_step): Call handle_atomic_sequence().
2316
29db1eb3
AB
23172021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2318
2319 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2320 function.
2321 (REQUIRE_WINDOW): Call is_valid member function.
2322 (REQUIRE_WINDOW_FOR_SETTER): New define.
2323 (gdbpy_tui_is_valid): Call is_valid member function.
2324 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2325 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2326 tui_active too.
2327 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2328 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2329 the function.
2330
e0c23e11
AB
23312021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2332
2333 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2334 for the title is not nullptr.
2335
1cf23996
AB
23362021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2337
2338 * tui-layout.c (saved_tui_windows): Delete.
2339 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2340 call new get_windows member function instead.
2341 (tui_get_window_by_name): Check in tui_windows.
2342 (tui_layout_window::apply): Don't add to tui_windows.
2343 * tui-layout.h (tui_layout_base::get_windows): New member function.
2344 (tui_layout_window::get_windows): Likewise.
2345 (tui_layout_split::get_windows): Likewise.
2346
a53a2657
AB
23472021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2348
2349 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2350 of the window objects.
2351
2708dbbd
AB
23522021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2353
2354 * python/python.c (gdbpy_print_stack): Reformat an error message.
2355
cd074e04
AB
23562021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2357
2358 * tui/tui-interp.c (tui_command_line_handler): New function.
2359 (tui_interp::resume): Register tui_command_line_handler as the
2360 input_handler.
2361 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2362 function.
2363 (tui_getc_1): Delete handling of '\n' and '\r'.
2364 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2365
4cf28e91
HD
23662021-02-07 Hannes Domani <ssbssa@yahoo.de>
2367
2368 * tui/tui-regs.c (tui_data_window::display_registers_from):
2369 Mark invisible register sub windows.
2370 (tui_data_window::check_register_values): Ignore invisible
2371 register sub windows.
2372
3537bc23
HD
23732021-02-07 Hannes Domani <ssbssa@yahoo.de>
2374
2375 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2376 n_spaces with a negative value.
2377
5fc2d6aa
HD
23782021-02-07 Hannes Domani <ssbssa@yahoo.de>
2379
2380 * tui/tui-regs.c (tui_data_window::display_registers_from):
2381 Add refresh_window call.
2382
83962f83
HD
23832021-02-07 Hannes Domani <ssbssa@yahoo.de>
2384
2385 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2386
0110ec82
SM
23872021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2388
2389 * symmisc.c (std_in, std_out, std_err): Remove.
2390 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2391
7c6944ab
TV
23922021-02-05 Tom de Vries <tdevries@suse.de>
2393
2394 PR breakpoints/27330
2395 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2396 glibc object file has debug info.
2397
e77b0004
TV
23982021-02-05 Tom de Vries <tdevries@suse.de>
2399
2400 PR symtab/27333
2401 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2402
0e857c82
TV
24032021-02-05 Tom de Vries <tdevries@suse.de>
2404
2405 PR breakpoints/27313
2406 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2407 syscall numbers.
2408
bdfea17e
TT
24092021-02-05 Tom Tromey <tom@tromey.com>
2410
2411 * compile/compile-c-support.c (get_compile_context)
2412 (c_get_compile_context, cplus_get_compile_context): Change return
2413 type.
2414 * language.c (language_defn::get_compile_instance): New method.
2415 * language.h (language_defn::get_compile_instance): Change return
2416 type. No longer inline.
2417 * c-lang.c (c_language::get_compile_instance): Change return type.
2418 (cplus_language::get_compile_instance): Change return type.
2419 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2420 Change return type.
2421 * compile/compile.c (compile_to_object): Update.
2422
1b30f421
TT
24232021-02-05 Tom Tromey <tom@tromey.com>
2424
2425 * parser-defs.h (write_exp_symbol_reference): Declare.
2426 * parse.c (write_exp_symbol_reference): New function.
2427 * p-exp.y (variable): Use write_exp_symbol_reference.
2428 * m2-exp.y (variable): Use write_exp_symbol_reference.
2429 * f-exp.y (variable): Use write_exp_symbol_reference.
2430 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2431 * c-exp.y (variable): Use write_exp_symbol_reference.
2432
ae710496
TV
24332021-02-05 Tom de Vries <tdevries@suse.de>
2434
2435 PR exp/27265
2436 * valarith.c (complex_binop): Throw an error if complex type can't
2437 be created.
2438
d3b54e63
TV
24392021-02-05 Tom de Vries <tdevries@suse.de>
2440
2441 PR symtab/27307
2442 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2443 return.
2444
fc9a13fb
TV
24452021-02-05 Tom de Vries <tdevries@suse.de>
2446
2447 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2448
04b4939b
MF
24492021-02-04 Mike Frysinger <vapier@gentoo.org>
2450
2451 * configure.tgt (riscv*-*-*): Set gdb_sim.
2452
6ff267e1
SM
24532021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2454
2455 * target.c (target_is_non_stop_p): Return bool.
2456 * target.h (target_is_non_stop_p): Return bool.
2457
fdbc5215
SM
24582021-02-04 Simon Marchi <simon.marchi@efficios.com>
2459
2460 * record-full.c (record_full_async_inferior_event_handler):
2461 Don't clear async event handler.
2462 (record_full_base_target::wait): Clear async event handler at
2463 beginning.
2464
85d3ad8e
SM
24652021-02-04 Simon Marchi <simon.marchi@efficios.com>
2466
2467 * record-btrace.c (record_btrace_handle_async_inferior_event):
2468 Don't clear async event handler.
2469 (record_btrace_target::wait): Clear async event handler at
2470 beginning.
2471
baa8575b
SM
24722021-02-04 Simon Marchi <simon.marchi@efficios.com>
2473
2474 * remote.c (remote_target::wait): Clear async event handler at
2475 beginning, mark if needed at the end.
2476 (remote_async_inferior_event_handler): Don't set or clear async
2477 event handler.
2478
6b36ddeb
SM
24792021-02-04 Simon Marchi <simon.marchi@efficios.com>
2480
2481 * async-event.h (async_event_handler_func): Add documentation.
2482 * async-event.c (check_async_event_handlers): Don't clear
2483 async_event_handler ready flag.
2484 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2485 flag.
2486 * record-btrace.c (record_btrace_handle_async_inferior_event):
2487 Likewise.
2488 * record-full.c (record_full_async_inferior_event_handler):
2489 Likewise.
2490 * remote-notif.c (remote_async_get_pending_events_handler):
2491 Likewise.
2492 * remote.c (remote_async_inferior_event_handler): Likewise.
2493
72d383bb
SM
24942021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2495
2496 * infrun.c (handle_inferior_event): Move stop_soon variable to
2497 inner scope.
2498
408f6686
PA
24992021-02-03 Pedro Alves <pedro@palves.net>
2500
2501 * infcmd.c (detach_command): Hold strong reference to target, and
2502 if all-stop on entry, restart threads on exit.
2503 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2504 (restart_stepped_thread): ... this new function. Also handle
2505 trap_expected.
2506 (restart_after_all_stop_detach): New function.
2507 * infrun.h (restart_after_all_stop_detach): Declare.
2508
ac7d717c
PA
25092021-02-03 Pedro Alves <pedro@palves.net>
2510
2511 * infrun.c (struct step_over_info): Initialize fields.
2512 (prepare_for_detach): Handle ongoing in-line step over.
2513
e87f0fe8
PA
25142021-02-03 Pedro Alves <pedro@palves.net>
2515
2516 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2517 here...
2518 * remote.c (remote_target::remote_detach_1): ... and here ...
2519 * target.c (target_detach): ... instead of here.
2520 * target.h (target_ops::detach): Add comment.
2521
8ff53139
PA
25222021-02-03 Pedro Alves <pedro@palves.net>
2523
2524 * infrun.c (struct wait_one_event): Move higher up.
2525 (prepare_for_detach): Abort in-progress displaced steps instead of
2526 letting them complete.
2527 (handle_one): If the inferior is detaching, don't add the thread
2528 back to the global step-over chain.
2529 (restart_threads): Don't restart threads if detaching.
2530 (handle_signal_stop): Remove inferior::detaching reference.
2531
91475068
PA
25322021-02-03 Pedro Alves <pedro@palves.net>
2533
2534 * infrun.c (prepare_for_detach): Don't release scoped_restore
2535 before returning.
2536
d758e62c
PA
25372021-02-03 Pedro Alves <pedro@palves.net>
2538
2539 * infrun.c (handle_one): New function, factored out from ...
2540 (stop_all_threads): ... here.
2541
b0083dd7
PA
25422021-02-03 Pedro Alves <pedro@palves.net>
2543
2544 * remote.c (remote_notif_stop_ack): Don't error out on
2545 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2546 (remote_target::discard_pending_stop_replies): Don't delete
2547 in-flight notification; instead, clear its contents.
2548
621cc310
PA
25492021-02-03 Pedro Alves <pedro@palves.net>
2550
2551 * remote.c (extended_remote_target::attach): Set target async in
2552 the target-non-stop path too.
2553
2ab76a18
PA
25542021-02-03 Pedro Alves <pedro@palves.net>
2555
2556 PR gdb/27055
2557 * infrun.c (handle_signal_stop): Move main context_switch call
2558 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2559
2e3773ff
LS
25602021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2561
2562 * NEWS (Changed commands): Add entry for the behavior change of
2563 the inferior command.
2564 * inferior.c (inferior_command): When no argument is given to the
2565 inferior command, display info about the currently selected
2566 inferior.
2567
e57933dc
SM
25682021-02-02 Simon Marchi <simon.marchi@efficios.com>
2569
2570 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2571 a sect_offset.
2572 (read_attribute_reprocess): Adjust.
2573
2b0c7f41
SM
25742021-02-02 Simon Marchi <simon.marchi@efficios.com>
2575
2576 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2577 <gnu_ranges_base>: ... this...
2578 <rnglists_base>: ... and this.
2579 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2580 <gnu_ranges_base>: ... this...
2581 <rnglists_base>: ... and this.
2582 (read_cutu_die_from_dwo): Adjust
2583 (dwarf2_get_pc_bounds): Adjust
2584 (dwarf2_record_block_ranges): Adjust.
2585 (read_full_die_1): Adjust
2586 (partial_die_info::read): Adjust.
2587 (read_rnglist_index): Adjust.
2588
a1c40103
SM
25892021-02-02 Simon Marchi <simon.marchi@efficios.com>
2590
2591 PR gdb/26813
2592 * dwarf2/read.c (read_loclists_rnglists_header): Add
2593 header_offset parameter and use it.
2594 (read_loclist_index): Read header of the current contribution,
2595 not the one at the beginning of the section.
2596 (read_rnglist_index): Likewise.
2597
b1829e1b
SM
25982021-02-02 Simon Marchi <simon.marchi@efficios.com>
2599
2600 PR gdb/26813
2601 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2602 requires_reprocessing flag.
2603 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2604 DW_FORM_loclistx.
2605 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2606 and DW_FORM_loclistx.
2607 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2608 instead of set_address for DW_FORM_loclistx and
2609 DW_FORM_rnglistx.
2610
0c800c6e
SM
26112021-02-02 Simon Marchi <simon.marchi@efficios.com>
2612
2613 * dwarf2/read.c (read_loclist_index): Remove bound check for
2614 start of offset.
2615 (read_rnglist_index): Likewise.
2616
05787bad
SM
26172021-02-02 Simon Marchi <simon.marchi@efficios.com>
2618
2619 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2620 of the offset.
2621
5e4d9bbc
SM
26222021-02-02 Simon Marchi <simon.marchi@efficios.com>
2623
2624 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2625
a0c1eeba
SM
26262021-02-02 Simon Marchi <simon.marchi@efficios.com>
2627
2628 * dwarf2/read.c (read_loclist_index): Change complaints into
2629 errors.
2630
2bd3e4b8
TV
26312021-02-02 Tom de Vries <tdevries@suse.de>
2632
2633 PR symtab/24620
2634 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2635 psymtab == nullptr.
2636
82a1fd3a
AB
26372021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2638
2639 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2640 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2641 here from linux-tdep.c and given a new name. Minor cleanups.
2642 (gcore_collect_regset_section_cb): Likewise.
2643 (gcore_collect_thread_registers): Likewise.
2644 (gcore_build_thread_register_notes): Likewise.
2645 (gcore_find_signalled_thread): Likewise.
2646 * gcore.h (gcore_build_thread_register_notes): Declare.
2647 (gcore_find_signalled_thread): Declare.
2648 * fbsd-tdep.c: Add 'gcore.h' include.
2649 (struct fbsd_collect_regset_section_cb_data): Delete.
2650 (fbsd_collect_regset_section_cb): Delete.
2651 (fbsd_collect_thread_registers): Delete.
2652 (struct fbsd_corefile_thread_data): Delete.
2653 (fbsd_corefile_thread): Delete.
2654 (fbsd_make_corefile_notes): Call
2655 gcore_build_thread_register_notes instead of the now deleted
2656 FreeBSD code.
2657 * linux-tdep.c: Add 'gcore.h' include.
2658 (struct linux_collect_regset_section_cb_data): Delete.
2659 (linux_collect_regset_section_cb): Delete.
2660 (linux_collect_thread_registers): Delete.
2661 (linux_corefile_thread): Call
2662 gcore_build_thread_register_notes.
2663 (find_signalled_thread): Delete.
2664 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2665
ebde6f2d
TV
26662021-01-29 Tom de Vries <tdevries@suse.de>
2667
2668 PR breakpoints/26063
2669 * infrun.c (process_event_stop_test): Reset
2670 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2671 changed.
2672
0f93c3a2
AB
26732021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2674
2675 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2676 assert. Extend the header comment.
2677
f237f998
AB
26782021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2679
2680 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2681 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2682 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2683 (tui_locator_win_info_ptr): Delete declaration.
2684 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2685 (tui_disasm_window::set_contents): Fetch state from tui_location
2686 global.
2687 (tui_get_begin_asm_address): Likewise.
2688 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2689 for locator window.
2690 (get_locator_window): Delete.
2691 (initialize_known_windows): Treat locator window just like all the
2692 rest.
2693 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2694 (tui_source_window::set_contents): Fetch state from tui_location
2695 global.
2696 (tui_source_window::showing_source_p): Likewise.
2697 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2698 (_locator): Delete.
2699 (tui_locator_win_info_ptr): Delete.
2700 (tui_locator_window::make_status_line): Fetch state from
2701 tui_location global.
2702 (tui_locator_window::rerender): Remove check of 'handle',
2703 reindent function body.
2704 (tui_locator_window::set_locator_fullname): Delete.
2705 (tui_locator_window::set_locator_info): Delete.
2706 (tui_update_locator_fullname): Delete.
2707 (tui_show_frame_info): Likewise.
2708 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2709 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2710 tui/tui-location.h and renamed to
2711 tui_location_tracker::set_location.
2712 (tui_locator_window::set_locator_fullname): Moved to
2713 tui/tui-location.h and renamed to
2714 tui_location_tracker::set_fullname.
2715 (tui_locator_window::full_name): Delete.
2716 (tui_locator_window::proc_name): Delete.
2717 (tui_locator_window::line_no): Delete.
2718 (tui_locator_window::addr): Delete.
2719 (tui_locator_window::gdbarch): Delete.
2720 (tui_update_locator_fullname): Delete declaration.
2721 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2722 for locator window.
2723 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2724 (tui_display_main): Call function on tui_location directly.
2725 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2726 * tui/tui-location.c: New file.
2727 * tui/tui-location.h: New file.
2728
8ee511af
SM
27292021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2730
2731 * gdbtypes.h (get_type_arch): Rename to...
2732 (struct type) <arch>: ... this, update all users.
2733
6ac37371
SM
27342021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2735
2736 * gdbtypes.h (struct type) <arch>: Rename to...
2737 <arch_owner>: ... this, update all users.
2738 <objfile>: Rename to...
2739 <objfile_owner>: ... this, update all users.
2740
24cf6389
AB
27412021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2742
2743 * gdbcmd.h (execute_command_to_string): Update comment.
2744 * top.c (execute_command_to_string): Update header comment.
2745
2a7f6487
TV
27462021-01-28 Tom de Vries <tdevries@suse.de>
2747
2748 PR breakpoints/27205
2749 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2750 (create_longjmp_master_breakpoint_names): New function, factored out
2751 of ...
2752 (create_longjmp_master_breakpoint): ... here. Only try to install
2753 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2754 breakpoint in libc.so failed.
2755
59b59f08
LS
27562021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2757
2758 PR gdb/27133
2759 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2760 unique_ptr is released when the wrapped pointer is kept for later
2761 use.
2762
807f647c
MM
27632021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2764
2765 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2766 BLR and BR instructions.
2767 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2768 (enum aarch64_masks): New.
2769
4ef367bf
TT
27702021-01-26 Tom Tromey <tromey@adacore.com>
2771
2772 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2773 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2774 (windows_init_thread_list, windows_nat::handle_load_dll)
2775 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2776 (windows_nat_target::resume)
2777 (windows_nat_target::get_windows_debug_event)
2778 (windows_nat_target::interrupt, windows_xfer_memory)
2779 (windows_nat_target::close): Update.
2780 * nat/windows-nat.c (DEBUG_EVENTS): Use
2781 debug_prefixed_printf_cond.
2782 (matching_pending_stop, fetch_pending_stop)
2783 (continue_last_debug_event): Update.
2784
4cb1265b
MS
27852020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2786
2787 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2788 elfcore_write_file_note.
2789
d0cc52bd
SV
27902021-01-26 Shahab Vahedi <shahab@synopsys.com>
2791
2792 * arc-tdep.c (arc_add_reggroups): New function.
2793 (arc_gdbarch_init): Call arc_add_reggroups.
2794
ac3571d9 27952021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
2796
2797 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2798
9f6c202e
TV
27992021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2800 Simon Marchi <simon.marchi@polymtl.ca>
2801 Tom de Vries <tdevries@suse.de>
2802
2803 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2804 DW_AT_ranges.
2805
a625a8c9
TT
28062021-01-25 Tom Tromey <tromey@adacore.com>
2807
2808 * dwarf2/read.c (get_mpz): New function.
2809 (get_dwarf2_rational_constant): Use it.
2810
19184910
TT
28112021-01-25 Tom Tromey <tromey@adacore.com>
2812
2813 * ada-lang.c (resolve_subexp): Handle array context.
2814
b10bae18
TT
28152021-01-23 Tom Tromey <tom@tromey.com>
2816
2817 PR compile/25575
2818 * compile/compile-loc2c.c (note_register): New function.
2819 (pushf_register_address, pushf_register): Use it.
2820
3637a558
TT
28212021-01-23 Tom Tromey <tom@tromey.com>
2822
2823 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2824 Change type of "registers_used".
2825 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2826 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2827 (locexpr_generate_c_location, loclist_generate_c_location): Change
2828 type of "registers_used".
2829 * compile/compile.h (compile_dwarf_expr_to_c)
2830 (compile_dwarf_bounds_to_c): Update.
2831 * compile/compile-loc2c.c (pushf_register_address)
2832 (pushf_register, do_compile_dwarf_expr_to_c)
2833 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2834 of "registers_used".
2835 * compile/compile-c.h (generate_c_for_variable_locations):
2836 Update.
2837 * compile/compile-c-symbols.c (generate_vla_size)
2838 (generate_c_for_for_one_variable): Change type of
2839 "registers_used".
2840 (generate_c_for_variable_locations): Return std::vector.
2841 * compile/compile-c-support.c (generate_register_struct): Change
2842 type of "registers_used".
2843 (compute): Update.
2844
9f7f6cb8
TT
28452021-01-23 Tom Tromey <tom@tromey.com>
2846
2847 * compile/compile-internal.h (class compile_instance)
2848 <set_arguments>: Change return type.
2849 * compile/compile.c (compile_to_object): Remove call to reset.
2850 (compile_instance::set_arguments): Change return type.
2851
dd5ca05f
SM
28522021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2853
2854 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2855 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2856
d3ee35db
LS
28572021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2858
2859 * Makefile.in (SELFTESTS_SRCS): Add
2860 unittests/gdb_tilde_expand-selftests.c.
2861 * unittests/gdb_tilde_expand-selftests.c: New file.
2862
9d2d8a16
AB
28632021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2864
2865 PR cli/25956
2866 * NEWS: Mention new command.
2867 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2868 (version_style): Define.
2869 (cli_style_option::cli_style_option): Add intensity parameter, and
2870 use as appropriate.
2871 (_initialize_cli_style): Register version style set/show commands.
2872 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2873 (version_style): Declare.
2874 * top.c (print_gdb_version): Use version_stype, and styled_string
2875 to print the GDB version string.
2876
e7b43072
AB
28772021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2878
2879 * utils.c (emit_style_escape): Only emit an escape sequence if the
2880 requested style is different than the current applied style.
2881 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2882 current applied_style.
2883 (fputs_styled): Remove is_default check.
2884 (fputs_styled_unfiltered): Likewise.
2885 (vfprintf_styled_no_gdbfmt): Likewise.
2886
2189c312
SM
28872021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2888
2889 * remote.h (remote_debug_printf): New.
2890 (remote_debug_printf_nofunc): New.
2891 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2892 * remote.c: Use above macros throughout file.
2893
02349803
SM
28942021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2895
2896 * remote.h (remote_debug): Change to bool.
2897 * remote.c (remote_debug): Change to bool.
2898 (_initialize_remote): Adjust.
2899
cda09ec9
SM
29002021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2901
2902 * target.h (remote_debug): Move to...
2903 * remote.h (remote_debug): ... here.
2904 * top.c (remote_debug): Move to...
2905 * remote.c (remote_debug): ... here.
2906 * remote-sim.c: Include remote.h.
2907
baf2b57f
SM
29082021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2909
2910 * cli/cli-cmds.c (show_remote_debug): Remove.
2911 (show_remote_timeout): Remove.
2912 (_initialize_cli_cmds): Don't register commands.
2913 * remote.c (show_remote_debug): Move here.
2914 (show_remote_timeout): Move here.
2915 (_initialize_remote): Register commands.
2916
344e9841
SM
29172021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2918
2919 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2920 type::objfile method instead.
2921
30625020
SM
29222021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2923
2924 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2925 use the type::is_objfile_owned method.
2926
5b7d941b
SM
29272021-01-22 Simon Marchi <simon.marchi@efficios.com>
2928
2929 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2930 (TYPE_OWNER): Remove.
2931 (TYPE_OBJFILE): Adjust.
2932 (struct main_type) <flag_objfile_owned>: Rename to...
2933 <m_flag_objfile_owned>: ... this.
2934 <owner>: Rename to...
2935 <m_owner>: ... this.
2936 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2937 methods.
2938 (TYPE_ALLOC): Adjust.
2939 * gdbtypes.c (alloc_type): Adjust.
2940 (alloc_type_arch): Adjust.
2941 (alloc_type_copy): Adjust.
2942 (get_type_arch): Adjust.
2943 (smash_type): Adjust.
2944 (lookup_array_range_type): Adjust.
2945 (recursive_dump_type): Adjust.
2946 (copy_type_recursive): Adjust.
2947 * compile/compile-c-types.c (convert_func): Adjust.
2948 (convert_type_basic): Adjust.
2949 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2950 Adjust.
2951 * language.c
2952 (language_arch_info::type_and_symbol::alloc_type_symbol):
2953 Adjust.
2954
d5d24e12
LM
29552021-01-21 Luis Machado <luis.machado@linaro.org>
2956
2957 * coffread.c (enter_linenos): Passing string to complaint.
2958 * valops.c (value_assign): Make array view.
2959
a59902a7
SM
29602021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2961
2962 * auto-load.h (debug_auto_load): Move here.
2963 (auto_load_debug_printf): New.
2964 * auto-load.c: Use auto_load_debug_printf.
2965 (debug_auto_load): Move to header.
2966 * linux-thread-db.c (try_thread_db_load): Use
2967 auto_load_debug_printf.
2968 * main.c (captured_main_1): Likewise.
2969
d3abc0ce
SM
29702021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2971
2972 * f-valprint.c (f77_array_offset_tbl): Remove.
2973
1e15fcac
SM
29742021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2975
2976 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2977
439706e6
SM
29782021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2979
2980 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2981 of gdb_select.
2982
325d39e4
HD
29832021-01-21 Hannes Domani <ssbssa@yahoo.de>
2984
2985 PR python/19151
2986 * python/py-breakpoint.c (bppy_get_location): Handle
2987 bp_hardware_breakpoint.
2988 (bppy_init): Likewise.
2989 (gdbpy_breakpoint_created): Likewise.
2990
7cb6d92a
SM
29912021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2992
2993 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2994
d4dd4fca
SM
29952021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2996
2997 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2998 (_initialize_gdb_bfd): Adjust.
2999
de53369b
SM
30002021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3001
3002 PR gdb/26828
3003 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3004
17e593e9
SM
30052021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3006
3007 * dwarf2/read.c (follow_die_offset): Add logging.
3008 (dwarf2_per_objfile::age_comp_units): Add logging.
3009
6bd434d6
SM
30102021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3011
3012 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3013 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3014 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3015 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3016 * arm-tdep.c (struct frame_unwind): Make static.
3017 * auto-load.c (auto_load_safe_path_vec): Make static.
3018 * csky-tdep.c (csky_stub_unwind): Make static.
3019 * gdbarch.c (gdbarch_data_registry): Make static.
3020 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3021 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3022 * i386-tdep.c (i386_frame_setup_skip_insns,
3023 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3024 Make static.
3025 * infrun.c (observer_mode): Make static.
3026 * linux-nat.c (sigchld_action): Make static.
3027 * linux-thread-db.c (thread_db_list): Make static.
3028 * maint-test-options.c (maintenance_test_options_list):
3029 * mep-tdep.c (mep_csr_registers): Make static.
3030 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3031 (stats): Make static.
3032 * nat/linux-osdata.c (struct osdata_type): Make static.
3033 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3034 * progspace.c (last_program_space_num): Make static.
3035 * python/py-param.c (struct parm_constant): Remove struct type
3036 name.
3037 (parm_constants): Make static.
3038 * python/py-record-btrace.c (btpy_list_methods): Make static.
3039 * python/py-record.c (recpy_gap_type): Make static.
3040 * record.c (record_goto_cmdlist): Make static.
3041 * regcache.c (regcache_descr_handle): Make static.
3042 * registry.h (DEFINE_REGISTRY): Make definition static.
3043 * symmisc.c (std_in, std_out, std_err): Make static.
3044 * top.c (previous_saved_command_line): Make static.
3045 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3046 static.
3047 * unittests/command-def-selftests.c (nr_duplicates,
3048 nr_invalid_prefixcmd, lists): Make static.
3049 * unittests/observable-selftests.c (test_notification): Make
3050 static.
3051 * unittests/optional/assignment/1.cc (counter): Make static.
3052 * unittests/optional/assignment/2.cc (counter): Make static.
3053 * unittests/optional/assignment/3.cc (counter): Make static.
3054 * unittests/optional/assignment/4.cc (counter): Make static.
3055 * unittests/optional/assignment/5.cc (counter): Make static.
3056 * unittests/optional/assignment/6.cc (counter): Make static.
3057
a6c11cbb
JS
30582021-01-20 Joel Sherrill <joel@rtems.org>
3059
3060 PR gdb/27219
3061 * remote.c (struct remote_thread_info) <resume_state>: Rename
3062 to...
3063 <get_resume_state>: ... this.
3064 (remote_target::resume): Adjust.
3065 (remote_target::commit_resume): Adjust.
3066 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3067
6f52fdf4
SDJ
30682021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3069 Tom Tromey <tom@tromey.com>
3070
3071 * stap-probe.c (stap_parse_single_operand): Handle '!'
3072 operator.
3073 (stap_parse_argument_conditionally): Likewise.
3074 Skip spaces after processing open-parenthesis sub-expression.
3075 (stap_parse_argument_1): Skip spaces after call to
3076 stap_parse_argument_conditionally.
3077 Handle case when right-side expression is a parenthesized
3078 sub-expression.
3079 Skip spaces after call to stap_parse_argument_1.
3080
1c3b85ad
LS
30812021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3082
3083 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3084
a9a87d35
LM
30852021-01-19 Luis Machado <luis.machado@linaro.org>
3086
3087 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3088 memory and save data.
3089 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3090 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3091 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3092 (trad_frame_value_bytes_p): Remove.
3093 (trad_frame_reset_saved_regs): Adjust documentation.
3094 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3095 constructor and reset the state of the registers.
3096 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3097 (trad_frame_value_bytes_p, trad_frame_set_value)
3098 (trad_frame_set_realreg, trad_frame_set_addr)
3099 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3100 (trad_frame_set_reg_realreg): Update to call member function.
3101 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3102 (trad_frame_get_prev_register): Likewise.
3103
3104 * aarch64-tdep.c (aarch64_analyze_prologue)
3105 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3106 (aarch64_prologue_prev_register): Update to use member functions.
3107 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3108 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3109 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3110 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3111 (arm_make_epilogue_frame_cache): Likewise.
3112 * avr-tdep.c (avr_frame_unwind_cache)
3113 (avr_frame_prev_register): Likewise.
3114 * cris-tdep.c (cris_scan_prologue): Likewise.
3115 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3116 * frv-tdep.c (frv_analyze_prologue): Likewise.
3117 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3118 * lm32-tdep.c (lm32_frame_cache): Likewise.
3119 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3120 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3121 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3122 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3123 (reset_saved_regs): Adjust to set realreg.
3124 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3125 call member functions.
3126 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3127 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3128 (s390_backchain_frame_unwind_cache): Likewise.
3129 * score-tdep.c (score7_analyze_prologue)
3130 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3131 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3132 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3133 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3134 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3135 * tilegx-tdep.c (tilegx_analyze_prologue)
3136 (tilegx_frame_cache): Likewise.
3137 * v850-tdep.c (v850_frame_cache): Likewise.
3138 * vax-tdep.c (vax_frame_cache): Likewise.
3139
bdec2917
LM
31402021-01-19 Luis Machado <luis.machado@linaro.org>
3141
3142 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3143 of buffer + length.
3144 (put_frame_register_bytes): Likewise.
3145 Adjust documentation.
3146 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3147 (safe_frame_unwind_memory): Likewise.
3148 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3149 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3150 gdb::array_view.
3151 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3152 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3153 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3154 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3155 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3156 * dwarf2/loc.c (rw_pieced_value): Likewise.
3157 * hppa-tdep.c (hppa_frame_cache): Likewise.
3158 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3159 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3160 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3161 (i386_linux_rt_sigtramp_start): Likewise.
3162 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3163 * i386-tdep.c (i386_register_to_value): Likewise.
3164 * i387-tdep.c (i387_register_to_value): Likewise.
3165 * ia64-tdep.c (ia64_register_to_value): Likewise.
3166 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3167 (m32r_linux_rt_sigtramp_start): Likewise.
3168 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3169 * m68k-tdep.c (m68k_register_to_value): Likewise.
3170 * mips-tdep.c (mips_register_to_value)
3171 (mips_value_to_register): Likewise.
3172 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3173 (ppcfbsd_sigtramp_frame_cache): Likewise.
3174 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3175 (ppcobsd_sigtramp_frame_cache): Likewise.
3176 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3177 (rs6000_register_to_value): Likewise.
3178 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3179 * tramp-frame.c (tramp_frame_start): Likewise.
3180 * valops.c (value_assign): Likewise.
3181
ccbe4c82
LM
31822021-01-19 Luis Machado <luis.machado@linaro.org>
3183
3184 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3185 array_view.
3186 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3187 instead of buffer and size.
3188 (trad_frame_set_reg_value_bytes): Likewise.
3189 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3190 (trad_frame_set_value_bytes): Likewise.
3191
0e7620dc
MF
31922021-01-18 Mike Frysinger <vapier@gentoo.org>
3193
3194 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3195
6a9ad81c
AB
31962021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3197
3198 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3199 (riscv_fbsd_gregset): Use riscv_supply_regset.
3200 (riscv_fbsd_fpregset): Likewise.
3201 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3202 (riscv_linux_fregset): Likewise.
3203 * riscv-tdep.c (riscv_supply_regset): Define new function.
3204 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3205
d3d7d1ba
TV
32062021-01-18 Tom de Vries <tdevries@suse.de>
3207
3208 PR tdep/27172
3209 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3210 New macro.
3211 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3212 for SEGV_BNDERR.
3213
aa2838cc
SM
32142021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3215
3216 * remote.c (class remote_target) <remote_hostio_send_command,
3217 remote_hostio_parse_result>: Constify parameter.
3218 (remote_hostio_parse_result): Likewise.
3219 (remote_target::remote_hostio_send_command): Adjust.
3220 (remote_target::remote_hostio_pread_vFile): Adjust.
3221 (remote_target::fileio_readlink): Adjust.
3222 (remote_target::fileio_fstat): Adjust.
3223
b5c8f22d
SM
32242021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3225
3226 * remote.c (remote_target::start_remote): Move wait_status to
3227 narrower scope.
3228
e3b2741b
SM
32292021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3230
3231 * remote.c (class remote_target):
3232 <add_current_inferior_and_thread>: Constify parameter.
3233 (stop_reply_extract_thread): Likewise.
3234 (remote_target::get_current_thread): Likewise.
3235 (remote_target::add_current_inferior_and_thread): Likewise.
3236
cecb1912
SM
32372021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3238
3239 * remote.c (class remote_target)
3240 <remote_unpack_thread_info_response,
3241 parse_threadlist_response>: Constify parameter and/or return
3242 value and or local variable.
3243 (stub_unpack_int): Likewise.
3244 (unpack_nibble): Likewise.
3245 (unpack_byte): Likewise.
3246 (unpack_int): Likewise.
3247 (unpack_string): Likewise.
3248 (unpack_threadid): Likewise.
3249 (remote_target::remote_unpack_thread_info_response): Likewise.
3250 (remote_target::parse_threadlist_response): Likewise.
3251
5a11fff0
AB
32522021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3253
3254 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3255
17e89137
LS
32562021-01-14 Lancelot Six <lsix@lancelotsix.com>
3257
3258 * MAINTAINERS (Write After Approval): Add myself.
3259
58eadc4b
BE
32602021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3261
3262 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3263 because is_trivially_default_constructible was first implemented with
3264 gcc-5.
3265
5fae2a2c
TV
32662021-01-14 Tom de Vries <tdevries@suse.de>
3267
3268 PR breakpoints/27151
3269 * objfiles.h (in_plt_section): Handle .plt.sec.
3270
8f66807b
AB
32712021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3272
3273 PR gdb/26819
3274 * remote.c
3275 (remote_target::select_thread_for_ambiguous_stop_reply): New
3276 member function.
3277 (remote_target::process_stop_reply): Call
3278 select_thread_for_ambiguous_stop_reply.
3279
bd497355
SM
32802021-01-13 Simon Marchi <simon.marchi@efficios.com>
3281
3282 * record-btrace.c (class record_btrace_target): Remove.
3283 (record_btrace_target::commit_resume): Remove.
3284 * record-full.c (class record_full_target): Remove.
3285 (record_full_target::commit_resume): Remove.
3286
c9d22089
SM
32872021-01-13 Simon Marchi <simon.marchi@efficios.com>
3288
3289 * remote.c (enum class resume_state): New.
3290 (struct resumed_pending_vcont_info): New.
3291 (struct remote_thread_info) <resume_state, set_not_resumed,
3292 set_resumed_pending_vcont, resumed_pending_vcont_info,
3293 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3294 New.
3295 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3296 (remote_target::remote_add_thread): Adjust.
3297 (remote_target::process_initial_stop_replies): Adjust.
3298 (remote_target::resume): Adjust.
3299 (remote_target::commit_resume): Rely on state in
3300 remote_thread_info and not on tp->executing.
3301 (remote_target::process_stop_reply): Adjust.
3302
d8d1feb4
SM
33032021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3304
3305 * arc-tdep.h (arc_debug_printf): New.
3306 * arc-tdep.c: Use arc_debug_printf.
3307 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3308 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3309 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3310
fb0f5031
SM
33112021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3312
3313 * arc-tdep.h (arc_debug): Change type to bool.
3314 * arc-tdep.c (arc_debug): Change type to bool.
3315 (arc_analyze_prologue): Adjust.
3316 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3317 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3318
5bf7e91b
SM
33192021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3320
3321 * auto-load.c (auto_load_objfile_script_1): Use bool.
3322 (execute_script_contents): Use bool.
3323
db972fce
SM
33242021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3325
3326 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3327 comment here.
3328 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3329 comment to header.
3330 * extension-priv.h (struct extension_language_script_ops)
3331 <auto_load_enabled>: Return bool.
3332 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3333 comment here.
3334 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3335 comment to header.
3336 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3337 move comment here.
3338 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3339 move comment to header.
3340 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3341 move comment here.
3342 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3343 move comment to header.
3344
5e12f48f
SM
33452021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3346
3347 * auto-load.h (file_is_auto_load_safe): Change return type to
3348 bool, move comment here.
3349 * auto-load.c (file_is_auto_load_safe): Change return type and
3350 advice_printed to bool. Move comment to header.
3351
54ca9002
SM
33522021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3353
3354 * jit.c (jit_debug_printf): New, use throughout file.
3355
24a7f1b5
SM
33562021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3357
3358 * infrun.c (normal_stop): Fix indentation.
3359
fe7a351a
SM
33602021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3361
3362 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3363 declarations to ...
3364 * symfile.h: ... here.
3365 * symfile.c: Update doc.
3366
16e9019e
SM
33672021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3368
3369 * target.h (baud_rate, serial_parity): Move declarations...
3370 * serial.h: ... here.
3371 * main.c: Include serial.h.
3372 * serial.c (baud_rate, serial_parity): Update doc.
3373
b2f2ae0d
SM
33742021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3375
3376 * top.c (pre_init_ui_hook): Remove.
3377
5291fe3c
SP
33782021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3379
3380 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3381 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3382 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3383 * features/aarch64-fpu.xml: Add bfloat16 type.
3384
ce38f5ed
AB
33852021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3386
3387 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3388
7c654b71
AB
33892021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3390
3391 * f-exp.y (dot_ops): Rename to...
3392 (fortran_operators): ...this. Add a header comment. Add symbol
3393 based operators.
3394 (yylex): Update to use fortran_operators not dot_ops. Remove
3395 special handling for '**', this is now included in
3396 fortran_operators.
3397
c6185dce
SM
33982021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3399
3400 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3401 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3402 * aarch64-tdep.c: Use aarch64_debug_printf.
3403
eef401dc
SM
34042021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3405
3406 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3407 file.
3408
062eaacb
SM
34092021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3410
3411 * jit.c (jit_debug): Change type to bool.
3412 (_initialize_jit): Adjust.
3413
54585eee
TT
34142021-01-09 Tom Tromey <tom@tromey.com>
3415
3416 PR compile/23672
3417 * compile/compile.c (compile_to_object): Avoid crash when
3418 osabi_triplet_regexp returns NULL.
3419
bc167b6b
TT
34202021-01-09 Tom Tromey <tom@tromey.com>
3421
3422 * tracepoint.h (class collection_list) <append_exp>: Take a
3423 std::string.
3424 * tracepoint.c (collection_list::append_exp): Take a std::string.
3425 (encode_actions_1): Update.
3426
8fc48b79
TT
34272021-01-08 Tom Tromey <tromey@adacore.com>
3428
3429 * parse.c (parse_expression): Add void_context_p parameter. Use
3430 parse_exp_in_context.
3431 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3432 parse_expression.
3433 (print_command, call_command): Update.
3434 * expression.h (parse_expression): Add void_context_p parameter.
3435
3c8c6de2
AB
34362021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3437
3438 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3439 for internalvar components that have a dynamic location.
3440
1940319c
TV
34412021-01-08 Tom de Vries <tdevries@suse.de>
3442
3443 PR gdb/26881
3444 * breakpoint.c (create_exception_master_breakpoint_probe)
3445 (create_exception_master_breakpoint_hook): Factor out
3446 of ...
3447 (create_exception_master_breakpoint): ... here. Only try to install
3448 the master exception breakpoint in objfile.debug using the
3449 _Unwind_DebugHook method, if the install using probes in objfile
3450 failed.
3451
e3436813
AB
34522021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3453
3454 * f-lang.c (fortran_value_subarray): Call value_from_component.
3455
e904f56d
MF
34562021-01-07 Mike Frysinger <vapier@gentoo.org>
3457
3458 * remote-sim.c: Include memory-map.h.
3459 (gdbsim_target): Define memory_map override.
3460 (gdbsim_target::memory_map): Define.
3461
959d6a67
TT
34622021-01-07 Tom Tromey <tromey@adacore.com>
3463
3464 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3465
d4813f10
TT
34662021-01-07 Tom Tromey <tromey@adacore.com>
3467
3468 * ada-lang.c (add_component_interval): Start loop using vector's
3469 updated size.
3470
b49180ac
TT
34712021-01-06 Tom Tromey <tromey@adacore.com>
3472
3473 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3474 Do not cast result.
3475 * valarith.c (fixed_point_binop): Handle multiplication
3476 and division specially.
3477 * valops.c (value_to_gdb_mpq): New function.
3478 (value_cast_to_fixed_point): Use it.
3479
55195361
HD
34802021-01-05 Hannes Domani <ssbssa@yahoo.de>
3481
3482 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3483 Call wnoutrefresh instead of tui_win_info::refresh_window.
3484
1b6d4bb2
HD
34852021-01-05 Hannes Domani <ssbssa@yahoo.de>
3486
3487 * tui/tui-source.c (tui_source_window::show_line_number):
3488 Redraw second space after line number.
3489
b5ff370e
HD
34902021-01-05 Hannes Domani <ssbssa@yahoo.de>
3491
3492 PR tui/26927
3493 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3494 Fix source pad size in prefresh.
3495 (tui_source_window_base::show_source_content): Grow source pad
3496 if necessary.
3497
c68ea49f
MF
34982021-01-04 Mike Frysinger <vapier@gentoo.org>
3499
3500 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3501 (bfin_frame_align): Use align_down.
3502
e4ad960a
TV
35032021-01-04 Tom de Vries <tdevries@suse.de>
3504
3505 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3506 terminators that do not terminate anything.
3507
3ec3145c
SM
35082021-01-04 Simon Marchi <simon.marchi@efficios.com>
3509
3510 * debug.c (debug_print_depth): New.
3511 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3512 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3513 * infrun.c (start_step_over): Use
3514 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3515 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3516 INFRUN_SCOPED_DEBUG_START_END.
3517 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3518
e71daf80
SM
35192021-01-04 Simon Marchi <simon.marchi@efficios.com>
3520
3521 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3522
335709bc
SM
35232021-01-04 Simon Marchi <simon.marchi@efficios.com>
3524
3525 * utils.c (vfprintf_unfiltered): Print timestamp only when
3526 previous debug output ended with a newline.
3527
098caef4
LM
35282021-01-04 Luis Machado <luis.machado@linaro.org>
3529
3530 Update all users of trad_frame_saved_reg to use the new member
3531 functions.
3532
3533 Remote all struct keywords from declarations of trad_frame_saved_reg
3534 types, except on forward declarations.
3535
3536 * aarch64-tdep.c: Update.
3537 * alpha-mdebug-tdep.c: Update.
3538 * alpha-tdep.c: Update.
3539 * arc-tdep.c: Update.
3540 * arm-tdep.c: Update.
3541 * avr-tdep.c: Update.
3542 * cris-tdep.c: Update.
3543 * csky-tdep.c: Update.
3544 * frv-tdep.c: Update.
3545 * hppa-linux-tdep.c: Update.
3546 * hppa-tdep.c: Update.
3547 * hppa-tdep.h: Update.
3548 * lm32-tdep.c: Update.
3549 * m32r-linux-tdep.c: Update.
3550 * m32r-tdep.c: Update.
3551 * m68hc11-tdep.c: Update.
3552 * mips-tdep.c: Update.
3553 * moxie-tdep.c: Update.
3554 * riscv-tdep.c: Update.
3555 * rs6000-tdep.c: Update.
3556 * s390-linux-tdep.c: Update.
3557 * s390-tdep.c: Update.
3558 * score-tdep.c: Update.
3559 * sparc-netbsd-tdep.c: Update.
3560 * sparc-sol2-tdep.c: Update.
3561 * sparc64-fbsd-tdep.c: Update.
3562 * sparc64-netbsd-tdep.c: Update.
3563 * sparc64-obsd-tdep.c: Update.
3564 * sparc64-sol2-tdep.c: Update.
3565 * tilegx-tdep.c: Update.
3566 * v850-tdep.c: Update.
3567 * vax-tdep.c: Update.
3568
3569 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3570 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3571
3572 * trad-frame.c: Update.
3573 Remove TF_REG_* enum.
3574 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3575 a trivially-constructible struct.
3576 (trad_frame_reset_saved_regs): Adjust to use member function.
3577 (trad_frame_value_p): Likewise.
3578 (trad_frame_addr_p): Likewise.
3579 (trad_frame_realreg_p): Likewise.
3580 (trad_frame_value_bytes_p): Likewise.
3581 (trad_frame_set_value): Likewise.
3582 (trad_frame_set_realreg): Likewise.
3583 (trad_frame_set_addr): Likewise.
3584 (trad_frame_set_unknown): Likewise.
3585 (trad_frame_set_value_bytes): Likewise.
3586 (trad_frame_get_prev_register): Likewise.
3587 * trad-frame.h: Update.
3588 (trad_frame_saved_reg_kind): New enum.
3589 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3590 <m_kind, m_reg>: New member fields.
3591 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3592 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3593 <is_addr, is_unknown, is_value_bytes>: New member functions.
3594
9898e882
SM
35952021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3596
3597 * target-float.c: Fix typos.
3598
b66b4e65
HD
35992021-01-02 Hannes Domani <ssbssa@yahoo.de>
3600
3601 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3602
b5b5650a
JB
36032021-01-01 Joel Brobecker <brobecker@adacore.com>
3604
3605 * gdbarch.sh: Update copyright year range.
3606
3666a048
JB
36072021-01-01 Joel Brobecker <brobecker@adacore.com>
3608
3609 Update copyright year range in copyright header of all GDB files.
3610
ff7e39b6
JB
36112021-01-01 Joel Brobecker <brobecker@adacore.com>
3612
3613 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3614 to the list of directories to update.
3615
2b47c078
JB
36162021-01-01 Joel Brobecker <brobecker@adacore.com>
3617
3618 * top.c (print_gdb_version): Update copyright year.
3619
476923f1 36202021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 3621
476923f1 3622 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 3623
476923f1 3624For older changes see ChangeLog-2020.
c906108c
SS
3625\f
3626Local Variables:
3627mode: change-log
3628left-margin: 8
3629fill-column: 74
3630version-control: never
57da7796 3631coding: utf-8
c906108c 3632End:
This page took 2.720042 seconds and 4 git commands to generate.