]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7c290a04
TT
12021-03-14 Tom Tromey <tom@tromey.com>
2
3 * dwarf2/read.c (read_attribute_value): Use cu_header
4 consistently.
5
0280fdcc
TT
62021-03-14 Tom Tromey <tom@tromey.com>
7
8 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
9 (peek_die_abbrev): Use reader.abfd.
10
a9f172c6
TT
112021-03-14 Tom Tromey <tom@tromey.com>
12
13 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
14 m_header_read_in.
15
7c32eebb
TT
162021-03-13 Tom Tromey <tom@tromey.com>
17
18 * dwarf2/read.c (struct partial_die_info): Update.
19 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
20 (load_partial_dies, partial_die_info::partial_die_info): Update.
21 * dwarf2/abbrev.h (lookup_abbrev): Constify.
22
27012aba
TT
232021-03-13 Tom Tromey <tom@tromey.com>
24
25 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
26
fece451c
CB
272021-03-12 Christian Biesinger <cbiesinger@google.com>
28
29 PR threads/27239
30 * cp-support.c: Use scoped_segv_handler_restore.
31 * event-top.c (thread_local_segv_handler): Made static.
32 (scoped_segv_handler_restore::scoped_segv_handler_restore):
33 New function.
34 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
35 function.
36 * event-top.h (class scoped_segv_handler_restore): New class.
37 (thread_local_segv_handler): Removed.
38
7056f312
TT
392021-03-10 Tom Tromey <tromey@adacore.com>
40
41 * parser-defs.h (parser_state): Change completion to bool.
42 <parse_completion>: Likewise.
43 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
44 (ada_resolve_variable, ada_resolve_function): Update.
45 * ada-lang.c (ada_find_operator_symbol): Change
46 parse_completion to bool.
47 (ada_resolve_funcall, ada_resolve_variable)
48 (ada_resolve_function): Likewise.
49
ccdc02ed
TT
502021-03-09 Tom Tromey <tromey@adacore.com>
51
52 * eval.c (operation::evaluate_funcall): Use function formal
53 parameter types when evaluating.
54
fbb1aace
AB
552021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
56
57 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
58 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
59 and owner to m_owner.
60
611aa09d
FW
612021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
62
63 * f-exp.h (eval_op_f_loc): Declare.
64 (expr::fortran_loc_operation): New typedef.
65 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
66 UNOP_INTRINSIC.
67 (f77_keywords): Add LOC keyword.
68 * f-lang.c (eval_op_f_loc): New function.
69 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
70
eef32f59
AB
712021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
72
73 * f-exp.h (eval_op_f_array_shape): Declare.
74 (fortran_array_shape_operation): New type.
75 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
76 UNOP_INTRINSIC.
77 (f77_keywords): Add "shape" keyword.
78 * f-lang.c (fortran_array_shape): New function.
79 (eval_op_f_array_shape): New function.
80 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
81
7ba155b3
AB
822021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
83
84 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
85 of this function.
86 (expr::fortran_array_size_1arg): New type.
87 (expr::fortran_array_size_2arg): Likewise.
88 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
89 UNOP_OR_BINOP_INTRINSIC.
90 (f77_keywords): Add "size" keyword.
91 * f-lang.c (fortran_array_size): New function.
92 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
93 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
94
e14816a8
AB
952021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
96
97 * f-exp.h (eval_op_f_rank): Declare.
98 (expr::fortran_rank_operation): New typedef.
99 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
100 UNOP_INTRINSIC.
101 (f77_keywords): Add "rank" keyword.
102 * f-lang.c (eval_op_f_rank): New function.
103 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
104
3dd93bf8
TT
1052021-03-08 Tom Tromey <tom@tromey.com>
106
107 * printcmd.c (set_command): Remove null check.
108 * value.c (init_if_undefined_command): Remove null check.
109
9c79936b
TT
1102021-03-08 Tom Tromey <tom@tromey.com>
111
112 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
113 Update.
114 * p-exp.y (variable): Update.
115 * go-exp.y (variable): Update.
116 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
117 Remove overload for objfile.
118 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
119 parameter.
120 (check_objfile): Likewise.
121 (dump_for_expression): Likewise. Remove overload for objfile.
122 (class var_msym_value_operation): Use bound_minimal_symbol.
123 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
124 parameter.
125 (var_msym_value_operation::evaluate_for_address)
126 (var_msym_value_operation::evaluate_for_sizeof)
127 (var_msym_value_operation::evaluate_for_cast): Update.
128 * d-exp.y (PrimaryExpression): Update.
129 * c-exp.y (variable): Update.
130 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
131 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
132 Update.
133 * ada-exp.y (write_var_or_type): Update.
134
40d07d07
TT
1352021-03-08 Tom Tromey <tom@tromey.com>
136
137 * parser-defs.h (exp_uses_objfile): Return bool.
138 * parse.c (exp_uses_objfile): Return bool.
139
0b2b0b82
TT
1402021-03-08 Tom Tromey <tom@tromey.com>
141
142 * value.h (eval_skip_value): Don't declare.
143 * opencl-lang.c (eval_opencl_assign): Update.
144 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
145 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
146 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
147 * expression.h (enum noside) <EVAL_SKIP>: Remove.
148 * expop.h (typeof_operation::evaluate)
149 (decltype_operation::evaluate, unop_addr_operation::evaluate)
150 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
151 (cxx_cast_operation::evaluate): Update.
152 * eval.c (eval_skip_value): Remove.
153 (eval_op_scope, eval_op_var_entry_value)
154 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
155 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
156 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
157 (eval_op_binary, eval_op_subscript, eval_op_equal)
158 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
159 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
160 (eval_op_complement, eval_op_lognot, eval_op_ind)
161 (eval_op_memval, eval_op_preinc, eval_op_predec)
162 (eval_op_postinc, eval_op_postdec, eval_op_type)
163 (eval_binop_assign_modify, eval_op_objc_msgcall)
164 (eval_multi_subscript, logical_and_operation::evaluate)
165 (logical_or_operation::evaluate, array_operation::evaluate)
166 (operation::evaluate_for_cast)
167 (var_msym_value_operation::evaluate_for_cast)
168 (var_value_operation::evaluate_for_cast): Update.
169 * c-lang.c (c_string_operation::evaluate): Update.
170 * c-exp.h (objc_nsstring_operation::evaluate)
171 (objc_selector_operation::evaluate): Update.
172 * ada-lang.c (ada_assign_operation::evaluate)
173 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
174 (ada_atr_size): Update.
175
96db551d
TT
1762021-03-08 Tom Tromey <tom@tromey.com>
177
178 * eval.c: Merge "namespace" scopes.
179
ce284361
TT
1802021-03-08 Tom Tromey <tom@tromey.com>
181
182 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
183 <release>: Inline.
184 * parse.c (expr_builder::expr_builder, expr_builder::release):
185 Remove.
186
b9d06571
TT
1872021-03-08 Tom Tromey <tom@tromey.com>
188
189 * parse.c (expression::expression, expression::~expression):
190 Remove.
191 * expression.h (struct expression): Inline constructor. Remove
192 destructor.
193
79ab486e
TT
1942021-03-08 Tom Tromey <tom@tromey.com>
195
196 * std-operator.def (BINOP_END): Remove.
197 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
198 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
199 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
200 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
201 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
202 BINOP_END.
203
48fa6f23
TT
2042021-03-08 Tom Tromey <tom@tromey.com>
205
206 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
207
43f542e3
TT
2082021-03-08 Tom Tromey <tom@tromey.com>
209
210 * std-operator.def (OP_EXTENDED0): Remove.
211
5d9ba982
TT
2122021-03-08 Tom Tromey <tom@tromey.com>
213
214 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
215 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
216 Remove.
217
d357570d
TT
2182021-03-08 Tom Tromey <tom@tromey.com>
219
220 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
221 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
222
0922dc84
TT
2232021-03-08 Tom Tromey <tom@tromey.com>
224
225 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
226 * ada-lang.c (ada_binop_minmax): Update.
227 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
228 Use BINOP_MIN and BINOP_MAX.
229
1eaebe02
TT
2302021-03-08 Tom Tromey <tom@tromey.com>
231
232 * value.h (evaluate_subexp_with_coercion): Don't declare.
233 * parse.c (exp_descriptor_standard): Remove.
234 (expr_builder::expr_builder, expr_builder::release): Update.
235 (expression::expression): Remove size_t parameter.
236 (expression::~expression): Simplify.
237 (expression::resize): Remove.
238 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
239 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
240 (write_exp_elt_longcst, write_exp_elt_floatcst)
241 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
242 (write_exp_string_vector, write_exp_bitstring): Remove.
243 * p-lang.h (class pascal_language) <opcode_print_table,
244 op_print_tab>: Remove.
245 * p-lang.c (pascal_language::op_print_tab): Remove.
246 * opencl-lang.c (class opencl_language) <opcode_print_table>:
247 Remove.
248 * objc-lang.c (objc_op_print_tab): Remove.
249 (class objc_language) <opcode_print_table>: Remove.
250 * m2-lang.h (class m2_language) <opcode_print_table,
251 op_print_tab>: Remove.
252 * m2-lang.c (m2_language::op_print_tab): Remove.
253 * language.h (struct language_defn) <post_parser, expression_ops,
254 opcode_print_table>: Remove.
255 * language.c (language_defn::expression_ops)
256 (auto_or_unknown_language::opcode_print_table): Remove.
257 * go-lang.h (class go_language) <opcode_print_table,
258 op_print_tab>: Remove.
259 * go-lang.c (go_language::op_print_tab): Remove.
260 * f-lang.h (class f_language) <opcode_print_table>: Remove
261 <op_print_tab>: Remove.
262 * f-lang.c (f_language::op_print_tab): Remove.
263 * expression.h (union exp_element): Remove.
264 (struct expression): Remove size_t parameter from constructor.
265 <resize>: Remove.
266 <first_opcode>: Update.
267 <nelts, elts>: Remove.
268 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
269 (evaluate_subexp_standard, print_expression, op_string)
270 (dump_raw_expression): Don't declare.
271 * expprint.c (print_expression, print_subexp)
272 (print_subexp_funcall, print_subexp_standard, op_string)
273 (dump_raw_expression, dump_subexp, dump_subexp_body)
274 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
275 (dump_prefix_expression): Update.
276 * eval.c (evaluate_subexp): Remove.
277 (evaluate_expression, evaluate_type): Update.
278 (evaluate_subexpression_type): Remove.
279 (fetch_subexp_value): Remove "pc" parameter. Update.
280 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
281 (evaluate_subexp_standard, evaluate_subexp_for_address)
282 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
283 (evaluate_subexp_for_cast): Remove.
284 (parse_and_eval_type): Update.
285 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
286 * d-lang.c (d_op_print_tab): Remove.
287 (class d_language) <opcode_print_table>: Remove.
288 * c-lang.h (c_op_print_tab): Don't declare.
289 * c-lang.c (c_op_print_tab): Remove.
290 (class c_language, class cplus_language, class asm_language, class
291 minimal_language) <opcode_print_table>: Remove.
292 * breakpoint.c (update_watchpoint, watchpoint_check)
293 (watchpoint_exp_is_const, watch_command_1): Update.
294 * ax-gdb.h (union exp_element): Don't declare.
295 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
296 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
297 (gen_expr_binop_rest): Remove.
298 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
299 * ada-lang.c (ada_op_print_tab): Remove.
300 (class ada_language) <post_parser, opcode_print_table>: Remove.
301
f2a98603
TT
3022021-03-08 Tom Tromey <tom@tromey.com>
303
304 * go-lang.c (go_language::expression_ops): Don't declare.
305 * go-lang.h (class go_language) <expression_ops>: Remove.
306 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
307 Remove.
308 (class opencl_language) <expression_ops>: Remove.
309 * d-lang.c (class d_language) <expression_ops>: Remove.
310 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
311 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
312 (class c_language, class cplus_language, class asm_language)
313 (class minimal_language) <expression_ops>: Remove.
314
d3c54a1c
TT
3152021-03-08 Tom Tromey <tom@tromey.com>
316
317 * ada-lang.c (resolve_subexp, replace_operator_with_call)
318 (evaluate_subexp_type, assign_aggregate)
319 (aggregate_assign_positional, aggregate_assign_from_choices)
320 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
321 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
322 (ada_operator_check, ada_forward_operator_length)
323 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
324 Remove.
325 (post_parser): Update.
326 (class ada_language) <expresssion_ops>: Remove.
327
5871f0a3
TT
3282021-03-08 Tom Tromey <tom@tromey.com>
329
330 * m2-lang.h (class m2_language) <expresssion_ops,
331 exp_descriptor_modula2>: Remove.
332 * m2-lang.c (evaluate_subexp_modula2)
333 (m2_language::exp_descriptor_modula2): Remove.
334
a99be8c1
TT
3352021-03-08 Tom Tromey <tom@tromey.com>
336
337 * f-lang.h (class f_language) <expresssion_ops>: Remove.
338 <exp_descriptor_tab>: Remove.
339 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
340 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
341 (print_subexp_f, dump_subexp_body_f, operator_check_f)
342 (f_language::exp_descriptor_tab, fortran_prepare_argument):
343 Remove.
344
aa1da9ed
TT
3452021-03-08 Tom Tromey <tom@tromey.com>
346
347 * rust-lang.h (class rust_language) <expression_ops,
348 exp_descriptor_tab>: Remove.
349 * rust-lang.c (rust_evaluate_funcall): Remove.
350 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
351 EVAL_SKIP.
352 (rust_evaluate_subexp): Remove.
353 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
354 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
355 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
356
08a057e6
TT
3572021-03-08 Tom Tromey <tom@tromey.com>
358
359 * ada-exp.y: Create operations.
360 (empty_stoken): Remove.
361 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
362 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
363 (components): New global.
364 (push_component, choice_component, pop_component, pop_components):
365 New functions.
366 (associations): New global
367 (push_association, pop_association, pop_associations): New
368 functions.
369 (ada_parse): Update.
370 (write_var_from_sym, write_int): Create operations.
371 (write_exp_op_with_string): Remove.
372 (write_object_renaming, write_selectors, write_ambiguous_var)
373 (write_var_or_type, write_name_assoc): Create operations.
374 * ada-lang.h (ada_index_type): Declare.
375 * ada-lang.c (ada_index_type): No longer static.
376
d308ba78
TT
3772021-03-08 Tom Tromey <tom@tromey.com>
378
379 * f-exp.y: Create operations.
380 (f_language::parser): Update.
381
f1b8ceef
TT
3822021-03-08 Tom Tromey <tom@tromey.com>
383
384 * m2-exp.y: Create operations.
385 (m2_language::parser): Update.
386
3163898e
TT
3872021-03-08 Tom Tromey <tom@tromey.com>
388
389 * p-exp.y: Create operations.
390 (pascal_language::parser): Update.
391
9412fdcc
TT
3922021-03-08 Tom Tromey <tom@tromey.com>
393
394 * d-exp.y: Create operations.
395 (d_parse): Update.
396
bb4e0574
TT
3972021-03-08 Tom Tromey <tom@tromey.com>
398
399 * go-exp.y: Create operations.
400 (go_language::parser): Update.
401
d182f279
TT
4022021-03-08 Tom Tromey <tom@tromey.com>
403
404 * objc-lang.c (end_msglist): Create operations.
405 * c-exp.y: Change parser to create operations.
406 (write_destructor_name): Remove.
407 (c_parse): Update.
408
c1299a23
TT
4092021-03-08 Tom Tromey <tom@tromey.com>
410
411 * rust-exp.y: Create operations.
412 (rust_parser::convert_params_to_expression): Change return type.
413 (binop_maker_ftype): New typedef.
414 (maker_map): New global.
415 (rust_parser::convert_ast_to_expression): Change return type.
416 (rust_language::parser): Update.
417 (_initialize_rust_exp): Initialize maker_map.
418
4c5e7a93
TT
4192021-03-08 Tom Tromey <tom@tromey.com>
420
421 * stap-probe.c (binop_maker_ftype): New typedef.
422 (stap_maker_map): New global.
423 (stap_make_binop): New function.
424 (stap_parse_register_operand): Return operation_up.
425 (stap_parse_single_operand, stap_parse_argument_conditionally)
426 (stap_parse_argument_1): Likewise.
427 (stap_parse_argument): Create operations.
428 (stap_probe::parse_arguments): Update.
429 (_initialize_stap_probe): Initialize stap_maker_map.
430 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
431 type.
432 * i386-tdep.h (i386_stap_parse_special_token): Change return
433 type.
434 * i386-tdep.c (i386_stap_parse_special_token_triplet)
435 (i386_stap_parse_special_token_three_arg_disp)
436 (i386_stap_parse_special_token): Change return type.
437 * gdbarch.sh (stap_parse_special_token): Change return type.
438 * gdbarch.c: Rebuild.
439 * gdbarch.h: Rebuild.
440 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
441 type.
442 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
443 return type.
444
482ddd69
TT
4452021-03-08 Tom Tromey <tom@tromey.com>
446
447 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
448 * gdbarch.h: Rebuild.
449 * gdbarch.c: Rebuild.
450 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
451 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
452 return type.
453 (amd64_dtrace_parse_probe_argument): Update.
454
8227d9e2
TT
4552021-03-08 Tom Tromey <tom@tromey.com>
456
457 * parser-defs.h (struct parser_state) <push, push_new,
458 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
459 wrap2>: New methods.
460 <m_operations>: New member.
461 * parse.c (parser_state::push_c_string)
462 (parser_state::push_symbol, parser_state::push_dollar): New
463 methods.
464
4933522d
TT
4652021-03-08 Tom Tromey <tom@tromey.com>
466
467 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
468 New member.
469 (struct parser_state) <mark_struct_expression>: New method.
470 * parse.c (parser_state::mark_struct_expression): Update assert.
471 (parser_state::mark_struct_expression): New method.
472 (parser_state::mark_completion_tag): Update assert.
473 (parse_expression_for_completion): Handle expout_last_op.
474
413403fc
TT
4752021-03-08 Tom Tromey <tom@tromey.com>
476
477 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
478 now in superclass.
479 * value.h (fetch_subexp_value): Add "op" parameter.
480 * value.c (init_if_undefined_command): Update.
481 * tracepoint.c (validate_actionline, encode_actions_1): Update.
482 * stap-probe.c (stap_probe::compile_to_ax): Update.
483 * printcmd.c (set_command): Update.
484 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
485 Update.
486 * parser-defs.h (struct expr_builder) <set_operation>: New
487 method.
488 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
489 * expression.h (struct expression) <first_opcode>: Update.
490 <op>: New member.
491 * expprint.c (dump_raw_expression, dump_prefix_expression):
492 Update.
493 * expop.h (class var_value_operation) <get_symbol>: New method.
494 (class register_operation) <get_name>: New method.
495 (class equal_operation): No longer a typedef, now a subclass.
496 (class unop_memval_operation) <get_type>: New method.
497 (class assign_operation) <get_lhs>: New method.
498 (class unop_cast_operation) <get_type>: New method.
499 * eval.c (evaluate_expression, evaluate_type)
500 (evaluate_subexpression_type): Update.
501 (fetch_subexp_value): Add "op" parameter.
502 (parse_and_eval_type): Update.
503 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
504 * breakpoint.c (update_watchpoint, watchpoint_check)
505 (watchpoint_exp_is_const, watch_command_1): Update.
506 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
507 Update.
508
b0f9164c
TT
5092021-03-08 Tom Tromey <tom@tromey.com>
510
511 * ada-lang.c (ada_value_binop): Do not use op_string.
512
a88c4354
TT
5132021-03-08 Tom Tromey <tom@tromey.com>
514
515 * expprint.c (dump_for_expression): New overload.
516 * expop.h (check_objfile, dump_for_expression): Declare new
517 overloads.
518 * ada-lang.c (check_objfile): New overload.
519 (assign_component, ada_aggregate_component::uses_objfile)
520 (ada_aggregate_component::dump, ada_aggregate_component::assign)
521 (ada_aggregate_component::assign_aggregate)
522 (ada_positional_component::uses_objfile)
523 (ada_positional_component::dump, ada_positional_component::assign)
524 (ada_discrete_range_association::uses_objfile)
525 (ada_discrete_range_association::dump)
526 (ada_discrete_range_association::assign)
527 (ada_name_association::uses_objfile, ada_name_association::dump)
528 (ada_name_association::assign)
529 (ada_choices_component::uses_objfile, ada_choices_component::dump)
530 (ada_choices_component::assign)
531 (ada_others_component::uses_objfile, ada_others_component::dump)
532 (ada_others_component::assign, ada_assign_operation::evaluate):
533 New methods.
534 * ada-exp.h (ada_string_operation) <get_name>: New method.
535 (class ada_assign_operation): New.
536 (class ada_component): New.
537 (ada_component_up): New typedef.
538 (class ada_aggregate_operation, class ada_aggregate_component)
539 (class ada_positional_component, class ada_others_component)
540 (class ada_association): New.
541 (ada_association_up): New typedef.
542 (class ada_choices_component)
543 (class ada_discrete_range_association)
544 (class ada_name_association): New.
545
d8a4ed8a
TT
5462021-03-08 Tom Tromey <tom@tromey.com>
547
548 * ada-lang.c (ada_var_value_operation::resolve)
549 (ada_funcall_operation::resolve)
550 (ada_ternop_slice_operation::resolve): New methods.
551 * ada-exp.h (struct ada_resolvable): New.
552 (class ada_var_value_operation): Derive from ada_resolvable.
553 <get_block, resolve>: New methods.
554 (class ada_funcall_operation): Derive from ada_resolvable.
555 <resolve>: New method.
556 (class ada_ternop_slice_operation): Derive from ada_resolvable.
557 <resolve>: New method.
558
efe3af2f
TT
5592021-03-08 Tom Tromey <tom@tromey.com>
560
561 * ada-lang.c (ada_funcall_operation::evaluate): New method.
562 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
563 method.
564 (class ada_funcall_operation): New.
565
ebc06ad8
TT
5662021-03-08 Tom Tromey <tom@tromey.com>
567
568 * ada-lang.c (ada_structop_operation::evaluate): New method.
569 * ada-exp.h (class ada_structop_operation): New.
570
e8c33fa1
TT
5712021-03-08 Tom Tromey <tom@tromey.com>
572
573 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
574 * ada-exp.h (class ada_unop_ind_operation): New.
575
065ec826
TT
5762021-03-08 Tom Tromey <tom@tromey.com>
577
578 * ada-lang.c (ada_binop_exp): No longer static.
579 * ada-exp.h (ada_binop_exp_operation): New typedef.
580
9e99f48f
TT
5812021-03-08 Tom Tromey <tom@tromey.com>
582
583 * ada-lang.c (ada_val_atr): No longer static.
584 (ada_atr_val_operation::evaluate): New method.
585 * ada-exp.h (class ada_atr_val_operation): New.
586
7631cf6c
TT
5872021-03-08 Tom Tromey <tom@tromey.com>
588
589 * ada-lang.c (ada_pos_atr): No longer static.
590 * ada-exp.h (ada_pos_operation): New typedef.
591
7992accc
TT
5922021-03-08 Tom Tromey <tom@tromey.com>
593
594 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
595 parameters.
596 (ada_evaluate_subexp): Use it.
597
6ad3b8bf
TT
5982021-03-08 Tom Tromey <tom@tromey.com>
599
600 * ada-lang.c (ada_binop_minmax): No longer static.
601 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
602 New typedefs.
603
3f4a0053
TT
6042021-03-08 Tom Tromey <tom@tromey.com>
605
606 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
607 New method.
608 * ada-exp.h (class ada_var_msym_value_operation): New.
609
99a3b1e7
TT
6102021-03-08 Tom Tromey <tom@tromey.com>
611
612 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
613 (ada_var_value_operation::evaluate): New methods.
614 * ada-exp.h (class ada_var_value_operation): New.
615
60fa02ca
TT
6162021-03-08 Tom Tromey <tom@tromey.com>
617
618 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
619 * ada-exp.h (class ada_unop_atr_operation): New.
620
82c3886e
TT
6212021-03-08 Tom Tromey <tom@tromey.com>
622
623 * ada-lang.c (ada_binop_in_bounds): No longer static.
624 * ada-exp.h (class ada_binop_in_bounds_operation): New.
625
1b1ebfab
TT
6262021-03-08 Tom Tromey <tom@tromey.com>
627
628 * ada-lang.c (ada_ternop_slice): No longer static.
629 * ada-exp.h (class ada_ternop_slice_operation): New.
630
039e4b76
TT
6312021-03-08 Tom Tromey <tom@tromey.com>
632
633 * ada-exp.h (ada_bitwise_operation): New template class.
634 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
635 (ada_bitwise_xor_operation): New typedefs.
636
6e8fb7b7
TT
6372021-03-08 Tom Tromey <tom@tromey.com>
638
639 * ada-lang.c (ada_equal_binop): No longer static.
640 * ada-exp.h (class ada_binop_equal_operation): New.
641
d9e7db06
TT
6422021-03-08 Tom Tromey <tom@tromey.com>
643
644 * ada-lang.c (ada_mult_binop): No longer static.
645 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
646 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
647
73796c73
TT
6482021-03-08 Tom Tromey <tom@tromey.com>
649
650 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
651 * ada-exp.h (class ada_binop_addsub_operation): New.
652
cd9a3148
TT
6532021-03-08 Tom Tromey <tom@tromey.com>
654
655 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
656 (ada_resolve_variable): Declare.
657 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
658 (ada_resolve_variable): New functions.
659 (resolve_subexp): Update.
660
cf12b17f
TT
6612021-03-08 Tom Tromey <tom@tromey.com>
662
663 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
664 method.
665 * c-exp.h (class opencl_ternop_cond_operation): New.
666
944fd3b8
TT
6672021-03-08 Tom Tromey <tom@tromey.com>
668
669 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
670 method.
671 * c-exp.h (class opencl_logical_binop_operation): New.
672
33b79214
TT
6732021-03-08 Tom Tromey <tom@tromey.com>
674
675 * opencl-lang.c (opencl_structop_operation::evaluate): New
676 method.
677 * c-exp.h (class opencl_structop_operation): New.
678
2492ba36
TT
6792021-03-08 Tom Tromey <tom@tromey.com>
680
681 * opencl-lang.c (opencl_logical_not): No longer static. Change
682 parameters.
683 (evaluate_subexp_opencl): Update.
684 * c-exp.h (opencl_notequal_operation): New typedef.
685
a88c3c8d
TT
6862021-03-08 Tom Tromey <tom@tromey.com>
687
688 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
689 static. Change parameters.
690 (eval_opencl_assign): No longer static. Add "op" parameter.
691 (evaluate_subexp_opencl): Update.
692 * c-exp.h (opencl_binop_operation): New template class.
693 (opencl_assign_operation, opencl_equal_operation)
694 (opencl_notequal_operation, opencl_less_operation)
695 (opencl_gtr_operation, opencl_geq_operation)
696 (opencl_leq_operation): New typedefs.
697
e9677704
TT
6982021-03-08 Tom Tromey <tom@tromey.com>
699
700 * opencl-lang.c (opencl_value_cast): No longer static.
701 * c-exp.h (opencl_cast_type_operation): New typedef.
702
f403a4e4
TT
7032021-03-08 Tom Tromey <tom@tromey.com>
704
705 * f-exp.h (eval_op_f_allocated): Declare.
706 (fortran_allocated_operation): New typedef.
707 * f-lang.c (eval_op_f_allocated): No longer static.
708
eb4c9271
TT
7092021-03-08 Tom Tromey <tom@tromey.com>
710
711 * f-lang.c (eval_op_f_associated): New functions.
712 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
713 typedefs.
714
58a76c72
TT
7152021-03-08 Tom Tromey <tom@tromey.com>
716
717 * f-lang.c (fortran_bound_1arg::evaluate)
718 (fortran_bound_2arg::evaluate): New methods.
719 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
720 New.
721
2f98abe1
TT
7222021-03-08 Tom Tromey <tom@tromey.com>
723
724 * expop.h (class unop_addr_operation) <get_expression>: New
725 method.
726 * f-lang.c (fortran_undetermined::value_subarray)
727 (fortran_undetermined::evaluate): New methods.
728 (fortran_prepare_argument): New overload.
729 * f-exp.h (class fortran_range_operation)
730 (class fortran_undetermined): New classes.
731
638fd74a
TT
7322021-03-08 Tom Tromey <tom@tromey.com>
733
734 * rust-lang.c (rust_structop::evaluate_funcall): New method.
735 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
736 method.
737
a00b7254
TT
7382021-03-08 Tom Tromey <tom@tromey.com>
739
740 * expression.h (class operation) <evaluate_funcall>: New methods.
741 * expop.h (class scope_operation) <evaluate_funcall>: New method.
742 (class var_value_operation) <evaluate_funcall>: New method.
743 (class structop_base_operation) <evaluate_funcall>: New method.
744 (class var_msym_value_operation) <evaluate_funcall>: New method.
745 (class structop_member_base): New class.
746 (class structop_member_operation): Derive from
747 structop_member_base.
748 (class structop_mptr_operation): Derive from
749 structop_member_base.
750 (class funcall_operation): New class.
751 * eval.c (operation::evaluate_funcall)
752 (var_value_operation::evaluate_funcall)
753 (scope_operation::evaluate_funcall)
754 (structop_member_base::evaluate_funcall)
755 (structop_base_operation::evaluate_funcall): New methods.
756
1c02eb30
TT
7572021-03-08 Tom Tromey <tom@tromey.com>
758
759 * expop.h (class array_operation): New.
760 * eval.c (array_operation::evaluate_struct_tuple)
761 (array_operation::evaluate): New methods.
762
e4479080
TT
7632021-03-08 Tom Tromey <tom@tromey.com>
764
765 * expop.h (class adl_func_operation): New.
766 * eval.c (adl_func_operation::evaluate): New method.
767
95d49dfb
TT
7682021-03-08 Tom Tromey <tom@tromey.com>
769
770 * ada-lang.c (ada_unop_in_range): No longer static.
771 * ada-exp.h (class ada_unop_range_operation): New.
772
7c15d377
TT
7732021-03-08 Tom Tromey <tom@tromey.com>
774
775 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
776 No longer static.
777 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
778 (ada_atr_size_operation, ada_abs_operation): New typedefs.
779
5019124b
TT
7802021-03-08 Tom Tromey <tom@tromey.com>
781
782 * expop.h (class logical_and_operation)
783 (class logical_or_operation): New.
784 * eval.c (logical_and_operation::evaluate)
785 (logical_or_operation::evaluate): New methods.
786 * ax-gdb.c (logical_and_operation::do_generate_ax)
787 (logical_or_operation::do_generate_ax): New methods.
788
2bc9b40c
TT
7892021-03-08 Tom Tromey <tom@tromey.com>
790
791 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
792 static.
793 * m2-exp.h: New file.
794
5947d337
TT
7952021-03-08 Tom Tromey <tom@tromey.com>
796
797 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
798 * rust-exp.h (class rust_aggregate_operation): New.
799
e4407a20
TT
8002021-03-08 Tom Tromey <tom@tromey.com>
801
802 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
803 No longer static.
804 * rust-exp.h (class rust_struct_anon): New.
805 (class rust_structop): New.
806
9db6b6dd
TT
8072021-03-08 Tom Tromey <tom@tromey.com>
808
809 * rust-lang.c (rust_range): No longer static.
810 * rust-exp.h (class rust_range_operation): New.
811
6ce1ad67
TT
8122021-03-08 Tom Tromey <tom@tromey.com>
813
814 * rust-lang.c (rust_subscript): No longer static.
815 * rust-exp.h (class rust_subscript_operation): New.
816
11dd3dce
TT
8172021-03-08 Tom Tromey <tom@tromey.com>
818
819 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
820 parameter.
821 (rust_evaluate_subexp): Update.
822 * rust-exp.h (class rust_unop_ind_operation): New.
823
6fab4359
TT
8242021-03-08 Tom Tromey <tom@tromey.com>
825
826 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
827 longer static. Add "opcode" parameter.
828 (rust_evaluate_subexp): Update.
829 * rust-exp.h: New file.
830
9dcd3e29
TT
8312021-03-08 Tom Tromey <tom@tromey.com>
832
833 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
834 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
835 (eval_op_f_kind): No longer static. Add "opcode" parameter.
836 (evaluate_subexp_f): Update.
837 * f-exp.h: New file.
838
fc715eb2
TT
8392021-03-08 Tom Tromey <tom@tromey.com>
840
841 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
842 * ada-exp.h (class ada_ternop_range_operation): New.
843
cc6bd32e
TT
8442021-03-08 Tom Tromey <tom@tromey.com>
845
846 * ada-lang.c (ada_qual_operation::evaluate): New method.
847 * ada-exp.h (class ada_qual_operation): New.
848
42fecb61
TT
8492021-03-08 Tom Tromey <tom@tromey.com>
850
851 * ada-lang.c (ada_string_operation::evaluate): New method.
852 * ada-exp.h (class ada_string_operation): New.
853
03070ee9
TT
8542021-03-08 Tom Tromey <tom@tromey.com>
855
856 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
857 * ada-exp.h: New file.
858
821e72d7
TT
8592021-03-08 Tom Tromey <tom@tromey.com>
860
861 * expop.h (class multi_subscript_operation): New.
862 * eval.c (multi_subscript_operation::evaluate): New method.
863
085734dd
TT
8642021-03-08 Tom Tromey <tom@tromey.com>
865
866 * eval.c (objc_msgcall_operation::evaluate): New method.
867 * c-exp.h (class objc_msgcall_operation): New.
868
e82a5afc
TT
8692021-03-08 Tom Tromey <tom@tromey.com>
870
871 * expop.h (class var_value_operation): New.
872 * eval.c (var_value_operation::evaluate)
873 (var_value_operation::evaluate_for_address)
874 (var_value_operation::evaluate_with_coercion)
875 (var_value_operation::evaluate_for_sizeof)
876 (var_value_operation::evaluate_for_cast): New methods.
877 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
878
d9ad79d8
TT
8792021-03-08 Tom Tromey <tom@tromey.com>
880
881 * expop.h (cxx_cast_ftype): New typedef.
882 (cxx_cast_operation): New template.
883 (dynamic_cast_operation, reinterpret_cast_operation): New
884 typedefs.
885
292382f4
TT
8862021-03-08 Tom Tromey <tom@tromey.com>
887
888 * expop.h (class unop_cast_type_operation): New.
889 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
890 method.
891
165a813a
TT
8922021-03-08 Tom Tromey <tom@tromey.com>
893
894 * expop.h (class unop_cast_operation): New.
895 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
896
e5946e16
TT
8972021-03-08 Tom Tromey <tom@tromey.com>
898
899 * expop.h (class assign_modify_operation): New.
900 * eval.c (eval_binop_assign_modify): No longer static.
901 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
902
40786782
TT
9032021-03-08 Tom Tromey <tom@tromey.com>
904
905 * expop.h (class assign_operation): New.
906 * ax-gdb.c (assign_operation::do_generate_ax): New method.
907
44b675c8
TT
9082021-03-08 Tom Tromey <tom@tromey.com>
909
910 * expop.h (class type_instance_operation): New.
911 * eval.c (type_instance_operation::evaluate): New method.
912
f6b42326
TT
9132021-03-08 Tom Tromey <tom@tromey.com>
914
915 * expop.h (class op_this_operation): New.
916 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
917
cbc18219
TT
9182021-03-08 Tom Tromey <tom@tromey.com>
919
920 * expop.h (class unop_memval_operation)
921 (class unop_memval_type_operation): New.
922 * eval.c (eval_op_memval): No longer static.
923 (unop_memval_operation::evaluate_for_address)
924 (unop_memval_type_operation::evaluate_for_address)
925 (unop_memval_operation::evaluate_for_sizeof)
926 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
927 * ax-gdb.c (unop_memval_operation::do_generate_ax)
928 (unop_memval_type_operation::do_generate_ax): New methods.
929
ae4bb61e
TT
9302021-03-08 Tom Tromey <tom@tromey.com>
931
932 * expop.h (class unop_alignof_operation): New.
933 * eval.c (eval_op_alignof): No longer static.
934
85d23bda
TT
9352021-03-08 Tom Tromey <tom@tromey.com>
936
937 * expop.h (class unop_sizeof_operation): New.
938 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
939
14aff815
TT
9402021-03-08 Tom Tromey <tom@tromey.com>
941
942 * expop.h (class unop_addr_operation): New.
943 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
944
929f3aa7
TT
9452021-03-08 Tom Tromey <tom@tromey.com>
946
947 * expop.h (class typeid_operation): New.
948
0af8829e
TT
9492021-03-08 Tom Tromey <tom@tromey.com>
950
951 * expop.h (class decltype_operation): New.
952
4efc574c
TT
9532021-03-08 Tom Tromey <tom@tromey.com>
954
955 * expop.h (class typeof_operation): New.
956
5b5f5140
TT
9572021-03-08 Tom Tromey <tom@tromey.com>
958
959 * expop.h (class type_operation): New.
960 * eval.c (eval_op_type): No longer static.
961
876469ff
TT
9622021-03-08 Tom Tromey <tom@tromey.com>
963
964 * expop.h (class unop_ind_base_operation)
965 (class unop_ind_operation): New.
966 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
967 (unop_ind_base_operation::evaluate_for_address)
968 (unop_ind_base_operation::evaluate_for_sizeof): New method.
969 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
970
6d89e296
TT
9712021-03-08 Tom Tromey <tom@tromey.com>
972
973 * expop.h (unop_incr_operation): New template.
974 (preinc_operation, predec_operation, postinc_operation)
975 (postdec_operation): New typedefs.
976 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
977 (eval_op_postdec): No longer static.
978
9307d17b
TT
9792021-03-08 Tom Tromey <tom@tromey.com>
980
981 * expop.h (unary_ftype): New typedef.
982 (unop_operation, usual_ax_binop_operation): New templates.
983 (unary_plus_operation, unary_neg_operation)
984 (unary_complement_operation, unary_logical_not_operation): New
985 typedefs.
986 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
987 (eval_op_lognot): No longer static.
988 * ax-gdb.c (gen_expr_unop): New function.
989
ae64ba58
TT
9902021-03-08 Tom Tromey <tom@tromey.com>
991
992 * ax-gdb.c (comma_operation::do_generate_ax): New method.
993
d4eff4c1
TT
9942021-03-08 Tom Tromey <tom@tromey.com>
995
996 * expop.h (class repeat_operation): New.
997 * eval.c (eval_op_repeat): No longer static. Remove "op"
998 parameter.
999 (evaluate_subexp_standard): Update.
1000 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1001
46916f2b
TT
10022021-03-08 Tom Tromey <tom@tromey.com>
1003
1004 * expop.h (class comparison_operation): New.
1005 (equal_operation, notequal_operation, less_operation)
1006 (gtr_operation, geq_operation, leq_operation): New typedefs.
1007 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1008 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1009
224d6424
TT
10102021-03-08 Tom Tromey <tom@tromey.com>
1011
1012 * expop.h (class subscript_operation): New.
1013 * eval.c (eval_op_subscript): No longer static.
1014
373907ff
TT
10152021-03-08 Tom Tromey <tom@tromey.com>
1016
1017 * expop.h (class binop_operation, class usual_ax_binop_operation):
1018 New.
1019 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1020 (div_operation, rem_operation, lsh_operation, rsh_operation)
1021 (bitwise_and_operation, bitwise_ior_operation)
1022 (bitwise_xor_operation): New typedefs.
1023 * eval.c (eval_op_binary): No longer static.
1024
5133d78b
TT
10252021-03-08 Tom Tromey <tom@tromey.com>
1026
1027 * expop.h (class sub_operation): New.
1028 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1029 (evaluate_subexp_standard): Update.
1030
a94323b6
TT
10312021-03-08 Tom Tromey <tom@tromey.com>
1032
1033 * expop.h (class add_operation): New.
1034 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1035 (evaluate_subexp_standard): Update.
1036
e51e26a0
TT
10372021-03-08 Tom Tromey <tom@tromey.com>
1038
1039 * expop.h (class concat_operation): New.
1040 * eval.c (eval_op_concat): No longer static. Remove "op"
1041 parameter.
1042 (evaluate_subexp_standard): Update.
1043
07f724a8
TT
10442021-03-08 Tom Tromey <tom@tromey.com>
1045
1046 * expop.h (class structop_member_operation)
1047 (class structop_mptr_operation): New.
1048 * eval.c (eval_op_member): No longer static.
1049
ab0609be
TT
10502021-03-08 Tom Tromey <tom@tromey.com>
1051
1052 * expop.h (class structop_ptr_operation): New.
1053 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1054 parameter.
1055
808b22cf
TT
10562021-03-08 Tom Tromey <tom@tromey.com>
1057
1058 * expop.h (class structop_base_operation)
1059 (class structop_operation): New.
1060 * eval.c (eval_op_structop_struct): No longer static.
1061
8cfd3e95
TT
10622021-03-08 Tom Tromey <tom@tromey.com>
1063
1064 * expop.h (class complex_operation): New.
1065
09db3700
TT
10662021-03-08 Tom Tromey <tom@tromey.com>
1067
1068 * eval.c (eval_op_objc_selector): No longer static.
1069 * c-exp.h (class objc_selector_operation): New.
1070
06dc61b9
TT
10712021-03-08 Tom Tromey <tom@tromey.com>
1072
1073 * eval.c: Include c-exp.h.
1074 * c-exp.h (class objc_nsstring_operation): New.
1075
72d0a711
TT
10762021-03-08 Tom Tromey <tom@tromey.com>
1077
1078 * c-lang.c (c_string_operation::evaluate): New method.
1079 * c-exp.h: New file.
1080
9186293f
TT
10812021-03-08 Tom Tromey <tom@tromey.com>
1082
1083 * expop.h (class ternop_cond_operation): New.
1084 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1085
1594e0bb
TT
10862021-03-08 Tom Tromey <tom@tromey.com>
1087
1088 * expop.h (class ternop_slice_operation): New.
1089 * eval.c (eval_op_ternop): No longer static.
1090
b50db09f
TT
10912021-03-08 Tom Tromey <tom@tromey.com>
1092
1093 * expop.h (class string_operation): New.
1094 * eval.c (eval_op_string): No longer static.
1095
e6e01e16
TT
10962021-03-08 Tom Tromey <tom@tromey.com>
1097
1098 * expop.h (class internalvar_operation): New.
1099 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1100
e6985c5e
TT
11012021-03-08 Tom Tromey <tom@tromey.com>
1102
1103 * expop.h (class bool_operation): New.
1104
55bdbff8
TT
11052021-03-08 Tom Tromey <tom@tromey.com>
1106
1107 * expop.h (class register_operation): New.
1108 * eval.c (eval_op_register): No longer static.
1109 * ax-gdb.c (register_operation::do_generate_ax): New method.
1110
247d935b
TT
11112021-03-08 Tom Tromey <tom@tromey.com>
1112
1113 * expop.h (class last_operation): New.
1114
17679395
TT
11152021-03-08 Tom Tromey <tom@tromey.com>
1116
1117 * expop.h (class func_static_var_operation): New.
1118 * eval.c (eval_op_func_static_var): No longer static.
1119
b5cc3923
TT
11202021-03-08 Tom Tromey <tom@tromey.com>
1121
1122 * expop.h (class var_entry_value_operation): New.
1123 * eval.c (eval_op_var_entry_value): No longer static.
1124
0c8effa3
TT
11252021-03-08 Tom Tromey <tom@tromey.com>
1126
1127 * expression.h (class operation) <set_outermost>: New method.
1128 * expop.h (class var_msym_value_operation): New.
1129 * eval.c (eval_op_var_msym_value): No longer static.
1130 (var_msym_value_operation::evaluate_for_address)
1131 (var_msym_value_operation::evaluate_for_sizeof)
1132 (var_msym_value_operation::evaluate_for_cast): New methods.
1133 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1134 method.
1135
d336c29e
TT
11362021-03-08 Tom Tromey <tom@tromey.com>
1137
1138 * expop.h (class long_const_operation): New.
1139 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1140
d5ab122c
TT
11412021-03-08 Tom Tromey <tom@tromey.com>
1142
1143 * expop.h (class scope_operation): New.
1144 * eval.c (eval_op_scope): No longer static.
1145 (scope_operation::evaluate_for_address): New method.
1146 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1147
cae26a0c
TT
11482021-03-08 Tom Tromey <tom@tromey.com>
1149
1150 * expprint.c (float_const_operation::dump): New method.
1151 * expop.h (float_data): New typedef.
1152 (class float_const_operation): New.
1153
75f9892d
TT
11542021-03-08 Tom Tromey <tom@tromey.com>
1155
1156 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1157 * ax-gdb.c (gen_expr_binop): New function.
1158 (gen_expr_structop): Likewise.
1159
de401988
TT
11602021-03-08 Tom Tromey <tom@tromey.com>
1161
1162 * expprint.c (expr::dump_for_expression): New functions.
1163 * expop.h (dump_for_expression): New overloads.
1164 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1165 Update.
1166
e2803273
TT
11672021-03-08 Tom Tromey <tom@tromey.com>
1168
1169 * expression.h (expr::operation): New class.
1170 (expr::make_operation): New function.
1171 (expr::operation_up): New typedef.
1172 * expop.h: New file.
1173 * eval.c (operation::evaluate_for_cast)
1174 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1175 New methods.
1176 * ax-gdb.c (operation::generate_ax): New method.
1177
e18c58f2
TT
11782021-03-08 Tom Tromey <tom@tromey.com>
1179
1180 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1181 (gen_expr_binop_rest): New overload.
1182
c0d7ed8c
TT
11832021-03-08 Tom Tromey <tom@tromey.com>
1184
1185 * eval.c (eval_multi_subscript): New function.
1186 (evaluate_subexp_standard): Use it.
1187
dd5fd283
TT
11882021-03-08 Tom Tromey <tom@tromey.com>
1189
1190 * ada-lang.c (ada_binop_exp): New function.
1191 (ada_evaluate_subexp): Use it.
1192
3848abd6
TT
11932021-03-08 Tom Tromey <tom@tromey.com>
1194
1195 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1196 parameters.
1197 (ada_evaluate_subexp): Use it.
1198
38dc70cf
TT
11992021-03-08 Tom Tromey <tom@tromey.com>
1200
1201 * ada-lang.c (ada_binop_minmax): New function.
1202 (ada_evaluate_subexp): Use it.
1203
b84564fc
TT
12042021-03-08 Tom Tromey <tom@tromey.com>
1205
1206 * ada-lang.c (ada_unop_atr): New function.
1207 (ada_evaluate_subexp): Use it.
1208
b467efaa
TT
12092021-03-08 Tom Tromey <tom@tromey.com>
1210
1211 * ada-lang.c (ada_binop_in_bounds): New function.
1212 (ada_evaluate_subexp): Use it.
1213
5ce19db8
TT
12142021-03-08 Tom Tromey <tom@tromey.com>
1215
1216 * ada-lang.c (ada_ternop_slice): New function.
1217 (ada_evaluate_subexp): Use it.
1218
214b13ac
TT
12192021-03-08 Tom Tromey <tom@tromey.com>
1220
1221 * ada-lang.c (ada_equal_binop): New function.
1222 (ada_evaluate_subexp): Use it.
1223
faa1dfd7
TT
12242021-03-08 Tom Tromey <tom@tromey.com>
1225
1226 * ada-lang.c (ada_mult_binop): New function.
1227 (ada_evaluate_subexp): Use it.
1228
d05e24e6
TT
12292021-03-08 Tom Tromey <tom@tromey.com>
1230
1231 * ada-lang.c (ada_abs): New function.
1232 (ada_evaluate_subexp): Use it.
1233
68c75735
TT
12342021-03-08 Tom Tromey <tom@tromey.com>
1235
1236 * ada-lang.c (ada_atr_size): New function.
1237 (ada_evaluate_subexp): Use it.
1238
020dbabe
TT
12392021-03-08 Tom Tromey <tom@tromey.com>
1240
1241 * ada-lang.c (ada_atr_tag): New function.
1242 (ada_evaluate_subexp): Use it.
1243
7efc87ff
TT
12442021-03-08 Tom Tromey <tom@tromey.com>
1245
1246 * ada-lang.c (ada_unop_in_range): New function.
1247 (ada_evaluate_subexp): Use it.
1248
82390ab8
TT
12492021-03-08 Tom Tromey <tom@tromey.com>
1250
1251 * ada-lang.c (ada_unop_neg): New function.
1252 (ada_evaluate_subexp): Use it.
1253
62d4bd94
TT
12542021-03-08 Tom Tromey <tom@tromey.com>
1255
1256 * ada-lang.c (eval_ternop_in_range): New function.
1257 (ada_evaluate_subexp): Use it.
1258
3634f669
TT
12592021-03-08 Tom Tromey <tom@tromey.com>
1260
1261 * opencl-lang.c (eval_opencl_assign): New function.
1262 (evaluate_subexp_opencl): Use it.
1263
5e80600e
TT
12642021-03-08 Tom Tromey <tom@tromey.com>
1265
1266 * eval.c (eval_op_objc_msgcall): New function.
1267 (evaluate_subexp_standard): Use it.
1268
fb5ba2ab
TT
12692021-03-08 Tom Tromey <tom@tromey.com>
1270
1271 * eval.c (eval_binop_assign_modify): New function.
1272 (evaluate_subexp_standard): Use it.
1273
a49881f7
TT
12742021-03-08 Tom Tromey <tom@tromey.com>
1275
1276 * m2-lang.c (eval_op_m2_subscript): New function.
1277 (evaluate_subexp_modula2): Use it.
1278
41bdced5
TT
12792021-03-08 Tom Tromey <tom@tromey.com>
1280
1281 * m2-lang.c (eval_op_m2_high): New function.
1282 (evaluate_subexp_modula2): Use it.
1283
13ea014a
TT
12842021-03-08 Tom Tromey <tom@tromey.com>
1285
1286 * eval.c (evaluate_subexp_for_address_base): New function.
1287 (evaluate_subexp_for_address): Use it.
1288 (evaluate_subexp_for_sizeof_base): New function.
1289 (evaluate_subexp_for_sizeof): Use it.
1290
1fa41fc7
TT
12912021-03-08 Tom Tromey <tom@tromey.com>
1292
1293 * rust-lang.c (eval_op_rust_structop): New function.
1294 (rust_evaluate_subexp): Use it.
1295
575cae23
TT
12962021-03-08 Tom Tromey <tom@tromey.com>
1297
1298 * rust-lang.c (eval_op_rust_struct_anon): New function.
1299 (rust_evaluate_subexp): Use it.
1300
05104233
TT
13012021-03-08 Tom Tromey <tom@tromey.com>
1302
1303 * rust-lang.c (eval_op_rust_array): New function.
1304 (rust_evaluate_subexp): Use it.
1305
6fa9831f
TT
13062021-03-08 Tom Tromey <tom@tromey.com>
1307
1308 * rust-lang.c (eval_op_rust_complement): New function.
1309 (rust_evaluate_subexp): Use it.
1310
d123f9e4
TT
13112021-03-08 Tom Tromey <tom@tromey.com>
1312
1313 * rust-lang.c (eval_op_rust_ind): New function.
1314 (rust_evaluate_subexp): Use it.
1315
984af2cb
TT
13162021-03-08 Tom Tromey <tom@tromey.com>
1317
1318 * rust-lang.c (rust_subscript): Change parameters.
1319 (rust_evaluate_subexp): Update.
1320
d148f803
TT
13212021-03-08 Tom Tromey <tom@tromey.com>
1322
1323 * rust-lang.c (rust_range): Change parameters.
1324 (rust_evaluate_subexp): Update.
1325
9cbd1c20
TT
13262021-03-08 Tom Tromey <tom@tromey.com>
1327
1328 * f-lang.c (eval_op_f_allocated): New function.
1329 (evaluate_subexp_f): Use it.
1330
3c18c49c
TT
13312021-03-08 Tom Tromey <tom@tromey.com>
1332
1333 * f-lang.c (fortran_require_array): New function.
1334 (evaluate_subexp_f): Use it.
1335
216f6fcb
TT
13362021-03-08 Tom Tromey <tom@tromey.com>
1337
1338 * f-lang.c (eval_op_f_kind): New function.
1339 (evaluate_subexp_f): Use it.
1340
00f2db6f
TT
13412021-03-08 Tom Tromey <tom@tromey.com>
1342
1343 * f-lang.c (eval_op_f_cmplx): New function.
1344 (evaluate_subexp_f): Use it.
1345
93b2b5fa
TT
13462021-03-08 Tom Tromey <tom@tromey.com>
1347
1348 * f-lang.c (eval_op_f_modulo): New function.
1349 (evaluate_subexp_f): Use it.
1350
9f1a1f3c
TT
13512021-03-08 Tom Tromey <tom@tromey.com>
1352
1353 * f-lang.c (eval_op_f_floor): New function.
1354 (evaluate_subexp_f): Use it.
1355
3dc41f3c
TT
13562021-03-08 Tom Tromey <tom@tromey.com>
1357
1358 * f-lang.c (eval_op_f_ceil): New function.
1359 (evaluate_subexp_f): Use it.
1360
e08109f2
TT
13612021-03-08 Tom Tromey <tom@tromey.com>
1362
1363 * f-lang.c (eval_op_f_mod): New function.
1364 (evaluate_subexp_f): Use it.
1365
cc05c68e
TT
13662021-03-08 Tom Tromey <tom@tromey.com>
1367
1368 * f-lang.c (eval_op_f_abs): New function.
1369 (evaluate_subexp_f): Use it.
1370
aec95807
TT
13712021-03-08 Tom Tromey <tom@tromey.com>
1372
1373 * eval.c (eval_op_type): New function.
1374 (evaluate_subexp_standard): Use it.
1375
a220ead5
TT
13762021-03-08 Tom Tromey <tom@tromey.com>
1377
1378 * eval.c (eval_op_postdec): New function.
1379 (evaluate_subexp_standard): Use it.
1380
abffe116
TT
13812021-03-08 Tom Tromey <tom@tromey.com>
1382
1383 * eval.c (eval_op_postinc): New function.
1384 (evaluate_subexp_standard): Use it.
1385
9e1361b7
TT
13862021-03-08 Tom Tromey <tom@tromey.com>
1387
1388 * eval.c (eval_op_predec): New file.
1389 (evaluate_subexp_standard): Use it.
1390
00f50884
TT
13912021-03-08 Tom Tromey <tom@tromey.com>
1392
1393 * eval.c (eval_op_preinc): New function.
1394 (evaluate_subexp_standard): Use it.
1395
3aef2a07
TT
13962021-03-08 Tom Tromey <tom@tromey.com>
1397
1398 * eval.c (eval_op_memval): New function.
1399 (evaluate_subexp_standard): Use it.
1400
acee9468
TT
14012021-03-08 Tom Tromey <tom@tromey.com>
1402
1403 * eval.c (eval_op_alignof): New function.
1404 (evaluate_subexp_standard): Use it.
1405
786f70ee
TT
14062021-03-08 Tom Tromey <tom@tromey.com>
1407
1408 * eval.c (eval_op_ind): New function.
1409 (evaluate_subexp_standard): Use it.
1410
24338fb9
TT
14112021-03-08 Tom Tromey <tom@tromey.com>
1412
1413 * eval.c (eval_op_lognot): New function.
1414 (evaluate_subexp_standard): Use it.
1415
1f09ec81
TT
14162021-03-08 Tom Tromey <tom@tromey.com>
1417
1418 * eval.c (eval_op_complement): New function.
1419 (evaluate_subexp_standard): Use it.
1420
606d105f
TT
14212021-03-08 Tom Tromey <tom@tromey.com>
1422
1423 * eval.c (eval_op_neg): New function.
1424 (evaluate_subexp_standard): Use it.
1425
39f288be
TT
14262021-03-08 Tom Tromey <tom@tromey.com>
1427
1428 * eval.c (eval_op_plus): New function.
1429 (evaluate_subexp_standard): Use it.
1430
eed70b1c
TT
14312021-03-08 Tom Tromey <tom@tromey.com>
1432
1433 * eval.c (eval_op_repeat): New function.
1434 (evaluate_subexp_standard): Use it.
1435
60cdd487
TT
14362021-03-08 Tom Tromey <tom@tromey.com>
1437
1438 * eval.c (eval_op_leq): New function.
1439 (evaluate_subexp_standard): Use it.
1440
96e3efd9
TT
14412021-03-08 Tom Tromey <tom@tromey.com>
1442
1443 * eval.c (eval_op_geq): New function.
1444 (evaluate_subexp_standard): Use it.
1445
1f78d732
TT
14462021-03-08 Tom Tromey <tom@tromey.com>
1447
1448 * eval.c (eval_op_gtr): New function.
1449 (evaluate_subexp_standard): Use it.
1450
6cad1349
TT
14512021-03-08 Tom Tromey <tom@tromey.com>
1452
1453 * eval.c (eval_op_less): New function.
1454 (evaluate_subexp_standard): Use it.
1455
1fcb3559
TT
14562021-03-08 Tom Tromey <tom@tromey.com>
1457
1458 * eval.c (eval_op_notequal): New function.
1459 (evaluate_subexp_standard): Use it.
1460
0cc96de8
TT
14612021-03-08 Tom Tromey <tom@tromey.com>
1462
1463 * eval.c (eval_op_equal): New function.
1464 (evaluate_subexp_standard): Use it.
1465
288d26bc
TT
14662021-03-08 Tom Tromey <tom@tromey.com>
1467
1468 * eval.c (eval_op_subscript): New function.
1469 (evaluate_subexp_standard): Use it.
1470
7cdcdd02
TT
14712021-03-08 Tom Tromey <tom@tromey.com>
1472
1473 * eval.c (eval_op_binary): New function.
1474 (evaluate_subexp_standard): Use it.
1475
d9790e22
TT
14762021-03-08 Tom Tromey <tom@tromey.com>
1477
1478 * eval.c (eval_op_sub): New function.
1479 (evaluate_subexp_standard): Use it.
1480
aedaf9ac
TT
14812021-03-08 Tom Tromey <tom@tromey.com>
1482
1483 * eval.c (eval_op_add): New function.
1484 (evaluate_subexp_standard): Use it.
1485
b7a96ed2
TT
14862021-03-08 Tom Tromey <tom@tromey.com>
1487
1488 * eval.c (eval_op_member): New function.
1489 (evaluate_subexp_standard): Use it.
1490
fb461aa3
TT
14912021-03-08 Tom Tromey <tom@tromey.com>
1492
1493 * eval.c (eval_op_structop_ptr): New function.
1494 (evaluate_subexp_standard): Use it.
1495
3e96c4fc
TT
14962021-03-08 Tom Tromey <tom@tromey.com>
1497
1498 * eval.c (eval_op_structop_struct): New function.
1499 (evaluate_subexp_standard): Use it.
1500
f960a617
TT
15012021-03-08 Tom Tromey <tom@tromey.com>
1502
1503 * eval.c (eval_op_ternop): New function.
1504 (evaluate_subexp_standard): Use it.
1505
5c2f201e
TT
15062021-03-08 Tom Tromey <tom@tromey.com>
1507
1508 * eval.c (eval_op_concat): New function.
1509 (evaluate_subexp_standard): Use it.
1510
f871bae1
TT
15112021-03-08 Tom Tromey <tom@tromey.com>
1512
1513 * eval.c (eval_op_objc_selector): New function.
1514 (evaluate_subexp_standard): Use it.
1515
14a1c64a
TT
15162021-03-08 Tom Tromey <tom@tromey.com>
1517
1518 * eval.c (eval_op_string): New function.
1519 (evaluate_subexp_standard): Use it.
1520
ffff730b
TT
15212021-03-08 Tom Tromey <tom@tromey.com>
1522
1523 * eval.c (eval_op_register): New function.
1524 (evaluate_subexp_standard): Use it.
1525
9b1d8af6
TT
15262021-03-08 Tom Tromey <tom@tromey.com>
1527
1528 * eval.c (eval_op_func_static_var): New function.
1529 (evaluate_subexp_standard): Use it.
1530
c0df9289
TT
15312021-03-08 Tom Tromey <tom@tromey.com>
1532
1533 * eval.c (eval_op_var_msym_value): New function.
1534 (evaluate_subexp_standard): Use it.
1535
50b98adc
TT
15362021-03-08 Tom Tromey <tom@tromey.com>
1537
1538 * eval.c (eval_op_var_entry_value): New function.
1539 (evaluate_subexp_standard): Use it.
1540
ea2d29f7
TT
15412021-03-08 Tom Tromey <tom@tromey.com>
1542
1543 * eval.c (eval_op_scope): New function.
1544 (evaluate_subexp_standard): Use it.
1545
01573d73
TT
15462021-03-06 Chernov Sergey <klen_s@mail.ru>
1547
1548 PR gdb/27528:
1549 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1550
9938d15a
TT
15512021-03-06 Tom Tromey <tom@tromey.com>
1552
1553 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1554 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1555 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1556 (locate_dwz_sections, dwz_search_other_debugdirs)
1557 (dwarf2_get_dwz_file): Move to dwz.c.
1558 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1559 read.h.
1560 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1561 (dwarf2_get_dwz_file): Move from read.c.
1562
18035655
TT
15632021-03-06 Tom Tromey <tom@tromey.com>
1564
1565 * debuginfod-support.h: Include scoped_fd.h.
1566
a7308ce0
TT
15672021-03-06 Tom Tromey <tom@tromey.com>
1568
1569 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1570 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1571 (get_abbrev_section_for_cu, read_attribute_value)
1572 (get_debug_line_section): Update.
1573 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1574
fbedd546
TT
15752021-03-06 Tom Tromey <tom@tromey.com>
1576
1577 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1578 method.
1579 * dwarf2/read.c (section_is_p): Remove.
1580 (dwarf2_per_bfd::locate_sections)
1581 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1582 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1583 (dwarf2_locate_common_dwp_sections)
1584 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1585 Update.
1586
c2a62a3d
TT
15872021-03-06 Tom Tromey <tom@tromey.com>
1588
1589 * xcoffread.c: Include sect-names.h.
1590 * symfile.h (struct dwarf2_section_names, struct
1591 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1592 * dwarf2/sect-names.h: New file, from symfile.h.
1593 * dwarf2/read.c: Include sect-names.h.
1594
4444f407
TT
15952021-03-06 Tom Tromey <tom@tromey.com>
1596
1597 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1598 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1599 (abbrev_table::read): Update.
1600 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1601 (struct abbrev_info): Reformat.
1602 <attrs>: Now an array.
1603 (struct abbrev_table) <alloc_abbrev>: Remove.
1604
dd99cf0c
WP
16052021-03-06 Weimin Pan <weimin.pan@oracle.com>
1606
1607 * ctfread.c (ctf_psymtab_add_enums): New function.
1608 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1609
844be3f2
WP
16102021-03-06 Weimin Pan <weimin.pan@oracle.com>
1611
1612 * ctfread.c (read_func_kind_type): Set up function arguments.
1613
b2668f28
AB
16142021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1615 Andrew Burgess <andrew.burgess@embecosm.com>
1616
1617 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1618 includes.
1619 (riscv_csrset): New static global.
1620 (riscv_update_csrmap): New function.
1621 (riscv_iterate_over_regset_sections): Process CSRs.
1622
d782d24b
AB
16232021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1624
1625 * riscv-tdep.c (riscv_feature_name_csr): Define.
1626 (riscv_feature_name_cpu): Define.
1627 (riscv_feature_name_fpu): Define.
1628 (riscv_feature_name_virtual): Define.
1629 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1630 (riscv_freg_feature): Use riscv_feature_name_fpu.
1631 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1632 (riscv_csr_feature): Use riscv_feature_name_csr.
1633 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1634
fb8f3fc0
AB
16352021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1636 Craig Blackmore <craig.blackmore@embecosm.com>
1637
1638 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1639 (ALLDEPFILES): Add riscv-none-tdep.c.
1640 * configure: Regenerate.
1641 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1642 support.
1643 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1644 * elf-none-tdep.c: New file.
1645 * elf-none-tdep.h: New file.
1646 * riscv-none-tdep.c: New file.
1647
95ce627a
AB
16482021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1649 Andrew Burgess <andrew.burgess@embecosm.com>
1650
1651 * corelow.c: Add 'xml-tdesc.h' include.
1652 (core_target::read_description): Load the target description from
1653 the core file when possible.
1654 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1655 note.
1656 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1657 (gcore_elf_make_tdesc_note): New function.
1658 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1659 * linux-tdep.c (linux_make_corefile_notes): Add target description
1660 note.
1661
f3a5df7b
AB
16622021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1663
1664 * Makefile.in (SFILES): Add gcore-elf.c.
1665 (HFILES_NO_SRCDIR): Add gcore-elf.h
1666 * configure: Regenerate.
1667 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1668 support.
1669 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1670 (struct fbsd_collect_regset_section_cb_data): Delete.
1671 (fbsd_collect_regset_section_cb): Delete.
1672 (fbsd_collect_thread_registers): Delete.
1673 (struct fbsd_corefile_thread_data): Delete.
1674 (fbsd_corefile_thread): Delete.
1675 (fbsd_make_corefile_notes): Call
1676 gcore_elf_build_thread_register_notes instead of the now deleted
1677 FreeBSD code.
1678 * gcore-elf.c: New file, the content was moved here from
1679 linux-tdep.c, functions were renamed and given minor cleanup.
1680 * gcore-elf.h: New file.
1681 * gcore.c (gcore_find_signalled_thread): Moved here from
1682 linux-tdep.c and given a new name. Minor cleanups.
1683 * gcore.h (gcore_find_signalled_thread): Declare.
1684 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1685 (struct linux_collect_regset_section_cb_data): Delete.
1686 (linux_collect_regset_section_cb): Delete.
1687 (linux_collect_thread_registers): Delete.
1688 (linux_corefile_thread): Call
1689 gcore_elf_build_thread_register_notes.
1690 (find_signalled_thread): Delete.
1691 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1692
d1e93af6
SM
16932021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1694
1695 PR gdb/27147
1696 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1697 process_stratum_target parameter,
1698 sparc_store_inferior_registers): update callers.
1699 * sparc-nat.c (sparc_fetch_inferior_registers,
1700 sparc_store_inferior_registers): Add process_stratum_target
1701 parameter. Switch current thread before calling
1702 sparc_supply_gregset / sparc_collect_rwindow.
1703 (sparc_store_inferior_registers): Likewise.
1704 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1705 (sparc32obsd_collect_uthread): Likewise.
1706 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1707 Add assertion.
1708 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1709 sparc64obsd_supply_uthread): Add assertion.
1710
1178743e
TT
17112021-03-04 Tom Tromey <tromey@adacore.com>
1712
1713 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1714 (aux_add_nonlocal_symbols): Update.
1715 (ada_add_block_symbols): Change "found_sym" to bool.
1716
1bfa81ac
TT
17172021-03-03 Tom Tromey <tromey@adacore.com>
1718
1719 * ada-lang.c (ada_resolve_function): Update comment.
1720 (is_nonfunction, add_symbols_from_enclosing_procs)
1721 (remove_extra_symbols): Likewise.
1722 (struct match_data): Add constructor, initializers.
1723 (add_nonlocal_symbols): Remove memset.
1724 (aux_add_nonlocal_symbols): Update comment.
1725 (ada_add_block_renamings, add_nonlocal_symbols)
1726 (ada_add_all_symbols): Likewise.
1727 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1728
bbcdf9ab
TT
17292021-03-02 Tom Tromey <tromey@adacore.com>
1730
1731 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1732 (cast_to_gnat_encoded_fixed_point_type): Remove.
1733 (ada_value_cast, ada_evaluate_subexp): Update.
1734 (gnat_encoded_fixed_point_type_info)
1735 (ada_is_gnat_encoded_fixed_point_type)
1736 (gnat_encoded_fixed_point_delta)
1737 (gnat_encoded_fixed_point_scaling_factor): Remove.
1738 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1739 (gnat_encoded_fixed_point_delta)
1740 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1741 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1742 (ada_print_type): Update.
1743 * ada-valprint.c (ada_value_print_num): Update.
1744 * dwarf2/read.c (ada_get_gnat_encoded_number)
1745 (ada_get_gnat_encoded_ratio): New functions.
1746 (finish_fixed_point_type): Use them. Add parameters.
1747 (GNAT_FIXED_POINT_SUFFIX): New define.
1748 (gnat_encoded_fixed_point_type_info): New function.
1749 (read_base_type): Handle gnat encodings.
1750
5f9febe0
TT
17512021-03-02 Tom Tromey <tromey@adacore.com>
1752
1753 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1754 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1755 std::string.
1756 (GROW_VECT): Remove.
1757 (grow_vect): Remove.
1758
d1183b06
TT
17592021-03-02 Tom Tromey <tromey@adacore.com>
1760
1761 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1762 * ada-lang.c (resolve_subexp): Update.
1763 (ada_resolve_function): Accept a vector.
1764 (is_nonfunction, add_defn_to_vec)
1765 (add_symbols_from_enclosing_procs): Likewise.
1766 (num_defns_collected, defns_collected): Remove.
1767 (remove_extra_symbols): Return a vector.
1768 (remove_irrelevant_renamings): Return void.
1769 (ada_add_local_symbols): Accept a vector.
1770 (struct match_data) <obstackp>: Remove.
1771 <resultp>: New member.
1772 (aux_add_nonlocal_symbols): Update.
1773 (ada_add_block_renamings, add_nonlocal_symbols)
1774 (ada_add_all_symbols): Accept a vector.
1775 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1776 vector.
1777 (ada_lookup_symbol): Update.
1778 (ada_add_block_symbols): Accept a vector.
1779 (get_var_value, iterate_over_symbols): Update.
1780 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1781 Update.
1782
886d459f
TT
17832021-03-02 Tom Tromey <tromey@adacore.com>
1784
1785 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1786
bdcccc56
TT
17872021-03-02 Tom Tromey <tromey@adacore.com>
1788
1789 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1790 auto_obstack.
1791 <root>: Initialize.
1792 (ada_pspace_data): Remove destructor.
1793 <sym_cache>: Now a unique_ptr.
1794 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1795 (ada_get_symbol_cache): Use 'new'.
1796 (ada_clear_symbol_cache): Rewrite.
1797
1228719f
TT
17982021-03-02 Tom Tromey <tromey@adacore.com>
1799
1800 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1801 is null.
1802
bb3a4efe
LS
18032021-02-27 Lancelot Six <lsix@lancelotsix.com>
1804
1805 PR gdb/27393
1806 * source.c (add_path): Skip empty dirnames.
1807
26b43ca6 18082021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
1809
1810 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1811 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1812
dffdd8b5
SM
18132021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1814
1815 PR gdb/26861
1816 * target.c (target_mourn_inferior): Only compare pids in
1817 target_mourn_inferior.
1818
64d38fdd
JM
18192021-02-25 Jan Matyas <jmatyas@codasip.com>
1820
1821 PR gdb/26819
1822 * remote.c (remote_target::start_remote): Ensure the single
1823 thread, automatically added for remote targets without the
1824 concept of threading, is initially in set to the "resumed"
1825 state.
1826 * remote.c (remote_target::add_current_inferior_and_thread):
1827 Add return value - return the main thread.
1828
2450ad54
JV
18292021-02-25 Jan Vrany <jan.vrany@labware.com>
1830
1831 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1832 (mi_tsv_created): Likewise.
1833 (mi_tsv_deleted): Likewise.
1834
30c80d88
TV
18352021-02-25 Tom de Vries <tdevries@suse.de>
1836
1837 PR symtab/27354
1838 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1839 section_kind for &dwo_file->sections.info.
1840
68337b8b
AB
18412021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1842
1843 PR fortran/26155
1844 * f-lang.c (fortran_argument_convert): Delete declaration.
1845 (fortran_prepare_argument): New function.
1846 (evaluate_subexp_f): Move logic to new function
1847 fortran_prepare_argument.
1848
faeb9f13
AB
18492021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1850
1851 * f-exp.y (f77_keywords): Add 'associated'.
1852 * f-lang.c (fortran_associated): New function.
1853 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1854 (operator_length_f): Likewise.
1855 (print_unop_or_binop_subexp_f): New function.
1856 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1857 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1858 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1859 (operator_check_f): Likewise.
1860 * std-operator.def: Add FORTRAN_ASSOCIATED.
1861
170f4b23
AB
18622021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1863
1864 * f-exp.y (fortran_operators): Add ".xor.".
1865
aa659cfa
TV
18662021-02-24 Tom de Vries <tdevries@suse.de>
1867
1868 PR symtab/27336
1869 * dwarf2/attribute.c (attribute::form_is_signed): New function
1870 factored out of ...
1871 * dwarf2/attribute.h (attribute::as_signed): ... here.
1872 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1873 (attribute::form_is_signed): Declare.
1874 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1875 for DW_AT_decl_file.
1876
268c77c1
KB
18772021-02-24 Kevin Buettner <kevinb@redhat.com>
1878
1879 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1880 order for <sys/ptrace.h> and <asm/ptrace.h>.
1881
665af52e
KB
18822021-02-24 Kevin Buettner <kevinb@redhat.com>
1883
1884 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1885 <sys/ptrace.h>.
1886
dd80d750
AB
18872021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1888
1889 * exec.c (set_section_command): Move variable declarations into
1890 the function body, and use std::string instead of a fixed size
1891 buffer.
1892
336aa7b7
AB
18932021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1894
1895 * exec.c (exec_target::get_section_table): Delete member function.
1896 (section_table_read_available_memory): Use current_top_target, not
1897 just the exec_ops target.
1898 * target-delegates.c: Regenerate.
1899 * target.c (default_get_section_table): New function.
1900 * target.h (target_ops::get_section_table): Change default
1901 behaviour to call default_get_section_table.
1902 (default_get_section_table): Declare.
1903
02f7d26b
AB
19042021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1905
1906 * exec.c (exec_target::close): Call new clear_target_sections
1907 function.
1908 (program_space::add_target_sections): Update name of member
1909 variable.
1910 (program_space::add_target_sections): Update name of member
1911 variable.
1912 (program_space::remove_target_sections): Likewise.
1913 (exec_one_fork): Use new target_sections member function.
1914 (exec_target::get_section_table): Likewise.
1915 (exec_target::files_info): Likewise.
1916 (set_section_command): Likewise.
1917 (exec_set_section_address): Likewise.
1918 (exec_target::has_memory): Use new target_sections member
1919 function.
1920 * progspace.h (program_space::clear_target_sections): New member
1921 function.
1922 (program_space::target_sections): Rename member variable to
1923 m_target_sections, replace with a new member function.
1924 (program_space::m_target_sections): New member variable.
1925 * solib-dsbt.c (scan_dyntag): Use new member function.
1926 * solib-svr4.c (scan_dyntag): Likewise.
1927
19cf757a
AB
19282021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1929
1930 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
1931 return type const.
1932 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
1933 (section_table_read_available_memory): Make local const.
1934 (exec_target::xfer_partial): Make local const.
1935 (print_section_info): Make parameter const.
1936 * gdb/exec.h (print_section_info): Likewise.
1937 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
1938 const.
1939 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
1940 Likewise.
1941 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
1942 Likewise.
1943 * gdb/s390-tdep.c (s390_load): Likewise.
1944 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
1945 * gdb/solib-svr4.c (scan_dyntag): Likewise.
1946 * gdb/target-debug.h (target_debug_print_target_section_table_p):
1947 Rename to...
1948 (target_debug_print_const_target_section_table_p): ...this.
1949 * gdb/target-delegates.c: Regenerate.
1950 * gdb/target.c (target_get_section_table): Make return type const.
1951 (target_section_by_addr): Likewise. Also make some locals const.
1952 (memory_xfer_partial_1): Make some locals const.
1953 * gdb/target.h (struct target_ops) <get_section_table>: Make
1954 return type const.
1955 (target_section_by_addr): Likewise.
1956 (target_get_section_table): Likewise.
1957
02a79309
AB
19582021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1959
1960 * NEWS: Mention new 'maint info target-sections' command.
1961 * maint.c (maintenance_info_target_sections): New function.
1962 (_initialize_maint_cmds): Register new command.
1963
895b7b4e
AB
19642021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1965
1966 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
1967 (riscv_features_from_bfd): ...this. Change parameter type to
1968 'bfd*', and update as required.
1969 (riscv_find_default_target_description): Update call to
1970 riscv_features_from_bfd. Select a default xlen based on
1971 info.bfd_arch_info.
1972 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
1973
bc3c0632
AB
19742021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1975
1976 * eval.c (evaluate_subexp_standard): Call value_ind for points to
1977 dynamic types in UNOP_IND.
1978
08ac5771
SM
19792021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1980
1981 PR gdb/26828
1982 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
1983 Instantiate queue.
1984 (~dwarf2_queue_guard): Clear queue.
1985 (queue_comp_unit): Assert that queue is
1986 instantiated.
1987 (process_queue): Adjust.
1988 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
1989
616c069a
SM
19902021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1991
1992 PR gdb/26828
1993 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
1994 to decide whether or not to enqueue it for expansion.
1995 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
1996 after calling maybe_queue_comp_unit.
1997
897608ed
SM
19982021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
1999
2000 * linux-nat.c (linux_nat_filter_event): Return void.
2001
15908a11
TT
20022021-02-22 Tom Tromey <tromey@adacore.com>
2003
2004 * solib-svr4.c (enable_break): Update.
2005 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2006 type.
2007 (target_bfd_reopen): Change parameter type.
2008 * bfd-target.h (target_bfd_reopen): Change parameter type.
2009
f53fc427
SM
20102021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2011
2012 * thread.c (add_thread_silent): Add assert.
2013 (find_thread_ptid): Add assert.
2014
de146e19
SM
20152021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2016
2017 PR gdb/27435
2018 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2019 (target_unpush_up): Likewise.
2020 * procfs.c (procfs_target::attach): Push target early. Use
2021 target_unpush_up to unpush target in case of error.
2022 * target.h (struct target_unpusher): Move here.
2023 (target_unpush_up): Likewise.
2024
8488c357
KB
20252021-02-19 Kevin Buettner <kevinb@redhat.com>
2026
2027 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2028 (which in turn includes <gnulib/config.h>) before include
2029 of <signal.h>.
2030
5a9f5403
NC
20312021-02-19 Nelson Chu <nelson.chu@sifive.com>
2032
2033 PR 27158
2034 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2035 (decode_j_type_insn): Likewise.
2036 (decode_cj_type_insn): Likewise.
2037 (decode_b_type_insn): Likewise.
2038 (decode): Likewise.
2039
26f53cd3
TT
20402021-02-18 Tom Tromey <tom@tromey.com>
2041
2042 * expression.h (struct expression) <evaluate>: Declare method.
2043 * eval.c (evaluate_subexp): Simplify.
2044 (expression::evaluate): New method.
2045 (evaluate_expression, evaluate_type): Use expression::evaluate.
2046
6a780b67
KB
20472021-02-17 Kevin Buettner <kevinb@redhat.com>
2048
2049 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2050 to accessing it.
2051 (ada_lookup_name_info): Likewise.
2052
adeab0c5
MF
20532021-02-13 Mike Frysinger <vapier@gentoo.org>
2054
2055 * aclocal.m4: Regenerate.
2056
089436f7
TV
20572021-02-12 Tom de Vries <tdevries@suse.de>
2058
2059 PR threads/26228
2060 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2061 (lin_thread_signals): New static var.
2062 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2063 New function.
2064 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2065 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2066 Declare.
2067 * linux-thread-db.c (check_thread_signals): Use
2068 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2069
96df3e28
AB
20702021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2071
2072 * f-exp.y (f77_keywords): Add allocated.
2073 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2074 (operator_length_f): Likewise.
2075 (print_subexp_f): Likewise.
2076 (dump_subexp_body_f): Likewise.
2077 (operator_check_f): Likewise.
2078 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2079
05f68f52
TV
20802021-02-11 Tom de Vries <tdevries@suse.de>
2081
2082 PR symtab/27353
2083 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2084 Return true for DW_FORM_strx.
2085
b260f8d6
TT
20862021-02-11 Tom Tromey <tromey@adacore.com>
2087
2088 PR gdb/27383:
2089 * parse.c (write_exp_symbol_reference): Write sym.block.
2090
bf3386f0
AB
20912021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2092
2093 * NEWS: Mention changes to 'maint info sections'.
2094 * maint.c (match_substring): Return a bool, fix whitespace issue.
2095 (struct single_bfd_flag_info): New struct.
2096 (bfd_flag_info): New static global.
2097 (match_bfd_flags): Return a bool, use bfd_flag_info.
2098 (print_bfd_flags): Use bfd_flag_info.
2099 (maint_print_section_info): Delete trailing whitespace.
2100 (struct maint_info_sections_opts): New struct.
2101 (maint_info_sections_option_defs): New static global.
2102 (maint_info_sections_completer): New function.
2103 (maintenance_info_sections): Use option parsing mechanism.
2104 (_initialize_maint_cmds): Update command help text for 'maint info
2105 sections' and register a command completer.
2106
4790db14
AB
21072021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2108
2109 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2110 functionality merged into...
2111 (maint_print_all_sections): ...this new function.
2112 (maintenance_info_sections): Make use of maint_print_all_sections,
2113 allow all objects to be printed even where there's no executable.
2114
1db66e34
AB
21152021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2116
2117 * breakpoint.c (resolve_sal_pc): Make use of
2118 bound_minimal_symbol::obj_section.
2119 * maint.c (maintenance_translate_address): Likewise.
2120 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2121 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2122 member function.
2123 * printcmd.c (info_address_command): Make use of
2124 bound_minimal_symbol::obj_section.
2125
18b8df43
AM
21262021-02-11 Alan Modra <amodra@gmail.com>
2127
2128 * arm-symbian-tdep.c: Delete.
2129 * NEWS: Mention arm-symbian removal.
2130 * Makefile.in: Remove arm-symbian-tdep entries.
2131 * configure.tgt: Remove arm*-*-symbianelf*.
2132 * doc/gdb.texinfo: Remove mention of SymbianOS.
2133 * osabi.c (gdb_osabi_names): Remove "Symbian".
2134 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2135 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2136 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2137 handling.
2138 * testsuite/gdb.base/dup-sect.exp: Likewise.
2139 * testsuite/gdb.base/long_long.exp: Likewise.
2140 * testsuite/gdb.base/solib-weak.exp: Likewise.
2141 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2142 * testsuite/gdb.python/py-section-script.exp: Likewise.
2143 * testsuite/lib/dwarf.exp: Likewise.
2144 * testsuite/lib/gdb.exp: Likewise.
2145
e92c8eb8
AB
21462021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2147
2148 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2149 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2150 (one_or_two_args): New pattern.
2151 (f77_keywords): Add lbound and ubound.
2152 * f-lang.c (fortran_bounds_all_dims): New function.
2153 (fortran_bounds_for_dimension): New function.
2154 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2155 (operator_length_f): Likewise.
2156 (print_subexp_f): Likewise.
2157 (dump_subexp_body_f): Likewise.
2158 (operator_check_f): Likewise.
2159 * std-operator.def (FORTRAN_LBOUND): Define.
2160 (FORTRAN_UBOUND): Define.
2161
a52d653e
AB
21622021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2163
2164 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2165 and set_section_index member functions where appropriate.
2166 * coffread.c (coff_symtab_read): Likewise.
2167 (process_coff_symbol): Likewise.
2168 * ctfread.c (set_symbol_address): Likewise.
2169 * dwarf2/read.c (add_partial_symbol): Likewise.
2170 (var_decode_location): Likewise.
2171 * language.c: Likewise.
2172 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2173 (compact_minimal_symbols): Likewise.
2174 (minimal_symbol_upper_bound): Likewise.
2175 * objfiles.c (relocate_one_symbol): Likewise.
2176 * psympriv.h (partial_symbol::obj_section): Likewise.
2177 (partial_symbol::address): Likewise.
2178 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2179 * stabsread.c (scan_file_globals): Likewise.
2180 * symmisc.c (dump_msymbols): Likewise.
2181 * symtab.c (general_symbol_info::obj_section): Likewise.
2182 (fixup_section): Likewise.
2183 (get_msymbol_address): Likewise.
2184 * symtab.h (general_symbol_info::section): Rename to...
2185 (general_symbol_info::m_section): ...this.
2186 (general_symbol_info::set_section_index): New member function.
2187 (general_symbol_info::section_index): Likewise.
2188 (SYMBOL_SECTION): Delete.
2189 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2190 set_section_index member functions where appropriate.
2191 (MSYMBOL_SECTION): Delete.
2192 (symbol::symbol): Update to initialize 'm_section'.
2193 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2194 (process_xcoff_symbol): Likewise.
2195
ebbc3a7d
AB
21962021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2197
2198 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2199 MSYMBOL_OBJ_SECTION.
2200 * findvar.c (language_defn::read_var_value): Likewise.
2201 * infcmd.c (jump_command): Likewise.
2202 * linespec.c (minsym_found): Likewise.
2203 * maint.c (maintenance_translate_address): Likewise.
2204 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2205 (minimal_symbol_upper_bound): Likewise.
2206 * parse.c (find_minsym_type_and_address): Likewise.
2207 (operator_check_standard): Likewise.
2208 * printcmd.c (info_address_command): Likewise.
2209 * symmisc.c (dump_msymbols): Likewise.
2210 (print_symbol): Likewise.
2211 * symtab.c (general_symbol_info::obj_section): Define new
2212 function.
2213 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2214 (find_pc_sect_compunit_symtab): Likewise.
2215 (find_function_start_sal): Likewise.
2216 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2217 MSYMBOL_OBJ_SECTION.
2218 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2219 function.
2220 (SYMBOL_OBJ_SECTION): Delete.
2221 (MSYMBOL_OBJ_SECTION): Delete.
2222
9bb305b3
TT
22232021-02-09 Tom Tromey <tom@tromey.com>
2224
2225 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2226
cf2b2075
TV
22272021-02-09 Tom de Vries <tdevries@suse.de>
2228
2229 PR symtab/27341
2230 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2231 construct an array type. Add assert to ensure that element_type is
2232 not being modified.
2233
03642b71
AB
22342021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2235
2236 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2237 (gcore_collect_regset_section_cb): Delete.
2238 (gcore_collect_thread_registers): Delete.
2239 (gcore_build_thread_register_notes): Delete.
2240 (gcore_find_signalled_thread): Delete.
2241 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2242 'gdbarch' and 'thread_info' declarations.
2243 (gcore_build_thread_register_notes): Delete declaration.
2244 (gcore_find_signalled_thread): Likewise.
2245 * fbsd-tdep.c: Remove 'gcore.h' include.
2246 (struct fbsd_collect_regset_section_cb_data): New struct.
2247 (fbsd_collect_regset_section_cb): New function.
2248 (fbsd_collect_thread_registers): New function.
2249 (struct fbsd_corefile_thread_data): New struct.
2250 (fbsd_corefile_thread): New function.
2251 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2252 * linux-tdep.c: Remove 'gcore.h' include.
2253 (struct linux_collect_regset_section_cb_data): New struct.
2254 (linux_collect_regset_section_cb): New function.
2255 (linux_collect_thread_registers): New function.
2256 (linux_corefile_thread): Call Linux specific code.
2257 (find_signalled_thread): New function.
2258 (linux_make_corefile_notes): Call find_signalled_thread.
2259
f73e424f
TT
22602021-02-09 Tom Tromey <tromey@adacore.com>
2261
2262 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2263 not_lval value.
2264 * value.c (value_contents_copy_raw): Now static.
2265 * value.h (value_contents_copy_raw): Don't declare.
2266
a4f0544b
TT
22672021-02-09 Tom Tromey <tromey@adacore.com>
2268
2269 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2270 fields.
2271
9b3e4b5d
SV
22722021-02-08 Shahab Vahedi <shahab@synopsys.com>
2273
2274 PR tdep/27369
2275 * arc-linux-tdep.c (handle_atomic_sequence): New.
2276 (arc_linux_software_single_step): Call handle_atomic_sequence().
2277
29db1eb3
AB
22782021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2279
2280 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2281 function.
2282 (REQUIRE_WINDOW): Call is_valid member function.
2283 (REQUIRE_WINDOW_FOR_SETTER): New define.
2284 (gdbpy_tui_is_valid): Call is_valid member function.
2285 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2286 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2287 tui_active too.
2288 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2289 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2290 the function.
2291
e0c23e11
AB
22922021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2293
2294 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2295 for the title is not nullptr.
2296
1cf23996
AB
22972021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2298
2299 * tui-layout.c (saved_tui_windows): Delete.
2300 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2301 call new get_windows member function instead.
2302 (tui_get_window_by_name): Check in tui_windows.
2303 (tui_layout_window::apply): Don't add to tui_windows.
2304 * tui-layout.h (tui_layout_base::get_windows): New member function.
2305 (tui_layout_window::get_windows): Likewise.
2306 (tui_layout_split::get_windows): Likewise.
2307
a53a2657
AB
23082021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2309
2310 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2311 of the window objects.
2312
2708dbbd
AB
23132021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2314
2315 * python/python.c (gdbpy_print_stack): Reformat an error message.
2316
cd074e04
AB
23172021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2318
2319 * tui/tui-interp.c (tui_command_line_handler): New function.
2320 (tui_interp::resume): Register tui_command_line_handler as the
2321 input_handler.
2322 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2323 function.
2324 (tui_getc_1): Delete handling of '\n' and '\r'.
2325 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2326
4cf28e91
HD
23272021-02-07 Hannes Domani <ssbssa@yahoo.de>
2328
2329 * tui/tui-regs.c (tui_data_window::display_registers_from):
2330 Mark invisible register sub windows.
2331 (tui_data_window::check_register_values): Ignore invisible
2332 register sub windows.
2333
3537bc23
HD
23342021-02-07 Hannes Domani <ssbssa@yahoo.de>
2335
2336 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2337 n_spaces with a negative value.
2338
5fc2d6aa
HD
23392021-02-07 Hannes Domani <ssbssa@yahoo.de>
2340
2341 * tui/tui-regs.c (tui_data_window::display_registers_from):
2342 Add refresh_window call.
2343
83962f83
HD
23442021-02-07 Hannes Domani <ssbssa@yahoo.de>
2345
2346 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2347
0110ec82
SM
23482021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2349
2350 * symmisc.c (std_in, std_out, std_err): Remove.
2351 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2352
7c6944ab
TV
23532021-02-05 Tom de Vries <tdevries@suse.de>
2354
2355 PR breakpoints/27330
2356 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2357 glibc object file has debug info.
2358
e77b0004
TV
23592021-02-05 Tom de Vries <tdevries@suse.de>
2360
2361 PR symtab/27333
2362 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2363
0e857c82
TV
23642021-02-05 Tom de Vries <tdevries@suse.de>
2365
2366 PR breakpoints/27313
2367 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2368 syscall numbers.
2369
bdfea17e
TT
23702021-02-05 Tom Tromey <tom@tromey.com>
2371
2372 * compile/compile-c-support.c (get_compile_context)
2373 (c_get_compile_context, cplus_get_compile_context): Change return
2374 type.
2375 * language.c (language_defn::get_compile_instance): New method.
2376 * language.h (language_defn::get_compile_instance): Change return
2377 type. No longer inline.
2378 * c-lang.c (c_language::get_compile_instance): Change return type.
2379 (cplus_language::get_compile_instance): Change return type.
2380 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2381 Change return type.
2382 * compile/compile.c (compile_to_object): Update.
2383
1b30f421
TT
23842021-02-05 Tom Tromey <tom@tromey.com>
2385
2386 * parser-defs.h (write_exp_symbol_reference): Declare.
2387 * parse.c (write_exp_symbol_reference): New function.
2388 * p-exp.y (variable): Use write_exp_symbol_reference.
2389 * m2-exp.y (variable): Use write_exp_symbol_reference.
2390 * f-exp.y (variable): Use write_exp_symbol_reference.
2391 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2392 * c-exp.y (variable): Use write_exp_symbol_reference.
2393
ae710496
TV
23942021-02-05 Tom de Vries <tdevries@suse.de>
2395
2396 PR exp/27265
2397 * valarith.c (complex_binop): Throw an error if complex type can't
2398 be created.
2399
d3b54e63
TV
24002021-02-05 Tom de Vries <tdevries@suse.de>
2401
2402 PR symtab/27307
2403 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2404 return.
2405
fc9a13fb
TV
24062021-02-05 Tom de Vries <tdevries@suse.de>
2407
2408 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2409
04b4939b
MF
24102021-02-04 Mike Frysinger <vapier@gentoo.org>
2411
2412 * configure.tgt (riscv*-*-*): Set gdb_sim.
2413
6ff267e1
SM
24142021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2415
2416 * target.c (target_is_non_stop_p): Return bool.
2417 * target.h (target_is_non_stop_p): Return bool.
2418
fdbc5215
SM
24192021-02-04 Simon Marchi <simon.marchi@efficios.com>
2420
2421 * record-full.c (record_full_async_inferior_event_handler):
2422 Don't clear async event handler.
2423 (record_full_base_target::wait): Clear async event handler at
2424 beginning.
2425
85d3ad8e
SM
24262021-02-04 Simon Marchi <simon.marchi@efficios.com>
2427
2428 * record-btrace.c (record_btrace_handle_async_inferior_event):
2429 Don't clear async event handler.
2430 (record_btrace_target::wait): Clear async event handler at
2431 beginning.
2432
baa8575b
SM
24332021-02-04 Simon Marchi <simon.marchi@efficios.com>
2434
2435 * remote.c (remote_target::wait): Clear async event handler at
2436 beginning, mark if needed at the end.
2437 (remote_async_inferior_event_handler): Don't set or clear async
2438 event handler.
2439
6b36ddeb
SM
24402021-02-04 Simon Marchi <simon.marchi@efficios.com>
2441
2442 * async-event.h (async_event_handler_func): Add documentation.
2443 * async-event.c (check_async_event_handlers): Don't clear
2444 async_event_handler ready flag.
2445 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2446 flag.
2447 * record-btrace.c (record_btrace_handle_async_inferior_event):
2448 Likewise.
2449 * record-full.c (record_full_async_inferior_event_handler):
2450 Likewise.
2451 * remote-notif.c (remote_async_get_pending_events_handler):
2452 Likewise.
2453 * remote.c (remote_async_inferior_event_handler): Likewise.
2454
72d383bb
SM
24552021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2456
2457 * infrun.c (handle_inferior_event): Move stop_soon variable to
2458 inner scope.
2459
408f6686
PA
24602021-02-03 Pedro Alves <pedro@palves.net>
2461
2462 * infcmd.c (detach_command): Hold strong reference to target, and
2463 if all-stop on entry, restart threads on exit.
2464 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2465 (restart_stepped_thread): ... this new function. Also handle
2466 trap_expected.
2467 (restart_after_all_stop_detach): New function.
2468 * infrun.h (restart_after_all_stop_detach): Declare.
2469
ac7d717c
PA
24702021-02-03 Pedro Alves <pedro@palves.net>
2471
2472 * infrun.c (struct step_over_info): Initialize fields.
2473 (prepare_for_detach): Handle ongoing in-line step over.
2474
e87f0fe8
PA
24752021-02-03 Pedro Alves <pedro@palves.net>
2476
2477 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2478 here...
2479 * remote.c (remote_target::remote_detach_1): ... and here ...
2480 * target.c (target_detach): ... instead of here.
2481 * target.h (target_ops::detach): Add comment.
2482
8ff53139
PA
24832021-02-03 Pedro Alves <pedro@palves.net>
2484
2485 * infrun.c (struct wait_one_event): Move higher up.
2486 (prepare_for_detach): Abort in-progress displaced steps instead of
2487 letting them complete.
2488 (handle_one): If the inferior is detaching, don't add the thread
2489 back to the global step-over chain.
2490 (restart_threads): Don't restart threads if detaching.
2491 (handle_signal_stop): Remove inferior::detaching reference.
2492
91475068
PA
24932021-02-03 Pedro Alves <pedro@palves.net>
2494
2495 * infrun.c (prepare_for_detach): Don't release scoped_restore
2496 before returning.
2497
d758e62c
PA
24982021-02-03 Pedro Alves <pedro@palves.net>
2499
2500 * infrun.c (handle_one): New function, factored out from ...
2501 (stop_all_threads): ... here.
2502
b0083dd7
PA
25032021-02-03 Pedro Alves <pedro@palves.net>
2504
2505 * remote.c (remote_notif_stop_ack): Don't error out on
2506 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2507 (remote_target::discard_pending_stop_replies): Don't delete
2508 in-flight notification; instead, clear its contents.
2509
621cc310
PA
25102021-02-03 Pedro Alves <pedro@palves.net>
2511
2512 * remote.c (extended_remote_target::attach): Set target async in
2513 the target-non-stop path too.
2514
2ab76a18
PA
25152021-02-03 Pedro Alves <pedro@palves.net>
2516
2517 PR gdb/27055
2518 * infrun.c (handle_signal_stop): Move main context_switch call
2519 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2520
2e3773ff
LS
25212021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2522
2523 * NEWS (Changed commands): Add entry for the behavior change of
2524 the inferior command.
2525 * inferior.c (inferior_command): When no argument is given to the
2526 inferior command, display info about the currently selected
2527 inferior.
2528
e57933dc
SM
25292021-02-02 Simon Marchi <simon.marchi@efficios.com>
2530
2531 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2532 a sect_offset.
2533 (read_attribute_reprocess): Adjust.
2534
2b0c7f41
SM
25352021-02-02 Simon Marchi <simon.marchi@efficios.com>
2536
2537 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2538 <gnu_ranges_base>: ... this...
2539 <rnglists_base>: ... and this.
2540 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2541 <gnu_ranges_base>: ... this...
2542 <rnglists_base>: ... and this.
2543 (read_cutu_die_from_dwo): Adjust
2544 (dwarf2_get_pc_bounds): Adjust
2545 (dwarf2_record_block_ranges): Adjust.
2546 (read_full_die_1): Adjust
2547 (partial_die_info::read): Adjust.
2548 (read_rnglist_index): Adjust.
2549
a1c40103
SM
25502021-02-02 Simon Marchi <simon.marchi@efficios.com>
2551
2552 PR gdb/26813
2553 * dwarf2/read.c (read_loclists_rnglists_header): Add
2554 header_offset parameter and use it.
2555 (read_loclist_index): Read header of the current contribution,
2556 not the one at the beginning of the section.
2557 (read_rnglist_index): Likewise.
2558
b1829e1b
SM
25592021-02-02 Simon Marchi <simon.marchi@efficios.com>
2560
2561 PR gdb/26813
2562 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2563 requires_reprocessing flag.
2564 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2565 DW_FORM_loclistx.
2566 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2567 and DW_FORM_loclistx.
2568 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2569 instead of set_address for DW_FORM_loclistx and
2570 DW_FORM_rnglistx.
2571
0c800c6e
SM
25722021-02-02 Simon Marchi <simon.marchi@efficios.com>
2573
2574 * dwarf2/read.c (read_loclist_index): Remove bound check for
2575 start of offset.
2576 (read_rnglist_index): Likewise.
2577
05787bad
SM
25782021-02-02 Simon Marchi <simon.marchi@efficios.com>
2579
2580 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2581 of the offset.
2582
5e4d9bbc
SM
25832021-02-02 Simon Marchi <simon.marchi@efficios.com>
2584
2585 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2586
a0c1eeba
SM
25872021-02-02 Simon Marchi <simon.marchi@efficios.com>
2588
2589 * dwarf2/read.c (read_loclist_index): Change complaints into
2590 errors.
2591
2bd3e4b8
TV
25922021-02-02 Tom de Vries <tdevries@suse.de>
2593
2594 PR symtab/24620
2595 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2596 psymtab == nullptr.
2597
82a1fd3a
AB
25982021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2599
2600 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2601 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2602 here from linux-tdep.c and given a new name. Minor cleanups.
2603 (gcore_collect_regset_section_cb): Likewise.
2604 (gcore_collect_thread_registers): Likewise.
2605 (gcore_build_thread_register_notes): Likewise.
2606 (gcore_find_signalled_thread): Likewise.
2607 * gcore.h (gcore_build_thread_register_notes): Declare.
2608 (gcore_find_signalled_thread): Declare.
2609 * fbsd-tdep.c: Add 'gcore.h' include.
2610 (struct fbsd_collect_regset_section_cb_data): Delete.
2611 (fbsd_collect_regset_section_cb): Delete.
2612 (fbsd_collect_thread_registers): Delete.
2613 (struct fbsd_corefile_thread_data): Delete.
2614 (fbsd_corefile_thread): Delete.
2615 (fbsd_make_corefile_notes): Call
2616 gcore_build_thread_register_notes instead of the now deleted
2617 FreeBSD code.
2618 * linux-tdep.c: Add 'gcore.h' include.
2619 (struct linux_collect_regset_section_cb_data): Delete.
2620 (linux_collect_regset_section_cb): Delete.
2621 (linux_collect_thread_registers): Delete.
2622 (linux_corefile_thread): Call
2623 gcore_build_thread_register_notes.
2624 (find_signalled_thread): Delete.
2625 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2626
ebde6f2d
TV
26272021-01-29 Tom de Vries <tdevries@suse.de>
2628
2629 PR breakpoints/26063
2630 * infrun.c (process_event_stop_test): Reset
2631 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2632 changed.
2633
0f93c3a2
AB
26342021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2635
2636 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2637 assert. Extend the header comment.
2638
f237f998
AB
26392021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2640
2641 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2642 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2643 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2644 (tui_locator_win_info_ptr): Delete declaration.
2645 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2646 (tui_disasm_window::set_contents): Fetch state from tui_location
2647 global.
2648 (tui_get_begin_asm_address): Likewise.
2649 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2650 for locator window.
2651 (get_locator_window): Delete.
2652 (initialize_known_windows): Treat locator window just like all the
2653 rest.
2654 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2655 (tui_source_window::set_contents): Fetch state from tui_location
2656 global.
2657 (tui_source_window::showing_source_p): Likewise.
2658 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2659 (_locator): Delete.
2660 (tui_locator_win_info_ptr): Delete.
2661 (tui_locator_window::make_status_line): Fetch state from
2662 tui_location global.
2663 (tui_locator_window::rerender): Remove check of 'handle',
2664 reindent function body.
2665 (tui_locator_window::set_locator_fullname): Delete.
2666 (tui_locator_window::set_locator_info): Delete.
2667 (tui_update_locator_fullname): Delete.
2668 (tui_show_frame_info): Likewise.
2669 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2670 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2671 tui/tui-location.h and renamed to
2672 tui_location_tracker::set_location.
2673 (tui_locator_window::set_locator_fullname): Moved to
2674 tui/tui-location.h and renamed to
2675 tui_location_tracker::set_fullname.
2676 (tui_locator_window::full_name): Delete.
2677 (tui_locator_window::proc_name): Delete.
2678 (tui_locator_window::line_no): Delete.
2679 (tui_locator_window::addr): Delete.
2680 (tui_locator_window::gdbarch): Delete.
2681 (tui_update_locator_fullname): Delete declaration.
2682 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2683 for locator window.
2684 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2685 (tui_display_main): Call function on tui_location directly.
2686 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2687 * tui/tui-location.c: New file.
2688 * tui/tui-location.h: New file.
2689
8ee511af
SM
26902021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2691
2692 * gdbtypes.h (get_type_arch): Rename to...
2693 (struct type) <arch>: ... this, update all users.
2694
6ac37371
SM
26952021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2696
2697 * gdbtypes.h (struct type) <arch>: Rename to...
2698 <arch_owner>: ... this, update all users.
2699 <objfile>: Rename to...
2700 <objfile_owner>: ... this, update all users.
2701
24cf6389
AB
27022021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2703
2704 * gdbcmd.h (execute_command_to_string): Update comment.
2705 * top.c (execute_command_to_string): Update header comment.
2706
2a7f6487
TV
27072021-01-28 Tom de Vries <tdevries@suse.de>
2708
2709 PR breakpoints/27205
2710 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2711 (create_longjmp_master_breakpoint_names): New function, factored out
2712 of ...
2713 (create_longjmp_master_breakpoint): ... here. Only try to install
2714 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2715 breakpoint in libc.so failed.
2716
59b59f08
LS
27172021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2718
2719 PR gdb/27133
2720 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2721 unique_ptr is released when the wrapped pointer is kept for later
2722 use.
2723
807f647c
MM
27242021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2725
2726 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2727 BLR and BR instructions.
2728 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2729 (enum aarch64_masks): New.
2730
4ef367bf
TT
27312021-01-26 Tom Tromey <tromey@adacore.com>
2732
2733 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2734 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2735 (windows_init_thread_list, windows_nat::handle_load_dll)
2736 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2737 (windows_nat_target::resume)
2738 (windows_nat_target::get_windows_debug_event)
2739 (windows_nat_target::interrupt, windows_xfer_memory)
2740 (windows_nat_target::close): Update.
2741 * nat/windows-nat.c (DEBUG_EVENTS): Use
2742 debug_prefixed_printf_cond.
2743 (matching_pending_stop, fetch_pending_stop)
2744 (continue_last_debug_event): Update.
2745
4cb1265b
MS
27462020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2747
2748 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2749 elfcore_write_file_note.
2750
d0cc52bd
SV
27512021-01-26 Shahab Vahedi <shahab@synopsys.com>
2752
2753 * arc-tdep.c (arc_add_reggroups): New function.
2754 (arc_gdbarch_init): Call arc_add_reggroups.
2755
ac3571d9 27562021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
2757
2758 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2759
9f6c202e
TV
27602021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2761 Simon Marchi <simon.marchi@polymtl.ca>
2762 Tom de Vries <tdevries@suse.de>
2763
2764 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2765 DW_AT_ranges.
2766
a625a8c9
TT
27672021-01-25 Tom Tromey <tromey@adacore.com>
2768
2769 * dwarf2/read.c (get_mpz): New function.
2770 (get_dwarf2_rational_constant): Use it.
2771
19184910
TT
27722021-01-25 Tom Tromey <tromey@adacore.com>
2773
2774 * ada-lang.c (resolve_subexp): Handle array context.
2775
b10bae18
TT
27762021-01-23 Tom Tromey <tom@tromey.com>
2777
2778 PR compile/25575
2779 * compile/compile-loc2c.c (note_register): New function.
2780 (pushf_register_address, pushf_register): Use it.
2781
3637a558
TT
27822021-01-23 Tom Tromey <tom@tromey.com>
2783
2784 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2785 Change type of "registers_used".
2786 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2787 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2788 (locexpr_generate_c_location, loclist_generate_c_location): Change
2789 type of "registers_used".
2790 * compile/compile.h (compile_dwarf_expr_to_c)
2791 (compile_dwarf_bounds_to_c): Update.
2792 * compile/compile-loc2c.c (pushf_register_address)
2793 (pushf_register, do_compile_dwarf_expr_to_c)
2794 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2795 of "registers_used".
2796 * compile/compile-c.h (generate_c_for_variable_locations):
2797 Update.
2798 * compile/compile-c-symbols.c (generate_vla_size)
2799 (generate_c_for_for_one_variable): Change type of
2800 "registers_used".
2801 (generate_c_for_variable_locations): Return std::vector.
2802 * compile/compile-c-support.c (generate_register_struct): Change
2803 type of "registers_used".
2804 (compute): Update.
2805
9f7f6cb8
TT
28062021-01-23 Tom Tromey <tom@tromey.com>
2807
2808 * compile/compile-internal.h (class compile_instance)
2809 <set_arguments>: Change return type.
2810 * compile/compile.c (compile_to_object): Remove call to reset.
2811 (compile_instance::set_arguments): Change return type.
2812
dd5ca05f
SM
28132021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2814
2815 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2816 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2817
d3ee35db
LS
28182021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2819
2820 * Makefile.in (SELFTESTS_SRCS): Add
2821 unittests/gdb_tilde_expand-selftests.c.
2822 * unittests/gdb_tilde_expand-selftests.c: New file.
2823
9d2d8a16
AB
28242021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2825
2826 PR cli/25956
2827 * NEWS: Mention new command.
2828 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2829 (version_style): Define.
2830 (cli_style_option::cli_style_option): Add intensity parameter, and
2831 use as appropriate.
2832 (_initialize_cli_style): Register version style set/show commands.
2833 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2834 (version_style): Declare.
2835 * top.c (print_gdb_version): Use version_stype, and styled_string
2836 to print the GDB version string.
2837
e7b43072
AB
28382021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2839
2840 * utils.c (emit_style_escape): Only emit an escape sequence if the
2841 requested style is different than the current applied style.
2842 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2843 current applied_style.
2844 (fputs_styled): Remove is_default check.
2845 (fputs_styled_unfiltered): Likewise.
2846 (vfprintf_styled_no_gdbfmt): Likewise.
2847
2189c312
SM
28482021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2849
2850 * remote.h (remote_debug_printf): New.
2851 (remote_debug_printf_nofunc): New.
2852 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2853 * remote.c: Use above macros throughout file.
2854
02349803
SM
28552021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2856
2857 * remote.h (remote_debug): Change to bool.
2858 * remote.c (remote_debug): Change to bool.
2859 (_initialize_remote): Adjust.
2860
cda09ec9
SM
28612021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2862
2863 * target.h (remote_debug): Move to...
2864 * remote.h (remote_debug): ... here.
2865 * top.c (remote_debug): Move to...
2866 * remote.c (remote_debug): ... here.
2867 * remote-sim.c: Include remote.h.
2868
baf2b57f
SM
28692021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2870
2871 * cli/cli-cmds.c (show_remote_debug): Remove.
2872 (show_remote_timeout): Remove.
2873 (_initialize_cli_cmds): Don't register commands.
2874 * remote.c (show_remote_debug): Move here.
2875 (show_remote_timeout): Move here.
2876 (_initialize_remote): Register commands.
2877
344e9841
SM
28782021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2879
2880 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2881 type::objfile method instead.
2882
30625020
SM
28832021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2884
2885 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2886 use the type::is_objfile_owned method.
2887
5b7d941b
SM
28882021-01-22 Simon Marchi <simon.marchi@efficios.com>
2889
2890 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2891 (TYPE_OWNER): Remove.
2892 (TYPE_OBJFILE): Adjust.
2893 (struct main_type) <flag_objfile_owned>: Rename to...
2894 <m_flag_objfile_owned>: ... this.
2895 <owner>: Rename to...
2896 <m_owner>: ... this.
2897 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2898 methods.
2899 (TYPE_ALLOC): Adjust.
2900 * gdbtypes.c (alloc_type): Adjust.
2901 (alloc_type_arch): Adjust.
2902 (alloc_type_copy): Adjust.
2903 (get_type_arch): Adjust.
2904 (smash_type): Adjust.
2905 (lookup_array_range_type): Adjust.
2906 (recursive_dump_type): Adjust.
2907 (copy_type_recursive): Adjust.
2908 * compile/compile-c-types.c (convert_func): Adjust.
2909 (convert_type_basic): Adjust.
2910 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2911 Adjust.
2912 * language.c
2913 (language_arch_info::type_and_symbol::alloc_type_symbol):
2914 Adjust.
2915
d5d24e12
LM
29162021-01-21 Luis Machado <luis.machado@linaro.org>
2917
2918 * coffread.c (enter_linenos): Passing string to complaint.
2919 * valops.c (value_assign): Make array view.
2920
a59902a7
SM
29212021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2922
2923 * auto-load.h (debug_auto_load): Move here.
2924 (auto_load_debug_printf): New.
2925 * auto-load.c: Use auto_load_debug_printf.
2926 (debug_auto_load): Move to header.
2927 * linux-thread-db.c (try_thread_db_load): Use
2928 auto_load_debug_printf.
2929 * main.c (captured_main_1): Likewise.
2930
d3abc0ce
SM
29312021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2932
2933 * f-valprint.c (f77_array_offset_tbl): Remove.
2934
1e15fcac
SM
29352021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2936
2937 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
2938
439706e6
SM
29392021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2940
2941 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
2942 of gdb_select.
2943
325d39e4
HD
29442021-01-21 Hannes Domani <ssbssa@yahoo.de>
2945
2946 PR python/19151
2947 * python/py-breakpoint.c (bppy_get_location): Handle
2948 bp_hardware_breakpoint.
2949 (bppy_init): Likewise.
2950 (gdbpy_breakpoint_created): Likewise.
2951
7cb6d92a
SM
29522021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2953
2954 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
2955
d4dd4fca
SM
29562021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2957
2958 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
2959 (_initialize_gdb_bfd): Adjust.
2960
de53369b
SM
29612021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2962
2963 PR gdb/26828
2964 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
2965
17e593e9
SM
29662021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2967
2968 * dwarf2/read.c (follow_die_offset): Add logging.
2969 (dwarf2_per_objfile::age_comp_units): Add logging.
2970
6bd434d6
SM
29712021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
2972
2973 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
2974 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
2975 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
2976 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
2977 * arm-tdep.c (struct frame_unwind): Make static.
2978 * auto-load.c (auto_load_safe_path_vec): Make static.
2979 * csky-tdep.c (csky_stub_unwind): Make static.
2980 * gdbarch.c (gdbarch_data_registry): Make static.
2981 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
2982 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
2983 * i386-tdep.c (i386_frame_setup_skip_insns,
2984 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
2985 Make static.
2986 * infrun.c (observer_mode): Make static.
2987 * linux-nat.c (sigchld_action): Make static.
2988 * linux-thread-db.c (thread_db_list): Make static.
2989 * maint-test-options.c (maintenance_test_options_list):
2990 * mep-tdep.c (mep_csr_registers): Make static.
2991 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
2992 (stats): Make static.
2993 * nat/linux-osdata.c (struct osdata_type): Make static.
2994 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
2995 * progspace.c (last_program_space_num): Make static.
2996 * python/py-param.c (struct parm_constant): Remove struct type
2997 name.
2998 (parm_constants): Make static.
2999 * python/py-record-btrace.c (btpy_list_methods): Make static.
3000 * python/py-record.c (recpy_gap_type): Make static.
3001 * record.c (record_goto_cmdlist): Make static.
3002 * regcache.c (regcache_descr_handle): Make static.
3003 * registry.h (DEFINE_REGISTRY): Make definition static.
3004 * symmisc.c (std_in, std_out, std_err): Make static.
3005 * top.c (previous_saved_command_line): Make static.
3006 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3007 static.
3008 * unittests/command-def-selftests.c (nr_duplicates,
3009 nr_invalid_prefixcmd, lists): Make static.
3010 * unittests/observable-selftests.c (test_notification): Make
3011 static.
3012 * unittests/optional/assignment/1.cc (counter): Make static.
3013 * unittests/optional/assignment/2.cc (counter): Make static.
3014 * unittests/optional/assignment/3.cc (counter): Make static.
3015 * unittests/optional/assignment/4.cc (counter): Make static.
3016 * unittests/optional/assignment/5.cc (counter): Make static.
3017 * unittests/optional/assignment/6.cc (counter): Make static.
3018
a6c11cbb
JS
30192021-01-20 Joel Sherrill <joel@rtems.org>
3020
3021 PR gdb/27219
3022 * remote.c (struct remote_thread_info) <resume_state>: Rename
3023 to...
3024 <get_resume_state>: ... this.
3025 (remote_target::resume): Adjust.
3026 (remote_target::commit_resume): Adjust.
3027 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3028
6f52fdf4
SDJ
30292021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3030 Tom Tromey <tom@tromey.com>
3031
3032 * stap-probe.c (stap_parse_single_operand): Handle '!'
3033 operator.
3034 (stap_parse_argument_conditionally): Likewise.
3035 Skip spaces after processing open-parenthesis sub-expression.
3036 (stap_parse_argument_1): Skip spaces after call to
3037 stap_parse_argument_conditionally.
3038 Handle case when right-side expression is a parenthesized
3039 sub-expression.
3040 Skip spaces after call to stap_parse_argument_1.
3041
1c3b85ad
LS
30422021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3043
3044 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3045
a9a87d35
LM
30462021-01-19 Luis Machado <luis.machado@linaro.org>
3047
3048 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3049 memory and save data.
3050 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3051 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3052 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3053 (trad_frame_value_bytes_p): Remove.
3054 (trad_frame_reset_saved_regs): Adjust documentation.
3055 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3056 constructor and reset the state of the registers.
3057 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3058 (trad_frame_value_bytes_p, trad_frame_set_value)
3059 (trad_frame_set_realreg, trad_frame_set_addr)
3060 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3061 (trad_frame_set_reg_realreg): Update to call member function.
3062 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3063 (trad_frame_get_prev_register): Likewise.
3064
3065 * aarch64-tdep.c (aarch64_analyze_prologue)
3066 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3067 (aarch64_prologue_prev_register): Update to use member functions.
3068 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3069 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3070 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3071 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3072 (arm_make_epilogue_frame_cache): Likewise.
3073 * avr-tdep.c (avr_frame_unwind_cache)
3074 (avr_frame_prev_register): Likewise.
3075 * cris-tdep.c (cris_scan_prologue): Likewise.
3076 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3077 * frv-tdep.c (frv_analyze_prologue): Likewise.
3078 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3079 * lm32-tdep.c (lm32_frame_cache): Likewise.
3080 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3081 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3082 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3083 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3084 (reset_saved_regs): Adjust to set realreg.
3085 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3086 call member functions.
3087 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3088 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3089 (s390_backchain_frame_unwind_cache): Likewise.
3090 * score-tdep.c (score7_analyze_prologue)
3091 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3092 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3093 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3094 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3095 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3096 * tilegx-tdep.c (tilegx_analyze_prologue)
3097 (tilegx_frame_cache): Likewise.
3098 * v850-tdep.c (v850_frame_cache): Likewise.
3099 * vax-tdep.c (vax_frame_cache): Likewise.
3100
bdec2917
LM
31012021-01-19 Luis Machado <luis.machado@linaro.org>
3102
3103 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3104 of buffer + length.
3105 (put_frame_register_bytes): Likewise.
3106 Adjust documentation.
3107 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3108 (safe_frame_unwind_memory): Likewise.
3109 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3110 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3111 gdb::array_view.
3112 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3113 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3114 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3115 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3116 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3117 * dwarf2/loc.c (rw_pieced_value): Likewise.
3118 * hppa-tdep.c (hppa_frame_cache): Likewise.
3119 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3120 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3121 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3122 (i386_linux_rt_sigtramp_start): Likewise.
3123 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3124 * i386-tdep.c (i386_register_to_value): Likewise.
3125 * i387-tdep.c (i387_register_to_value): Likewise.
3126 * ia64-tdep.c (ia64_register_to_value): Likewise.
3127 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3128 (m32r_linux_rt_sigtramp_start): Likewise.
3129 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3130 * m68k-tdep.c (m68k_register_to_value): Likewise.
3131 * mips-tdep.c (mips_register_to_value)
3132 (mips_value_to_register): Likewise.
3133 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3134 (ppcfbsd_sigtramp_frame_cache): Likewise.
3135 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3136 (ppcobsd_sigtramp_frame_cache): Likewise.
3137 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3138 (rs6000_register_to_value): Likewise.
3139 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3140 * tramp-frame.c (tramp_frame_start): Likewise.
3141 * valops.c (value_assign): Likewise.
3142
ccbe4c82
LM
31432021-01-19 Luis Machado <luis.machado@linaro.org>
3144
3145 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3146 array_view.
3147 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3148 instead of buffer and size.
3149 (trad_frame_set_reg_value_bytes): Likewise.
3150 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3151 (trad_frame_set_value_bytes): Likewise.
3152
0e7620dc
MF
31532021-01-18 Mike Frysinger <vapier@gentoo.org>
3154
3155 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3156
6a9ad81c
AB
31572021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3158
3159 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3160 (riscv_fbsd_gregset): Use riscv_supply_regset.
3161 (riscv_fbsd_fpregset): Likewise.
3162 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3163 (riscv_linux_fregset): Likewise.
3164 * riscv-tdep.c (riscv_supply_regset): Define new function.
3165 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3166
d3d7d1ba
TV
31672021-01-18 Tom de Vries <tdevries@suse.de>
3168
3169 PR tdep/27172
3170 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3171 New macro.
3172 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3173 for SEGV_BNDERR.
3174
aa2838cc
SM
31752021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3176
3177 * remote.c (class remote_target) <remote_hostio_send_command,
3178 remote_hostio_parse_result>: Constify parameter.
3179 (remote_hostio_parse_result): Likewise.
3180 (remote_target::remote_hostio_send_command): Adjust.
3181 (remote_target::remote_hostio_pread_vFile): Adjust.
3182 (remote_target::fileio_readlink): Adjust.
3183 (remote_target::fileio_fstat): Adjust.
3184
b5c8f22d
SM
31852021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3186
3187 * remote.c (remote_target::start_remote): Move wait_status to
3188 narrower scope.
3189
e3b2741b
SM
31902021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3191
3192 * remote.c (class remote_target):
3193 <add_current_inferior_and_thread>: Constify parameter.
3194 (stop_reply_extract_thread): Likewise.
3195 (remote_target::get_current_thread): Likewise.
3196 (remote_target::add_current_inferior_and_thread): Likewise.
3197
cecb1912
SM
31982021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3199
3200 * remote.c (class remote_target)
3201 <remote_unpack_thread_info_response,
3202 parse_threadlist_response>: Constify parameter and/or return
3203 value and or local variable.
3204 (stub_unpack_int): Likewise.
3205 (unpack_nibble): Likewise.
3206 (unpack_byte): Likewise.
3207 (unpack_int): Likewise.
3208 (unpack_string): Likewise.
3209 (unpack_threadid): Likewise.
3210 (remote_target::remote_unpack_thread_info_response): Likewise.
3211 (remote_target::parse_threadlist_response): Likewise.
3212
5a11fff0
AB
32132021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3214
3215 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3216
17e89137
LS
32172021-01-14 Lancelot Six <lsix@lancelotsix.com>
3218
3219 * MAINTAINERS (Write After Approval): Add myself.
3220
58eadc4b
BE
32212021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3222
3223 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3224 because is_trivially_default_constructible was first implemented with
3225 gcc-5.
3226
5fae2a2c
TV
32272021-01-14 Tom de Vries <tdevries@suse.de>
3228
3229 PR breakpoints/27151
3230 * objfiles.h (in_plt_section): Handle .plt.sec.
3231
8f66807b
AB
32322021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3233
3234 PR gdb/26819
3235 * remote.c
3236 (remote_target::select_thread_for_ambiguous_stop_reply): New
3237 member function.
3238 (remote_target::process_stop_reply): Call
3239 select_thread_for_ambiguous_stop_reply.
3240
bd497355
SM
32412021-01-13 Simon Marchi <simon.marchi@efficios.com>
3242
3243 * record-btrace.c (class record_btrace_target): Remove.
3244 (record_btrace_target::commit_resume): Remove.
3245 * record-full.c (class record_full_target): Remove.
3246 (record_full_target::commit_resume): Remove.
3247
c9d22089
SM
32482021-01-13 Simon Marchi <simon.marchi@efficios.com>
3249
3250 * remote.c (enum class resume_state): New.
3251 (struct resumed_pending_vcont_info): New.
3252 (struct remote_thread_info) <resume_state, set_not_resumed,
3253 set_resumed_pending_vcont, resumed_pending_vcont_info,
3254 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3255 New.
3256 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3257 (remote_target::remote_add_thread): Adjust.
3258 (remote_target::process_initial_stop_replies): Adjust.
3259 (remote_target::resume): Adjust.
3260 (remote_target::commit_resume): Rely on state in
3261 remote_thread_info and not on tp->executing.
3262 (remote_target::process_stop_reply): Adjust.
3263
d8d1feb4
SM
32642021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3265
3266 * arc-tdep.h (arc_debug_printf): New.
3267 * arc-tdep.c: Use arc_debug_printf.
3268 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3269 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3270 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3271
fb0f5031
SM
32722021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3273
3274 * arc-tdep.h (arc_debug): Change type to bool.
3275 * arc-tdep.c (arc_debug): Change type to bool.
3276 (arc_analyze_prologue): Adjust.
3277 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3278 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3279
5bf7e91b
SM
32802021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3281
3282 * auto-load.c (auto_load_objfile_script_1): Use bool.
3283 (execute_script_contents): Use bool.
3284
db972fce
SM
32852021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3286
3287 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3288 comment here.
3289 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3290 comment to header.
3291 * extension-priv.h (struct extension_language_script_ops)
3292 <auto_load_enabled>: Return bool.
3293 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3294 comment here.
3295 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3296 comment to header.
3297 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3298 move comment here.
3299 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3300 move comment to header.
3301 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3302 move comment here.
3303 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3304 move comment to header.
3305
5e12f48f
SM
33062021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3307
3308 * auto-load.h (file_is_auto_load_safe): Change return type to
3309 bool, move comment here.
3310 * auto-load.c (file_is_auto_load_safe): Change return type and
3311 advice_printed to bool. Move comment to header.
3312
54ca9002
SM
33132021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3314
3315 * jit.c (jit_debug_printf): New, use throughout file.
3316
24a7f1b5
SM
33172021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3318
3319 * infrun.c (normal_stop): Fix indentation.
3320
fe7a351a
SM
33212021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3322
3323 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3324 declarations to ...
3325 * symfile.h: ... here.
3326 * symfile.c: Update doc.
3327
16e9019e
SM
33282021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3329
3330 * target.h (baud_rate, serial_parity): Move declarations...
3331 * serial.h: ... here.
3332 * main.c: Include serial.h.
3333 * serial.c (baud_rate, serial_parity): Update doc.
3334
b2f2ae0d
SM
33352021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3336
3337 * top.c (pre_init_ui_hook): Remove.
3338
5291fe3c
SP
33392021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3340
3341 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3342 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3343 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3344 * features/aarch64-fpu.xml: Add bfloat16 type.
3345
ce38f5ed
AB
33462021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3347
3348 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3349
7c654b71
AB
33502021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3351
3352 * f-exp.y (dot_ops): Rename to...
3353 (fortran_operators): ...this. Add a header comment. Add symbol
3354 based operators.
3355 (yylex): Update to use fortran_operators not dot_ops. Remove
3356 special handling for '**', this is now included in
3357 fortran_operators.
3358
c6185dce
SM
33592021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3360
3361 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3362 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3363 * aarch64-tdep.c: Use aarch64_debug_printf.
3364
eef401dc
SM
33652021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3366
3367 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3368 file.
3369
062eaacb
SM
33702021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3371
3372 * jit.c (jit_debug): Change type to bool.
3373 (_initialize_jit): Adjust.
3374
54585eee
TT
33752021-01-09 Tom Tromey <tom@tromey.com>
3376
3377 PR compile/23672
3378 * compile/compile.c (compile_to_object): Avoid crash when
3379 osabi_triplet_regexp returns NULL.
3380
bc167b6b
TT
33812021-01-09 Tom Tromey <tom@tromey.com>
3382
3383 * tracepoint.h (class collection_list) <append_exp>: Take a
3384 std::string.
3385 * tracepoint.c (collection_list::append_exp): Take a std::string.
3386 (encode_actions_1): Update.
3387
8fc48b79
TT
33882021-01-08 Tom Tromey <tromey@adacore.com>
3389
3390 * parse.c (parse_expression): Add void_context_p parameter. Use
3391 parse_exp_in_context.
3392 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3393 parse_expression.
3394 (print_command, call_command): Update.
3395 * expression.h (parse_expression): Add void_context_p parameter.
3396
3c8c6de2
AB
33972021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3398
3399 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3400 for internalvar components that have a dynamic location.
3401
1940319c
TV
34022021-01-08 Tom de Vries <tdevries@suse.de>
3403
3404 PR gdb/26881
3405 * breakpoint.c (create_exception_master_breakpoint_probe)
3406 (create_exception_master_breakpoint_hook): Factor out
3407 of ...
3408 (create_exception_master_breakpoint): ... here. Only try to install
3409 the master exception breakpoint in objfile.debug using the
3410 _Unwind_DebugHook method, if the install using probes in objfile
3411 failed.
3412
e3436813
AB
34132021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3414
3415 * f-lang.c (fortran_value_subarray): Call value_from_component.
3416
e904f56d
MF
34172021-01-07 Mike Frysinger <vapier@gentoo.org>
3418
3419 * remote-sim.c: Include memory-map.h.
3420 (gdbsim_target): Define memory_map override.
3421 (gdbsim_target::memory_map): Define.
3422
959d6a67
TT
34232021-01-07 Tom Tromey <tromey@adacore.com>
3424
3425 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3426
d4813f10
TT
34272021-01-07 Tom Tromey <tromey@adacore.com>
3428
3429 * ada-lang.c (add_component_interval): Start loop using vector's
3430 updated size.
3431
b49180ac
TT
34322021-01-06 Tom Tromey <tromey@adacore.com>
3433
3434 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3435 Do not cast result.
3436 * valarith.c (fixed_point_binop): Handle multiplication
3437 and division specially.
3438 * valops.c (value_to_gdb_mpq): New function.
3439 (value_cast_to_fixed_point): Use it.
3440
55195361
HD
34412021-01-05 Hannes Domani <ssbssa@yahoo.de>
3442
3443 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3444 Call wnoutrefresh instead of tui_win_info::refresh_window.
3445
1b6d4bb2
HD
34462021-01-05 Hannes Domani <ssbssa@yahoo.de>
3447
3448 * tui/tui-source.c (tui_source_window::show_line_number):
3449 Redraw second space after line number.
3450
b5ff370e
HD
34512021-01-05 Hannes Domani <ssbssa@yahoo.de>
3452
3453 PR tui/26927
3454 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3455 Fix source pad size in prefresh.
3456 (tui_source_window_base::show_source_content): Grow source pad
3457 if necessary.
3458
c68ea49f
MF
34592021-01-04 Mike Frysinger <vapier@gentoo.org>
3460
3461 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3462 (bfin_frame_align): Use align_down.
3463
e4ad960a
TV
34642021-01-04 Tom de Vries <tdevries@suse.de>
3465
3466 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3467 terminators that do not terminate anything.
3468
3ec3145c
SM
34692021-01-04 Simon Marchi <simon.marchi@efficios.com>
3470
3471 * debug.c (debug_print_depth): New.
3472 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3473 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3474 * infrun.c (start_step_over): Use
3475 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3476 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3477 INFRUN_SCOPED_DEBUG_START_END.
3478 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3479
e71daf80
SM
34802021-01-04 Simon Marchi <simon.marchi@efficios.com>
3481
3482 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3483
335709bc
SM
34842021-01-04 Simon Marchi <simon.marchi@efficios.com>
3485
3486 * utils.c (vfprintf_unfiltered): Print timestamp only when
3487 previous debug output ended with a newline.
3488
098caef4
LM
34892021-01-04 Luis Machado <luis.machado@linaro.org>
3490
3491 Update all users of trad_frame_saved_reg to use the new member
3492 functions.
3493
3494 Remote all struct keywords from declarations of trad_frame_saved_reg
3495 types, except on forward declarations.
3496
3497 * aarch64-tdep.c: Update.
3498 * alpha-mdebug-tdep.c: Update.
3499 * alpha-tdep.c: Update.
3500 * arc-tdep.c: Update.
3501 * arm-tdep.c: Update.
3502 * avr-tdep.c: Update.
3503 * cris-tdep.c: Update.
3504 * csky-tdep.c: Update.
3505 * frv-tdep.c: Update.
3506 * hppa-linux-tdep.c: Update.
3507 * hppa-tdep.c: Update.
3508 * hppa-tdep.h: Update.
3509 * lm32-tdep.c: Update.
3510 * m32r-linux-tdep.c: Update.
3511 * m32r-tdep.c: Update.
3512 * m68hc11-tdep.c: Update.
3513 * mips-tdep.c: Update.
3514 * moxie-tdep.c: Update.
3515 * riscv-tdep.c: Update.
3516 * rs6000-tdep.c: Update.
3517 * s390-linux-tdep.c: Update.
3518 * s390-tdep.c: Update.
3519 * score-tdep.c: Update.
3520 * sparc-netbsd-tdep.c: Update.
3521 * sparc-sol2-tdep.c: Update.
3522 * sparc64-fbsd-tdep.c: Update.
3523 * sparc64-netbsd-tdep.c: Update.
3524 * sparc64-obsd-tdep.c: Update.
3525 * sparc64-sol2-tdep.c: Update.
3526 * tilegx-tdep.c: Update.
3527 * v850-tdep.c: Update.
3528 * vax-tdep.c: Update.
3529
3530 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3531 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3532
3533 * trad-frame.c: Update.
3534 Remove TF_REG_* enum.
3535 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3536 a trivially-constructible struct.
3537 (trad_frame_reset_saved_regs): Adjust to use member function.
3538 (trad_frame_value_p): Likewise.
3539 (trad_frame_addr_p): Likewise.
3540 (trad_frame_realreg_p): Likewise.
3541 (trad_frame_value_bytes_p): Likewise.
3542 (trad_frame_set_value): Likewise.
3543 (trad_frame_set_realreg): Likewise.
3544 (trad_frame_set_addr): Likewise.
3545 (trad_frame_set_unknown): Likewise.
3546 (trad_frame_set_value_bytes): Likewise.
3547 (trad_frame_get_prev_register): Likewise.
3548 * trad-frame.h: Update.
3549 (trad_frame_saved_reg_kind): New enum.
3550 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3551 <m_kind, m_reg>: New member fields.
3552 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3553 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3554 <is_addr, is_unknown, is_value_bytes>: New member functions.
3555
9898e882
SM
35562021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3557
3558 * target-float.c: Fix typos.
3559
b66b4e65
HD
35602021-01-02 Hannes Domani <ssbssa@yahoo.de>
3561
3562 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3563
b5b5650a
JB
35642021-01-01 Joel Brobecker <brobecker@adacore.com>
3565
3566 * gdbarch.sh: Update copyright year range.
3567
3666a048
JB
35682021-01-01 Joel Brobecker <brobecker@adacore.com>
3569
3570 Update copyright year range in copyright header of all GDB files.
3571
ff7e39b6
JB
35722021-01-01 Joel Brobecker <brobecker@adacore.com>
3573
3574 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3575 to the list of directories to update.
3576
2b47c078
JB
35772021-01-01 Joel Brobecker <brobecker@adacore.com>
3578
3579 * top.c (print_gdb_version): Update copyright year.
3580
476923f1 35812021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 3582
476923f1 3583 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 3584
476923f1 3585For older changes see ChangeLog-2020.
c906108c
SS
3586\f
3587Local Variables:
3588mode: change-log
3589left-margin: 8
3590fill-column: 74
3591version-control: never
57da7796 3592coding: utf-8
c906108c 3593End: