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