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