Use stdout when printing object file names for -t option.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
219f56b4
PA
12021-03-19 Pedro Alves <pedro@palves.net>
2
3 * thread.c (any_thread_of_inferior): Check if there's a selected
4 thread before calling inferior_thread().
5
15310fd4
TT
62021-03-18 Tom Tromey <tromey@adacore.com>
7
8 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
9 get_DW_UT_name.
10 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
11 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
12
763b8efd
AB
132021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
14
15 * python/py-param.c (get_set_value): Update header comment.
16
f058c521
SM
172021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
18
19 * infrun.c (check_multi_target_resumption): Remove argument to
20 all_non_exited_inferiors.
21
383228bc
CB
222021-03-16 Christian Biesinger <cbiesinger@google.com>
23
24 * windows-nat.c (windows_init_thread_list): Add message to
25 debug log.
26
7807d76a
AB
272021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
28
29 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
30 well as PyLong_Check for Python 2.
31
675da9a5
TT
322021-03-15 Tom Tromey <tromey@adacore.com>
33
34 PR build/27579:
35 * rust-exp.y (maker_map): Use gdb::hash_enum.
36 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
37
4800761a
SM
382021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
39
40 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
41 end of debug print.
42
eb5dd737
SM
432021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
44
45 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
46 parameter, adjust caller.
47
6813ceb0
TT
482021-03-15 Tom Tromey <tromey@adacore.com>
49
50 * ada-exp.y (simple_exp): Always push a result for unary '+'.
51
3b5c4de0
TT
522021-03-15 Tom Tromey <tromey@adacore.com>
53
54 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
55 ada_ensure_varsize_limit.
56
c04da66c
TT
572021-03-15 Tom Tromey <tromey@adacore.com>
58
59 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
60 fixed-point.
61 * ada-exp.y (maybe_overload): New function.
62 (ada_wrap_overload): New function.
63 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
64 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
65 (or_else_exp, xor_exp, primary): Update.
66
9863c3b5
TT
672021-03-15 Tom Tromey <tromey@adacore.com>
68
69 PR ada/27545:
70 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
71 call for tagged type.
72
1ac74522
TT
732021-03-15 Tom Tromey <tromey@adacore.com>
74
75 * ada-exp.y (exp1): Handle resolution of the right hand side of an
76 assignment.
77
207582c0
TT
782021-03-15 Tom Tromey <tromey@adacore.com>
79
80 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
81 container.
82 (ada_assign_operation::evaluate): Update.
83 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
84 Change return type.
85
8d624a9d
FW
862021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
87
88 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
89
ba6a0ef3
AB
902021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
91
92 * python/python.c (gdbpy_source_objfile_script): Use
93 make_scoped_restore to restore gdbpy_current_objfile.
94 (gdbpy_execute_objfile_script): Likewise.
95
7c290a04
TT
962021-03-14 Tom Tromey <tom@tromey.com>
97
98 * dwarf2/read.c (read_attribute_value): Use cu_header
99 consistently.
100
0280fdcc
TT
1012021-03-14 Tom Tromey <tom@tromey.com>
102
103 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
104 (peek_die_abbrev): Use reader.abfd.
105
a9f172c6
TT
1062021-03-14 Tom Tromey <tom@tromey.com>
107
108 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
109 m_header_read_in.
110
7c32eebb
TT
1112021-03-13 Tom Tromey <tom@tromey.com>
112
113 * dwarf2/read.c (struct partial_die_info): Update.
114 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
115 (load_partial_dies, partial_die_info::partial_die_info): Update.
116 * dwarf2/abbrev.h (lookup_abbrev): Constify.
117
27012aba
TT
1182021-03-13 Tom Tromey <tom@tromey.com>
119
120 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
121
fece451c
CB
1222021-03-12 Christian Biesinger <cbiesinger@google.com>
123
124 PR threads/27239
125 * cp-support.c: Use scoped_segv_handler_restore.
126 * event-top.c (thread_local_segv_handler): Made static.
127 (scoped_segv_handler_restore::scoped_segv_handler_restore):
128 New function.
129 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
130 function.
131 * event-top.h (class scoped_segv_handler_restore): New class.
132 (thread_local_segv_handler): Removed.
133
7056f312
TT
1342021-03-10 Tom Tromey <tromey@adacore.com>
135
136 * parser-defs.h (parser_state): Change completion to bool.
137 <parse_completion>: Likewise.
138 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
139 (ada_resolve_variable, ada_resolve_function): Update.
140 * ada-lang.c (ada_find_operator_symbol): Change
141 parse_completion to bool.
142 (ada_resolve_funcall, ada_resolve_variable)
143 (ada_resolve_function): Likewise.
144
ccdc02ed
TT
1452021-03-09 Tom Tromey <tromey@adacore.com>
146
147 * eval.c (operation::evaluate_funcall): Use function formal
148 parameter types when evaluating.
149
fbb1aace
AB
1502021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
151
152 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
153 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
154 and owner to m_owner.
155
611aa09d
FW
1562021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
157
158 * f-exp.h (eval_op_f_loc): Declare.
159 (expr::fortran_loc_operation): New typedef.
160 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
161 UNOP_INTRINSIC.
162 (f77_keywords): Add LOC keyword.
163 * f-lang.c (eval_op_f_loc): New function.
164 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
165
eef32f59
AB
1662021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
167
168 * f-exp.h (eval_op_f_array_shape): Declare.
169 (fortran_array_shape_operation): New type.
170 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
171 UNOP_INTRINSIC.
172 (f77_keywords): Add "shape" keyword.
173 * f-lang.c (fortran_array_shape): New function.
174 (eval_op_f_array_shape): New function.
175 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
176
7ba155b3
AB
1772021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
178
179 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
180 of this function.
181 (expr::fortran_array_size_1arg): New type.
182 (expr::fortran_array_size_2arg): Likewise.
183 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
184 UNOP_OR_BINOP_INTRINSIC.
185 (f77_keywords): Add "size" keyword.
186 * f-lang.c (fortran_array_size): New function.
187 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
188 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
189
e14816a8
AB
1902021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
191
192 * f-exp.h (eval_op_f_rank): Declare.
193 (expr::fortran_rank_operation): New typedef.
194 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
195 UNOP_INTRINSIC.
196 (f77_keywords): Add "rank" keyword.
197 * f-lang.c (eval_op_f_rank): New function.
198 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
199
3dd93bf8
TT
2002021-03-08 Tom Tromey <tom@tromey.com>
201
202 * printcmd.c (set_command): Remove null check.
203 * value.c (init_if_undefined_command): Remove null check.
204
9c79936b
TT
2052021-03-08 Tom Tromey <tom@tromey.com>
206
207 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
208 Update.
209 * p-exp.y (variable): Update.
210 * go-exp.y (variable): Update.
211 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
212 Remove overload for objfile.
213 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
214 parameter.
215 (check_objfile): Likewise.
216 (dump_for_expression): Likewise. Remove overload for objfile.
217 (class var_msym_value_operation): Use bound_minimal_symbol.
218 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
219 parameter.
220 (var_msym_value_operation::evaluate_for_address)
221 (var_msym_value_operation::evaluate_for_sizeof)
222 (var_msym_value_operation::evaluate_for_cast): Update.
223 * d-exp.y (PrimaryExpression): Update.
224 * c-exp.y (variable): Update.
225 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
226 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
227 Update.
228 * ada-exp.y (write_var_or_type): Update.
229
40d07d07
TT
2302021-03-08 Tom Tromey <tom@tromey.com>
231
232 * parser-defs.h (exp_uses_objfile): Return bool.
233 * parse.c (exp_uses_objfile): Return bool.
234
0b2b0b82
TT
2352021-03-08 Tom Tromey <tom@tromey.com>
236
237 * value.h (eval_skip_value): Don't declare.
238 * opencl-lang.c (eval_opencl_assign): Update.
239 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
240 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
241 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
242 * expression.h (enum noside) <EVAL_SKIP>: Remove.
243 * expop.h (typeof_operation::evaluate)
244 (decltype_operation::evaluate, unop_addr_operation::evaluate)
245 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
246 (cxx_cast_operation::evaluate): Update.
247 * eval.c (eval_skip_value): Remove.
248 (eval_op_scope, eval_op_var_entry_value)
249 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
250 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
251 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
252 (eval_op_binary, eval_op_subscript, eval_op_equal)
253 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
254 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
255 (eval_op_complement, eval_op_lognot, eval_op_ind)
256 (eval_op_memval, eval_op_preinc, eval_op_predec)
257 (eval_op_postinc, eval_op_postdec, eval_op_type)
258 (eval_binop_assign_modify, eval_op_objc_msgcall)
259 (eval_multi_subscript, logical_and_operation::evaluate)
260 (logical_or_operation::evaluate, array_operation::evaluate)
261 (operation::evaluate_for_cast)
262 (var_msym_value_operation::evaluate_for_cast)
263 (var_value_operation::evaluate_for_cast): Update.
264 * c-lang.c (c_string_operation::evaluate): Update.
265 * c-exp.h (objc_nsstring_operation::evaluate)
266 (objc_selector_operation::evaluate): Update.
267 * ada-lang.c (ada_assign_operation::evaluate)
268 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
269 (ada_atr_size): Update.
270
96db551d
TT
2712021-03-08 Tom Tromey <tom@tromey.com>
272
273 * eval.c: Merge "namespace" scopes.
274
ce284361
TT
2752021-03-08 Tom Tromey <tom@tromey.com>
276
277 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
278 <release>: Inline.
279 * parse.c (expr_builder::expr_builder, expr_builder::release):
280 Remove.
281
b9d06571
TT
2822021-03-08 Tom Tromey <tom@tromey.com>
283
284 * parse.c (expression::expression, expression::~expression):
285 Remove.
286 * expression.h (struct expression): Inline constructor. Remove
287 destructor.
288
79ab486e
TT
2892021-03-08 Tom Tromey <tom@tromey.com>
290
291 * std-operator.def (BINOP_END): Remove.
292 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
293 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
294 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
295 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
296 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
297 BINOP_END.
298
48fa6f23
TT
2992021-03-08 Tom Tromey <tom@tromey.com>
300
301 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
302
43f542e3
TT
3032021-03-08 Tom Tromey <tom@tromey.com>
304
305 * std-operator.def (OP_EXTENDED0): Remove.
306
5d9ba982
TT
3072021-03-08 Tom Tromey <tom@tromey.com>
308
309 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
310 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
311 Remove.
312
d357570d
TT
3132021-03-08 Tom Tromey <tom@tromey.com>
314
315 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
316 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
317
0922dc84
TT
3182021-03-08 Tom Tromey <tom@tromey.com>
319
320 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
321 * ada-lang.c (ada_binop_minmax): Update.
322 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
323 Use BINOP_MIN and BINOP_MAX.
324
1eaebe02
TT
3252021-03-08 Tom Tromey <tom@tromey.com>
326
327 * value.h (evaluate_subexp_with_coercion): Don't declare.
328 * parse.c (exp_descriptor_standard): Remove.
329 (expr_builder::expr_builder, expr_builder::release): Update.
330 (expression::expression): Remove size_t parameter.
331 (expression::~expression): Simplify.
332 (expression::resize): Remove.
333 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
334 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
335 (write_exp_elt_longcst, write_exp_elt_floatcst)
336 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
337 (write_exp_string_vector, write_exp_bitstring): Remove.
338 * p-lang.h (class pascal_language) <opcode_print_table,
339 op_print_tab>: Remove.
340 * p-lang.c (pascal_language::op_print_tab): Remove.
341 * opencl-lang.c (class opencl_language) <opcode_print_table>:
342 Remove.
343 * objc-lang.c (objc_op_print_tab): Remove.
344 (class objc_language) <opcode_print_table>: Remove.
345 * m2-lang.h (class m2_language) <opcode_print_table,
346 op_print_tab>: Remove.
347 * m2-lang.c (m2_language::op_print_tab): Remove.
348 * language.h (struct language_defn) <post_parser, expression_ops,
349 opcode_print_table>: Remove.
350 * language.c (language_defn::expression_ops)
351 (auto_or_unknown_language::opcode_print_table): Remove.
352 * go-lang.h (class go_language) <opcode_print_table,
353 op_print_tab>: Remove.
354 * go-lang.c (go_language::op_print_tab): Remove.
355 * f-lang.h (class f_language) <opcode_print_table>: Remove
356 <op_print_tab>: Remove.
357 * f-lang.c (f_language::op_print_tab): Remove.
358 * expression.h (union exp_element): Remove.
359 (struct expression): Remove size_t parameter from constructor.
360 <resize>: Remove.
361 <first_opcode>: Update.
362 <nelts, elts>: Remove.
363 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
364 (evaluate_subexp_standard, print_expression, op_string)
365 (dump_raw_expression): Don't declare.
366 * expprint.c (print_expression, print_subexp)
367 (print_subexp_funcall, print_subexp_standard, op_string)
368 (dump_raw_expression, dump_subexp, dump_subexp_body)
369 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
370 (dump_prefix_expression): Update.
371 * eval.c (evaluate_subexp): Remove.
372 (evaluate_expression, evaluate_type): Update.
373 (evaluate_subexpression_type): Remove.
374 (fetch_subexp_value): Remove "pc" parameter. Update.
375 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
376 (evaluate_subexp_standard, evaluate_subexp_for_address)
377 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
378 (evaluate_subexp_for_cast): Remove.
379 (parse_and_eval_type): Update.
380 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
381 * d-lang.c (d_op_print_tab): Remove.
382 (class d_language) <opcode_print_table>: Remove.
383 * c-lang.h (c_op_print_tab): Don't declare.
384 * c-lang.c (c_op_print_tab): Remove.
385 (class c_language, class cplus_language, class asm_language, class
386 minimal_language) <opcode_print_table>: Remove.
387 * breakpoint.c (update_watchpoint, watchpoint_check)
388 (watchpoint_exp_is_const, watch_command_1): Update.
389 * ax-gdb.h (union exp_element): Don't declare.
390 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
391 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
392 (gen_expr_binop_rest): Remove.
393 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
394 * ada-lang.c (ada_op_print_tab): Remove.
395 (class ada_language) <post_parser, opcode_print_table>: Remove.
396
f2a98603
TT
3972021-03-08 Tom Tromey <tom@tromey.com>
398
399 * go-lang.c (go_language::expression_ops): Don't declare.
400 * go-lang.h (class go_language) <expression_ops>: Remove.
401 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
402 Remove.
403 (class opencl_language) <expression_ops>: Remove.
404 * d-lang.c (class d_language) <expression_ops>: Remove.
405 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
406 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
407 (class c_language, class cplus_language, class asm_language)
408 (class minimal_language) <expression_ops>: Remove.
409
d3c54a1c
TT
4102021-03-08 Tom Tromey <tom@tromey.com>
411
412 * ada-lang.c (resolve_subexp, replace_operator_with_call)
413 (evaluate_subexp_type, assign_aggregate)
414 (aggregate_assign_positional, aggregate_assign_from_choices)
415 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
416 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
417 (ada_operator_check, ada_forward_operator_length)
418 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
419 Remove.
420 (post_parser): Update.
421 (class ada_language) <expresssion_ops>: Remove.
422
5871f0a3
TT
4232021-03-08 Tom Tromey <tom@tromey.com>
424
425 * m2-lang.h (class m2_language) <expresssion_ops,
426 exp_descriptor_modula2>: Remove.
427 * m2-lang.c (evaluate_subexp_modula2)
428 (m2_language::exp_descriptor_modula2): Remove.
429
a99be8c1
TT
4302021-03-08 Tom Tromey <tom@tromey.com>
431
432 * f-lang.h (class f_language) <expresssion_ops>: Remove.
433 <exp_descriptor_tab>: Remove.
434 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
435 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
436 (print_subexp_f, dump_subexp_body_f, operator_check_f)
437 (f_language::exp_descriptor_tab, fortran_prepare_argument):
438 Remove.
439
aa1da9ed
TT
4402021-03-08 Tom Tromey <tom@tromey.com>
441
442 * rust-lang.h (class rust_language) <expression_ops,
443 exp_descriptor_tab>: Remove.
444 * rust-lang.c (rust_evaluate_funcall): Remove.
445 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
446 EVAL_SKIP.
447 (rust_evaluate_subexp): Remove.
448 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
449 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
450 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
451
08a057e6
TT
4522021-03-08 Tom Tromey <tom@tromey.com>
453
454 * ada-exp.y: Create operations.
455 (empty_stoken): Remove.
456 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
457 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
458 (components): New global.
459 (push_component, choice_component, pop_component, pop_components):
460 New functions.
461 (associations): New global
462 (push_association, pop_association, pop_associations): New
463 functions.
464 (ada_parse): Update.
465 (write_var_from_sym, write_int): Create operations.
466 (write_exp_op_with_string): Remove.
467 (write_object_renaming, write_selectors, write_ambiguous_var)
468 (write_var_or_type, write_name_assoc): Create operations.
469 * ada-lang.h (ada_index_type): Declare.
470 * ada-lang.c (ada_index_type): No longer static.
471
d308ba78
TT
4722021-03-08 Tom Tromey <tom@tromey.com>
473
474 * f-exp.y: Create operations.
475 (f_language::parser): Update.
476
f1b8ceef
TT
4772021-03-08 Tom Tromey <tom@tromey.com>
478
479 * m2-exp.y: Create operations.
480 (m2_language::parser): Update.
481
3163898e
TT
4822021-03-08 Tom Tromey <tom@tromey.com>
483
484 * p-exp.y: Create operations.
485 (pascal_language::parser): Update.
486
9412fdcc
TT
4872021-03-08 Tom Tromey <tom@tromey.com>
488
489 * d-exp.y: Create operations.
490 (d_parse): Update.
491
bb4e0574
TT
4922021-03-08 Tom Tromey <tom@tromey.com>
493
494 * go-exp.y: Create operations.
495 (go_language::parser): Update.
496
d182f279
TT
4972021-03-08 Tom Tromey <tom@tromey.com>
498
499 * objc-lang.c (end_msglist): Create operations.
500 * c-exp.y: Change parser to create operations.
501 (write_destructor_name): Remove.
502 (c_parse): Update.
503
c1299a23
TT
5042021-03-08 Tom Tromey <tom@tromey.com>
505
506 * rust-exp.y: Create operations.
507 (rust_parser::convert_params_to_expression): Change return type.
508 (binop_maker_ftype): New typedef.
509 (maker_map): New global.
510 (rust_parser::convert_ast_to_expression): Change return type.
511 (rust_language::parser): Update.
512 (_initialize_rust_exp): Initialize maker_map.
513
4c5e7a93
TT
5142021-03-08 Tom Tromey <tom@tromey.com>
515
516 * stap-probe.c (binop_maker_ftype): New typedef.
517 (stap_maker_map): New global.
518 (stap_make_binop): New function.
519 (stap_parse_register_operand): Return operation_up.
520 (stap_parse_single_operand, stap_parse_argument_conditionally)
521 (stap_parse_argument_1): Likewise.
522 (stap_parse_argument): Create operations.
523 (stap_probe::parse_arguments): Update.
524 (_initialize_stap_probe): Initialize stap_maker_map.
525 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
526 type.
527 * i386-tdep.h (i386_stap_parse_special_token): Change return
528 type.
529 * i386-tdep.c (i386_stap_parse_special_token_triplet)
530 (i386_stap_parse_special_token_three_arg_disp)
531 (i386_stap_parse_special_token): Change return type.
532 * gdbarch.sh (stap_parse_special_token): Change return type.
533 * gdbarch.c: Rebuild.
534 * gdbarch.h: Rebuild.
535 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
536 type.
537 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
538 return type.
539
482ddd69
TT
5402021-03-08 Tom Tromey <tom@tromey.com>
541
542 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
543 * gdbarch.h: Rebuild.
544 * gdbarch.c: Rebuild.
545 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
546 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
547 return type.
548 (amd64_dtrace_parse_probe_argument): Update.
549
8227d9e2
TT
5502021-03-08 Tom Tromey <tom@tromey.com>
551
552 * parser-defs.h (struct parser_state) <push, push_new,
553 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
554 wrap2>: New methods.
555 <m_operations>: New member.
556 * parse.c (parser_state::push_c_string)
557 (parser_state::push_symbol, parser_state::push_dollar): New
558 methods.
559
4933522d
TT
5602021-03-08 Tom Tromey <tom@tromey.com>
561
562 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
563 New member.
564 (struct parser_state) <mark_struct_expression>: New method.
565 * parse.c (parser_state::mark_struct_expression): Update assert.
566 (parser_state::mark_struct_expression): New method.
567 (parser_state::mark_completion_tag): Update assert.
568 (parse_expression_for_completion): Handle expout_last_op.
569
413403fc
TT
5702021-03-08 Tom Tromey <tom@tromey.com>
571
572 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
573 now in superclass.
574 * value.h (fetch_subexp_value): Add "op" parameter.
575 * value.c (init_if_undefined_command): Update.
576 * tracepoint.c (validate_actionline, encode_actions_1): Update.
577 * stap-probe.c (stap_probe::compile_to_ax): Update.
578 * printcmd.c (set_command): Update.
579 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
580 Update.
581 * parser-defs.h (struct expr_builder) <set_operation>: New
582 method.
583 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
584 * expression.h (struct expression) <first_opcode>: Update.
585 <op>: New member.
586 * expprint.c (dump_raw_expression, dump_prefix_expression):
587 Update.
588 * expop.h (class var_value_operation) <get_symbol>: New method.
589 (class register_operation) <get_name>: New method.
590 (class equal_operation): No longer a typedef, now a subclass.
591 (class unop_memval_operation) <get_type>: New method.
592 (class assign_operation) <get_lhs>: New method.
593 (class unop_cast_operation) <get_type>: New method.
594 * eval.c (evaluate_expression, evaluate_type)
595 (evaluate_subexpression_type): Update.
596 (fetch_subexp_value): Add "op" parameter.
597 (parse_and_eval_type): Update.
598 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
599 * breakpoint.c (update_watchpoint, watchpoint_check)
600 (watchpoint_exp_is_const, watch_command_1): Update.
601 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
602 Update.
603
b0f9164c
TT
6042021-03-08 Tom Tromey <tom@tromey.com>
605
606 * ada-lang.c (ada_value_binop): Do not use op_string.
607
a88c4354
TT
6082021-03-08 Tom Tromey <tom@tromey.com>
609
610 * expprint.c (dump_for_expression): New overload.
611 * expop.h (check_objfile, dump_for_expression): Declare new
612 overloads.
613 * ada-lang.c (check_objfile): New overload.
614 (assign_component, ada_aggregate_component::uses_objfile)
615 (ada_aggregate_component::dump, ada_aggregate_component::assign)
616 (ada_aggregate_component::assign_aggregate)
617 (ada_positional_component::uses_objfile)
618 (ada_positional_component::dump, ada_positional_component::assign)
619 (ada_discrete_range_association::uses_objfile)
620 (ada_discrete_range_association::dump)
621 (ada_discrete_range_association::assign)
622 (ada_name_association::uses_objfile, ada_name_association::dump)
623 (ada_name_association::assign)
624 (ada_choices_component::uses_objfile, ada_choices_component::dump)
625 (ada_choices_component::assign)
626 (ada_others_component::uses_objfile, ada_others_component::dump)
627 (ada_others_component::assign, ada_assign_operation::evaluate):
628 New methods.
629 * ada-exp.h (ada_string_operation) <get_name>: New method.
630 (class ada_assign_operation): New.
631 (class ada_component): New.
632 (ada_component_up): New typedef.
633 (class ada_aggregate_operation, class ada_aggregate_component)
634 (class ada_positional_component, class ada_others_component)
635 (class ada_association): New.
636 (ada_association_up): New typedef.
637 (class ada_choices_component)
638 (class ada_discrete_range_association)
639 (class ada_name_association): New.
640
d8a4ed8a
TT
6412021-03-08 Tom Tromey <tom@tromey.com>
642
643 * ada-lang.c (ada_var_value_operation::resolve)
644 (ada_funcall_operation::resolve)
645 (ada_ternop_slice_operation::resolve): New methods.
646 * ada-exp.h (struct ada_resolvable): New.
647 (class ada_var_value_operation): Derive from ada_resolvable.
648 <get_block, resolve>: New methods.
649 (class ada_funcall_operation): Derive from ada_resolvable.
650 <resolve>: New method.
651 (class ada_ternop_slice_operation): Derive from ada_resolvable.
652 <resolve>: New method.
653
efe3af2f
TT
6542021-03-08 Tom Tromey <tom@tromey.com>
655
656 * ada-lang.c (ada_funcall_operation::evaluate): New method.
657 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
658 method.
659 (class ada_funcall_operation): New.
660
ebc06ad8
TT
6612021-03-08 Tom Tromey <tom@tromey.com>
662
663 * ada-lang.c (ada_structop_operation::evaluate): New method.
664 * ada-exp.h (class ada_structop_operation): New.
665
e8c33fa1
TT
6662021-03-08 Tom Tromey <tom@tromey.com>
667
668 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
669 * ada-exp.h (class ada_unop_ind_operation): New.
670
065ec826
TT
6712021-03-08 Tom Tromey <tom@tromey.com>
672
673 * ada-lang.c (ada_binop_exp): No longer static.
674 * ada-exp.h (ada_binop_exp_operation): New typedef.
675
9e99f48f
TT
6762021-03-08 Tom Tromey <tom@tromey.com>
677
678 * ada-lang.c (ada_val_atr): No longer static.
679 (ada_atr_val_operation::evaluate): New method.
680 * ada-exp.h (class ada_atr_val_operation): New.
681
7631cf6c
TT
6822021-03-08 Tom Tromey <tom@tromey.com>
683
684 * ada-lang.c (ada_pos_atr): No longer static.
685 * ada-exp.h (ada_pos_operation): New typedef.
686
7992accc
TT
6872021-03-08 Tom Tromey <tom@tromey.com>
688
689 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
690 parameters.
691 (ada_evaluate_subexp): Use it.
692
6ad3b8bf
TT
6932021-03-08 Tom Tromey <tom@tromey.com>
694
695 * ada-lang.c (ada_binop_minmax): No longer static.
696 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
697 New typedefs.
698
3f4a0053
TT
6992021-03-08 Tom Tromey <tom@tromey.com>
700
701 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
702 New method.
703 * ada-exp.h (class ada_var_msym_value_operation): New.
704
99a3b1e7
TT
7052021-03-08 Tom Tromey <tom@tromey.com>
706
707 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
708 (ada_var_value_operation::evaluate): New methods.
709 * ada-exp.h (class ada_var_value_operation): New.
710
60fa02ca
TT
7112021-03-08 Tom Tromey <tom@tromey.com>
712
713 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
714 * ada-exp.h (class ada_unop_atr_operation): New.
715
82c3886e
TT
7162021-03-08 Tom Tromey <tom@tromey.com>
717
718 * ada-lang.c (ada_binop_in_bounds): No longer static.
719 * ada-exp.h (class ada_binop_in_bounds_operation): New.
720
1b1ebfab
TT
7212021-03-08 Tom Tromey <tom@tromey.com>
722
723 * ada-lang.c (ada_ternop_slice): No longer static.
724 * ada-exp.h (class ada_ternop_slice_operation): New.
725
039e4b76
TT
7262021-03-08 Tom Tromey <tom@tromey.com>
727
728 * ada-exp.h (ada_bitwise_operation): New template class.
729 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
730 (ada_bitwise_xor_operation): New typedefs.
731
6e8fb7b7
TT
7322021-03-08 Tom Tromey <tom@tromey.com>
733
734 * ada-lang.c (ada_equal_binop): No longer static.
735 * ada-exp.h (class ada_binop_equal_operation): New.
736
d9e7db06
TT
7372021-03-08 Tom Tromey <tom@tromey.com>
738
739 * ada-lang.c (ada_mult_binop): No longer static.
740 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
741 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
742
73796c73
TT
7432021-03-08 Tom Tromey <tom@tromey.com>
744
745 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
746 * ada-exp.h (class ada_binop_addsub_operation): New.
747
cd9a3148
TT
7482021-03-08 Tom Tromey <tom@tromey.com>
749
750 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
751 (ada_resolve_variable): Declare.
752 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
753 (ada_resolve_variable): New functions.
754 (resolve_subexp): Update.
755
cf12b17f
TT
7562021-03-08 Tom Tromey <tom@tromey.com>
757
758 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
759 method.
760 * c-exp.h (class opencl_ternop_cond_operation): New.
761
944fd3b8
TT
7622021-03-08 Tom Tromey <tom@tromey.com>
763
764 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
765 method.
766 * c-exp.h (class opencl_logical_binop_operation): New.
767
33b79214
TT
7682021-03-08 Tom Tromey <tom@tromey.com>
769
770 * opencl-lang.c (opencl_structop_operation::evaluate): New
771 method.
772 * c-exp.h (class opencl_structop_operation): New.
773
2492ba36
TT
7742021-03-08 Tom Tromey <tom@tromey.com>
775
776 * opencl-lang.c (opencl_logical_not): No longer static. Change
777 parameters.
778 (evaluate_subexp_opencl): Update.
779 * c-exp.h (opencl_notequal_operation): New typedef.
780
a88c3c8d
TT
7812021-03-08 Tom Tromey <tom@tromey.com>
782
783 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
784 static. Change parameters.
785 (eval_opencl_assign): No longer static. Add "op" parameter.
786 (evaluate_subexp_opencl): Update.
787 * c-exp.h (opencl_binop_operation): New template class.
788 (opencl_assign_operation, opencl_equal_operation)
789 (opencl_notequal_operation, opencl_less_operation)
790 (opencl_gtr_operation, opencl_geq_operation)
791 (opencl_leq_operation): New typedefs.
792
e9677704
TT
7932021-03-08 Tom Tromey <tom@tromey.com>
794
795 * opencl-lang.c (opencl_value_cast): No longer static.
796 * c-exp.h (opencl_cast_type_operation): New typedef.
797
f403a4e4
TT
7982021-03-08 Tom Tromey <tom@tromey.com>
799
800 * f-exp.h (eval_op_f_allocated): Declare.
801 (fortran_allocated_operation): New typedef.
802 * f-lang.c (eval_op_f_allocated): No longer static.
803
eb4c9271
TT
8042021-03-08 Tom Tromey <tom@tromey.com>
805
806 * f-lang.c (eval_op_f_associated): New functions.
807 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
808 typedefs.
809
58a76c72
TT
8102021-03-08 Tom Tromey <tom@tromey.com>
811
812 * f-lang.c (fortran_bound_1arg::evaluate)
813 (fortran_bound_2arg::evaluate): New methods.
814 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
815 New.
816
2f98abe1
TT
8172021-03-08 Tom Tromey <tom@tromey.com>
818
819 * expop.h (class unop_addr_operation) <get_expression>: New
820 method.
821 * f-lang.c (fortran_undetermined::value_subarray)
822 (fortran_undetermined::evaluate): New methods.
823 (fortran_prepare_argument): New overload.
824 * f-exp.h (class fortran_range_operation)
825 (class fortran_undetermined): New classes.
826
638fd74a
TT
8272021-03-08 Tom Tromey <tom@tromey.com>
828
829 * rust-lang.c (rust_structop::evaluate_funcall): New method.
830 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
831 method.
832
a00b7254
TT
8332021-03-08 Tom Tromey <tom@tromey.com>
834
835 * expression.h (class operation) <evaluate_funcall>: New methods.
836 * expop.h (class scope_operation) <evaluate_funcall>: New method.
837 (class var_value_operation) <evaluate_funcall>: New method.
838 (class structop_base_operation) <evaluate_funcall>: New method.
839 (class var_msym_value_operation) <evaluate_funcall>: New method.
840 (class structop_member_base): New class.
841 (class structop_member_operation): Derive from
842 structop_member_base.
843 (class structop_mptr_operation): Derive from
844 structop_member_base.
845 (class funcall_operation): New class.
846 * eval.c (operation::evaluate_funcall)
847 (var_value_operation::evaluate_funcall)
848 (scope_operation::evaluate_funcall)
849 (structop_member_base::evaluate_funcall)
850 (structop_base_operation::evaluate_funcall): New methods.
851
1c02eb30
TT
8522021-03-08 Tom Tromey <tom@tromey.com>
853
854 * expop.h (class array_operation): New.
855 * eval.c (array_operation::evaluate_struct_tuple)
856 (array_operation::evaluate): New methods.
857
e4479080
TT
8582021-03-08 Tom Tromey <tom@tromey.com>
859
860 * expop.h (class adl_func_operation): New.
861 * eval.c (adl_func_operation::evaluate): New method.
862
95d49dfb
TT
8632021-03-08 Tom Tromey <tom@tromey.com>
864
865 * ada-lang.c (ada_unop_in_range): No longer static.
866 * ada-exp.h (class ada_unop_range_operation): New.
867
7c15d377
TT
8682021-03-08 Tom Tromey <tom@tromey.com>
869
870 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
871 No longer static.
872 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
873 (ada_atr_size_operation, ada_abs_operation): New typedefs.
874
5019124b
TT
8752021-03-08 Tom Tromey <tom@tromey.com>
876
877 * expop.h (class logical_and_operation)
878 (class logical_or_operation): New.
879 * eval.c (logical_and_operation::evaluate)
880 (logical_or_operation::evaluate): New methods.
881 * ax-gdb.c (logical_and_operation::do_generate_ax)
882 (logical_or_operation::do_generate_ax): New methods.
883
2bc9b40c
TT
8842021-03-08 Tom Tromey <tom@tromey.com>
885
886 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
887 static.
888 * m2-exp.h: New file.
889
5947d337
TT
8902021-03-08 Tom Tromey <tom@tromey.com>
891
892 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
893 * rust-exp.h (class rust_aggregate_operation): New.
894
e4407a20
TT
8952021-03-08 Tom Tromey <tom@tromey.com>
896
897 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
898 No longer static.
899 * rust-exp.h (class rust_struct_anon): New.
900 (class rust_structop): New.
901
9db6b6dd
TT
9022021-03-08 Tom Tromey <tom@tromey.com>
903
904 * rust-lang.c (rust_range): No longer static.
905 * rust-exp.h (class rust_range_operation): New.
906
6ce1ad67
TT
9072021-03-08 Tom Tromey <tom@tromey.com>
908
909 * rust-lang.c (rust_subscript): No longer static.
910 * rust-exp.h (class rust_subscript_operation): New.
911
11dd3dce
TT
9122021-03-08 Tom Tromey <tom@tromey.com>
913
914 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
915 parameter.
916 (rust_evaluate_subexp): Update.
917 * rust-exp.h (class rust_unop_ind_operation): New.
918
6fab4359
TT
9192021-03-08 Tom Tromey <tom@tromey.com>
920
921 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
922 longer static. Add "opcode" parameter.
923 (rust_evaluate_subexp): Update.
924 * rust-exp.h: New file.
925
9dcd3e29
TT
9262021-03-08 Tom Tromey <tom@tromey.com>
927
928 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
929 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
930 (eval_op_f_kind): No longer static. Add "opcode" parameter.
931 (evaluate_subexp_f): Update.
932 * f-exp.h: New file.
933
fc715eb2
TT
9342021-03-08 Tom Tromey <tom@tromey.com>
935
936 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
937 * ada-exp.h (class ada_ternop_range_operation): New.
938
cc6bd32e
TT
9392021-03-08 Tom Tromey <tom@tromey.com>
940
941 * ada-lang.c (ada_qual_operation::evaluate): New method.
942 * ada-exp.h (class ada_qual_operation): New.
943
42fecb61
TT
9442021-03-08 Tom Tromey <tom@tromey.com>
945
946 * ada-lang.c (ada_string_operation::evaluate): New method.
947 * ada-exp.h (class ada_string_operation): New.
948
03070ee9
TT
9492021-03-08 Tom Tromey <tom@tromey.com>
950
951 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
952 * ada-exp.h: New file.
953
821e72d7
TT
9542021-03-08 Tom Tromey <tom@tromey.com>
955
956 * expop.h (class multi_subscript_operation): New.
957 * eval.c (multi_subscript_operation::evaluate): New method.
958
085734dd
TT
9592021-03-08 Tom Tromey <tom@tromey.com>
960
961 * eval.c (objc_msgcall_operation::evaluate): New method.
962 * c-exp.h (class objc_msgcall_operation): New.
963
e82a5afc
TT
9642021-03-08 Tom Tromey <tom@tromey.com>
965
966 * expop.h (class var_value_operation): New.
967 * eval.c (var_value_operation::evaluate)
968 (var_value_operation::evaluate_for_address)
969 (var_value_operation::evaluate_with_coercion)
970 (var_value_operation::evaluate_for_sizeof)
971 (var_value_operation::evaluate_for_cast): New methods.
972 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
973
d9ad79d8
TT
9742021-03-08 Tom Tromey <tom@tromey.com>
975
976 * expop.h (cxx_cast_ftype): New typedef.
977 (cxx_cast_operation): New template.
978 (dynamic_cast_operation, reinterpret_cast_operation): New
979 typedefs.
980
292382f4
TT
9812021-03-08 Tom Tromey <tom@tromey.com>
982
983 * expop.h (class unop_cast_type_operation): New.
984 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
985 method.
986
165a813a
TT
9872021-03-08 Tom Tromey <tom@tromey.com>
988
989 * expop.h (class unop_cast_operation): New.
990 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
991
e5946e16
TT
9922021-03-08 Tom Tromey <tom@tromey.com>
993
994 * expop.h (class assign_modify_operation): New.
995 * eval.c (eval_binop_assign_modify): No longer static.
996 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
997
40786782
TT
9982021-03-08 Tom Tromey <tom@tromey.com>
999
1000 * expop.h (class assign_operation): New.
1001 * ax-gdb.c (assign_operation::do_generate_ax): New method.
1002
44b675c8
TT
10032021-03-08 Tom Tromey <tom@tromey.com>
1004
1005 * expop.h (class type_instance_operation): New.
1006 * eval.c (type_instance_operation::evaluate): New method.
1007
f6b42326
TT
10082021-03-08 Tom Tromey <tom@tromey.com>
1009
1010 * expop.h (class op_this_operation): New.
1011 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
1012
cbc18219
TT
10132021-03-08 Tom Tromey <tom@tromey.com>
1014
1015 * expop.h (class unop_memval_operation)
1016 (class unop_memval_type_operation): New.
1017 * eval.c (eval_op_memval): No longer static.
1018 (unop_memval_operation::evaluate_for_address)
1019 (unop_memval_type_operation::evaluate_for_address)
1020 (unop_memval_operation::evaluate_for_sizeof)
1021 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
1022 * ax-gdb.c (unop_memval_operation::do_generate_ax)
1023 (unop_memval_type_operation::do_generate_ax): New methods.
1024
ae4bb61e
TT
10252021-03-08 Tom Tromey <tom@tromey.com>
1026
1027 * expop.h (class unop_alignof_operation): New.
1028 * eval.c (eval_op_alignof): No longer static.
1029
85d23bda
TT
10302021-03-08 Tom Tromey <tom@tromey.com>
1031
1032 * expop.h (class unop_sizeof_operation): New.
1033 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1034
14aff815
TT
10352021-03-08 Tom Tromey <tom@tromey.com>
1036
1037 * expop.h (class unop_addr_operation): New.
1038 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1039
929f3aa7
TT
10402021-03-08 Tom Tromey <tom@tromey.com>
1041
1042 * expop.h (class typeid_operation): New.
1043
0af8829e
TT
10442021-03-08 Tom Tromey <tom@tromey.com>
1045
1046 * expop.h (class decltype_operation): New.
1047
4efc574c
TT
10482021-03-08 Tom Tromey <tom@tromey.com>
1049
1050 * expop.h (class typeof_operation): New.
1051
5b5f5140
TT
10522021-03-08 Tom Tromey <tom@tromey.com>
1053
1054 * expop.h (class type_operation): New.
1055 * eval.c (eval_op_type): No longer static.
1056
876469ff
TT
10572021-03-08 Tom Tromey <tom@tromey.com>
1058
1059 * expop.h (class unop_ind_base_operation)
1060 (class unop_ind_operation): New.
1061 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1062 (unop_ind_base_operation::evaluate_for_address)
1063 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1064 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1065
6d89e296
TT
10662021-03-08 Tom Tromey <tom@tromey.com>
1067
1068 * expop.h (unop_incr_operation): New template.
1069 (preinc_operation, predec_operation, postinc_operation)
1070 (postdec_operation): New typedefs.
1071 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1072 (eval_op_postdec): No longer static.
1073
9307d17b
TT
10742021-03-08 Tom Tromey <tom@tromey.com>
1075
1076 * expop.h (unary_ftype): New typedef.
1077 (unop_operation, usual_ax_binop_operation): New templates.
1078 (unary_plus_operation, unary_neg_operation)
1079 (unary_complement_operation, unary_logical_not_operation): New
1080 typedefs.
1081 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1082 (eval_op_lognot): No longer static.
1083 * ax-gdb.c (gen_expr_unop): New function.
1084
ae64ba58
TT
10852021-03-08 Tom Tromey <tom@tromey.com>
1086
1087 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1088
d4eff4c1
TT
10892021-03-08 Tom Tromey <tom@tromey.com>
1090
1091 * expop.h (class repeat_operation): New.
1092 * eval.c (eval_op_repeat): No longer static. Remove "op"
1093 parameter.
1094 (evaluate_subexp_standard): Update.
1095 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1096
46916f2b
TT
10972021-03-08 Tom Tromey <tom@tromey.com>
1098
1099 * expop.h (class comparison_operation): New.
1100 (equal_operation, notequal_operation, less_operation)
1101 (gtr_operation, geq_operation, leq_operation): New typedefs.
1102 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1103 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1104
224d6424
TT
11052021-03-08 Tom Tromey <tom@tromey.com>
1106
1107 * expop.h (class subscript_operation): New.
1108 * eval.c (eval_op_subscript): No longer static.
1109
373907ff
TT
11102021-03-08 Tom Tromey <tom@tromey.com>
1111
1112 * expop.h (class binop_operation, class usual_ax_binop_operation):
1113 New.
1114 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1115 (div_operation, rem_operation, lsh_operation, rsh_operation)
1116 (bitwise_and_operation, bitwise_ior_operation)
1117 (bitwise_xor_operation): New typedefs.
1118 * eval.c (eval_op_binary): No longer static.
1119
5133d78b
TT
11202021-03-08 Tom Tromey <tom@tromey.com>
1121
1122 * expop.h (class sub_operation): New.
1123 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1124 (evaluate_subexp_standard): Update.
1125
a94323b6
TT
11262021-03-08 Tom Tromey <tom@tromey.com>
1127
1128 * expop.h (class add_operation): New.
1129 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1130 (evaluate_subexp_standard): Update.
1131
e51e26a0
TT
11322021-03-08 Tom Tromey <tom@tromey.com>
1133
1134 * expop.h (class concat_operation): New.
1135 * eval.c (eval_op_concat): No longer static. Remove "op"
1136 parameter.
1137 (evaluate_subexp_standard): Update.
1138
07f724a8
TT
11392021-03-08 Tom Tromey <tom@tromey.com>
1140
1141 * expop.h (class structop_member_operation)
1142 (class structop_mptr_operation): New.
1143 * eval.c (eval_op_member): No longer static.
1144
ab0609be
TT
11452021-03-08 Tom Tromey <tom@tromey.com>
1146
1147 * expop.h (class structop_ptr_operation): New.
1148 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1149 parameter.
1150
808b22cf
TT
11512021-03-08 Tom Tromey <tom@tromey.com>
1152
1153 * expop.h (class structop_base_operation)
1154 (class structop_operation): New.
1155 * eval.c (eval_op_structop_struct): No longer static.
1156
8cfd3e95
TT
11572021-03-08 Tom Tromey <tom@tromey.com>
1158
1159 * expop.h (class complex_operation): New.
1160
09db3700
TT
11612021-03-08 Tom Tromey <tom@tromey.com>
1162
1163 * eval.c (eval_op_objc_selector): No longer static.
1164 * c-exp.h (class objc_selector_operation): New.
1165
06dc61b9
TT
11662021-03-08 Tom Tromey <tom@tromey.com>
1167
1168 * eval.c: Include c-exp.h.
1169 * c-exp.h (class objc_nsstring_operation): New.
1170
72d0a711
TT
11712021-03-08 Tom Tromey <tom@tromey.com>
1172
1173 * c-lang.c (c_string_operation::evaluate): New method.
1174 * c-exp.h: New file.
1175
9186293f
TT
11762021-03-08 Tom Tromey <tom@tromey.com>
1177
1178 * expop.h (class ternop_cond_operation): New.
1179 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1180
1594e0bb
TT
11812021-03-08 Tom Tromey <tom@tromey.com>
1182
1183 * expop.h (class ternop_slice_operation): New.
1184 * eval.c (eval_op_ternop): No longer static.
1185
b50db09f
TT
11862021-03-08 Tom Tromey <tom@tromey.com>
1187
1188 * expop.h (class string_operation): New.
1189 * eval.c (eval_op_string): No longer static.
1190
e6e01e16
TT
11912021-03-08 Tom Tromey <tom@tromey.com>
1192
1193 * expop.h (class internalvar_operation): New.
1194 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1195
e6985c5e
TT
11962021-03-08 Tom Tromey <tom@tromey.com>
1197
1198 * expop.h (class bool_operation): New.
1199
55bdbff8
TT
12002021-03-08 Tom Tromey <tom@tromey.com>
1201
1202 * expop.h (class register_operation): New.
1203 * eval.c (eval_op_register): No longer static.
1204 * ax-gdb.c (register_operation::do_generate_ax): New method.
1205
247d935b
TT
12062021-03-08 Tom Tromey <tom@tromey.com>
1207
1208 * expop.h (class last_operation): New.
1209
17679395
TT
12102021-03-08 Tom Tromey <tom@tromey.com>
1211
1212 * expop.h (class func_static_var_operation): New.
1213 * eval.c (eval_op_func_static_var): No longer static.
1214
b5cc3923
TT
12152021-03-08 Tom Tromey <tom@tromey.com>
1216
1217 * expop.h (class var_entry_value_operation): New.
1218 * eval.c (eval_op_var_entry_value): No longer static.
1219
0c8effa3
TT
12202021-03-08 Tom Tromey <tom@tromey.com>
1221
1222 * expression.h (class operation) <set_outermost>: New method.
1223 * expop.h (class var_msym_value_operation): New.
1224 * eval.c (eval_op_var_msym_value): No longer static.
1225 (var_msym_value_operation::evaluate_for_address)
1226 (var_msym_value_operation::evaluate_for_sizeof)
1227 (var_msym_value_operation::evaluate_for_cast): New methods.
1228 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1229 method.
1230
d336c29e
TT
12312021-03-08 Tom Tromey <tom@tromey.com>
1232
1233 * expop.h (class long_const_operation): New.
1234 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1235
d5ab122c
TT
12362021-03-08 Tom Tromey <tom@tromey.com>
1237
1238 * expop.h (class scope_operation): New.
1239 * eval.c (eval_op_scope): No longer static.
1240 (scope_operation::evaluate_for_address): New method.
1241 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1242
cae26a0c
TT
12432021-03-08 Tom Tromey <tom@tromey.com>
1244
1245 * expprint.c (float_const_operation::dump): New method.
1246 * expop.h (float_data): New typedef.
1247 (class float_const_operation): New.
1248
75f9892d
TT
12492021-03-08 Tom Tromey <tom@tromey.com>
1250
1251 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1252 * ax-gdb.c (gen_expr_binop): New function.
1253 (gen_expr_structop): Likewise.
1254
de401988
TT
12552021-03-08 Tom Tromey <tom@tromey.com>
1256
1257 * expprint.c (expr::dump_for_expression): New functions.
1258 * expop.h (dump_for_expression): New overloads.
1259 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1260 Update.
1261
e2803273
TT
12622021-03-08 Tom Tromey <tom@tromey.com>
1263
1264 * expression.h (expr::operation): New class.
1265 (expr::make_operation): New function.
1266 (expr::operation_up): New typedef.
1267 * expop.h: New file.
1268 * eval.c (operation::evaluate_for_cast)
1269 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1270 New methods.
1271 * ax-gdb.c (operation::generate_ax): New method.
1272
e18c58f2
TT
12732021-03-08 Tom Tromey <tom@tromey.com>
1274
1275 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1276 (gen_expr_binop_rest): New overload.
1277
c0d7ed8c
TT
12782021-03-08 Tom Tromey <tom@tromey.com>
1279
1280 * eval.c (eval_multi_subscript): New function.
1281 (evaluate_subexp_standard): Use it.
1282
dd5fd283
TT
12832021-03-08 Tom Tromey <tom@tromey.com>
1284
1285 * ada-lang.c (ada_binop_exp): New function.
1286 (ada_evaluate_subexp): Use it.
1287
3848abd6
TT
12882021-03-08 Tom Tromey <tom@tromey.com>
1289
1290 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1291 parameters.
1292 (ada_evaluate_subexp): Use it.
1293
38dc70cf
TT
12942021-03-08 Tom Tromey <tom@tromey.com>
1295
1296 * ada-lang.c (ada_binop_minmax): New function.
1297 (ada_evaluate_subexp): Use it.
1298
b84564fc
TT
12992021-03-08 Tom Tromey <tom@tromey.com>
1300
1301 * ada-lang.c (ada_unop_atr): New function.
1302 (ada_evaluate_subexp): Use it.
1303
b467efaa
TT
13042021-03-08 Tom Tromey <tom@tromey.com>
1305
1306 * ada-lang.c (ada_binop_in_bounds): New function.
1307 (ada_evaluate_subexp): Use it.
1308
5ce19db8
TT
13092021-03-08 Tom Tromey <tom@tromey.com>
1310
1311 * ada-lang.c (ada_ternop_slice): New function.
1312 (ada_evaluate_subexp): Use it.
1313
214b13ac
TT
13142021-03-08 Tom Tromey <tom@tromey.com>
1315
1316 * ada-lang.c (ada_equal_binop): New function.
1317 (ada_evaluate_subexp): Use it.
1318
faa1dfd7
TT
13192021-03-08 Tom Tromey <tom@tromey.com>
1320
1321 * ada-lang.c (ada_mult_binop): New function.
1322 (ada_evaluate_subexp): Use it.
1323
d05e24e6
TT
13242021-03-08 Tom Tromey <tom@tromey.com>
1325
1326 * ada-lang.c (ada_abs): New function.
1327 (ada_evaluate_subexp): Use it.
1328
68c75735
TT
13292021-03-08 Tom Tromey <tom@tromey.com>
1330
1331 * ada-lang.c (ada_atr_size): New function.
1332 (ada_evaluate_subexp): Use it.
1333
020dbabe
TT
13342021-03-08 Tom Tromey <tom@tromey.com>
1335
1336 * ada-lang.c (ada_atr_tag): New function.
1337 (ada_evaluate_subexp): Use it.
1338
7efc87ff
TT
13392021-03-08 Tom Tromey <tom@tromey.com>
1340
1341 * ada-lang.c (ada_unop_in_range): New function.
1342 (ada_evaluate_subexp): Use it.
1343
82390ab8
TT
13442021-03-08 Tom Tromey <tom@tromey.com>
1345
1346 * ada-lang.c (ada_unop_neg): New function.
1347 (ada_evaluate_subexp): Use it.
1348
62d4bd94
TT
13492021-03-08 Tom Tromey <tom@tromey.com>
1350
1351 * ada-lang.c (eval_ternop_in_range): New function.
1352 (ada_evaluate_subexp): Use it.
1353
3634f669
TT
13542021-03-08 Tom Tromey <tom@tromey.com>
1355
1356 * opencl-lang.c (eval_opencl_assign): New function.
1357 (evaluate_subexp_opencl): Use it.
1358
5e80600e
TT
13592021-03-08 Tom Tromey <tom@tromey.com>
1360
1361 * eval.c (eval_op_objc_msgcall): New function.
1362 (evaluate_subexp_standard): Use it.
1363
fb5ba2ab
TT
13642021-03-08 Tom Tromey <tom@tromey.com>
1365
1366 * eval.c (eval_binop_assign_modify): New function.
1367 (evaluate_subexp_standard): Use it.
1368
a49881f7
TT
13692021-03-08 Tom Tromey <tom@tromey.com>
1370
1371 * m2-lang.c (eval_op_m2_subscript): New function.
1372 (evaluate_subexp_modula2): Use it.
1373
41bdced5
TT
13742021-03-08 Tom Tromey <tom@tromey.com>
1375
1376 * m2-lang.c (eval_op_m2_high): New function.
1377 (evaluate_subexp_modula2): Use it.
1378
13ea014a
TT
13792021-03-08 Tom Tromey <tom@tromey.com>
1380
1381 * eval.c (evaluate_subexp_for_address_base): New function.
1382 (evaluate_subexp_for_address): Use it.
1383 (evaluate_subexp_for_sizeof_base): New function.
1384 (evaluate_subexp_for_sizeof): Use it.
1385
1fa41fc7
TT
13862021-03-08 Tom Tromey <tom@tromey.com>
1387
1388 * rust-lang.c (eval_op_rust_structop): New function.
1389 (rust_evaluate_subexp): Use it.
1390
575cae23
TT
13912021-03-08 Tom Tromey <tom@tromey.com>
1392
1393 * rust-lang.c (eval_op_rust_struct_anon): New function.
1394 (rust_evaluate_subexp): Use it.
1395
05104233
TT
13962021-03-08 Tom Tromey <tom@tromey.com>
1397
1398 * rust-lang.c (eval_op_rust_array): New function.
1399 (rust_evaluate_subexp): Use it.
1400
6fa9831f
TT
14012021-03-08 Tom Tromey <tom@tromey.com>
1402
1403 * rust-lang.c (eval_op_rust_complement): New function.
1404 (rust_evaluate_subexp): Use it.
1405
d123f9e4
TT
14062021-03-08 Tom Tromey <tom@tromey.com>
1407
1408 * rust-lang.c (eval_op_rust_ind): New function.
1409 (rust_evaluate_subexp): Use it.
1410
984af2cb
TT
14112021-03-08 Tom Tromey <tom@tromey.com>
1412
1413 * rust-lang.c (rust_subscript): Change parameters.
1414 (rust_evaluate_subexp): Update.
1415
d148f803
TT
14162021-03-08 Tom Tromey <tom@tromey.com>
1417
1418 * rust-lang.c (rust_range): Change parameters.
1419 (rust_evaluate_subexp): Update.
1420
9cbd1c20
TT
14212021-03-08 Tom Tromey <tom@tromey.com>
1422
1423 * f-lang.c (eval_op_f_allocated): New function.
1424 (evaluate_subexp_f): Use it.
1425
3c18c49c
TT
14262021-03-08 Tom Tromey <tom@tromey.com>
1427
1428 * f-lang.c (fortran_require_array): New function.
1429 (evaluate_subexp_f): Use it.
1430
216f6fcb
TT
14312021-03-08 Tom Tromey <tom@tromey.com>
1432
1433 * f-lang.c (eval_op_f_kind): New function.
1434 (evaluate_subexp_f): Use it.
1435
00f2db6f
TT
14362021-03-08 Tom Tromey <tom@tromey.com>
1437
1438 * f-lang.c (eval_op_f_cmplx): New function.
1439 (evaluate_subexp_f): Use it.
1440
93b2b5fa
TT
14412021-03-08 Tom Tromey <tom@tromey.com>
1442
1443 * f-lang.c (eval_op_f_modulo): New function.
1444 (evaluate_subexp_f): Use it.
1445
9f1a1f3c
TT
14462021-03-08 Tom Tromey <tom@tromey.com>
1447
1448 * f-lang.c (eval_op_f_floor): New function.
1449 (evaluate_subexp_f): Use it.
1450
3dc41f3c
TT
14512021-03-08 Tom Tromey <tom@tromey.com>
1452
1453 * f-lang.c (eval_op_f_ceil): New function.
1454 (evaluate_subexp_f): Use it.
1455
e08109f2
TT
14562021-03-08 Tom Tromey <tom@tromey.com>
1457
1458 * f-lang.c (eval_op_f_mod): New function.
1459 (evaluate_subexp_f): Use it.
1460
cc05c68e
TT
14612021-03-08 Tom Tromey <tom@tromey.com>
1462
1463 * f-lang.c (eval_op_f_abs): New function.
1464 (evaluate_subexp_f): Use it.
1465
aec95807
TT
14662021-03-08 Tom Tromey <tom@tromey.com>
1467
1468 * eval.c (eval_op_type): New function.
1469 (evaluate_subexp_standard): Use it.
1470
a220ead5
TT
14712021-03-08 Tom Tromey <tom@tromey.com>
1472
1473 * eval.c (eval_op_postdec): New function.
1474 (evaluate_subexp_standard): Use it.
1475
abffe116
TT
14762021-03-08 Tom Tromey <tom@tromey.com>
1477
1478 * eval.c (eval_op_postinc): New function.
1479 (evaluate_subexp_standard): Use it.
1480
9e1361b7
TT
14812021-03-08 Tom Tromey <tom@tromey.com>
1482
1483 * eval.c (eval_op_predec): New file.
1484 (evaluate_subexp_standard): Use it.
1485
00f50884
TT
14862021-03-08 Tom Tromey <tom@tromey.com>
1487
1488 * eval.c (eval_op_preinc): New function.
1489 (evaluate_subexp_standard): Use it.
1490
3aef2a07
TT
14912021-03-08 Tom Tromey <tom@tromey.com>
1492
1493 * eval.c (eval_op_memval): New function.
1494 (evaluate_subexp_standard): Use it.
1495
acee9468
TT
14962021-03-08 Tom Tromey <tom@tromey.com>
1497
1498 * eval.c (eval_op_alignof): New function.
1499 (evaluate_subexp_standard): Use it.
1500
786f70ee
TT
15012021-03-08 Tom Tromey <tom@tromey.com>
1502
1503 * eval.c (eval_op_ind): New function.
1504 (evaluate_subexp_standard): Use it.
1505
24338fb9
TT
15062021-03-08 Tom Tromey <tom@tromey.com>
1507
1508 * eval.c (eval_op_lognot): New function.
1509 (evaluate_subexp_standard): Use it.
1510
1f09ec81
TT
15112021-03-08 Tom Tromey <tom@tromey.com>
1512
1513 * eval.c (eval_op_complement): New function.
1514 (evaluate_subexp_standard): Use it.
1515
606d105f
TT
15162021-03-08 Tom Tromey <tom@tromey.com>
1517
1518 * eval.c (eval_op_neg): New function.
1519 (evaluate_subexp_standard): Use it.
1520
39f288be
TT
15212021-03-08 Tom Tromey <tom@tromey.com>
1522
1523 * eval.c (eval_op_plus): New function.
1524 (evaluate_subexp_standard): Use it.
1525
eed70b1c
TT
15262021-03-08 Tom Tromey <tom@tromey.com>
1527
1528 * eval.c (eval_op_repeat): New function.
1529 (evaluate_subexp_standard): Use it.
1530
60cdd487
TT
15312021-03-08 Tom Tromey <tom@tromey.com>
1532
1533 * eval.c (eval_op_leq): New function.
1534 (evaluate_subexp_standard): Use it.
1535
96e3efd9
TT
15362021-03-08 Tom Tromey <tom@tromey.com>
1537
1538 * eval.c (eval_op_geq): New function.
1539 (evaluate_subexp_standard): Use it.
1540
1f78d732
TT
15412021-03-08 Tom Tromey <tom@tromey.com>
1542
1543 * eval.c (eval_op_gtr): New function.
1544 (evaluate_subexp_standard): Use it.
1545
6cad1349
TT
15462021-03-08 Tom Tromey <tom@tromey.com>
1547
1548 * eval.c (eval_op_less): New function.
1549 (evaluate_subexp_standard): Use it.
1550
1fcb3559
TT
15512021-03-08 Tom Tromey <tom@tromey.com>
1552
1553 * eval.c (eval_op_notequal): New function.
1554 (evaluate_subexp_standard): Use it.
1555
0cc96de8
TT
15562021-03-08 Tom Tromey <tom@tromey.com>
1557
1558 * eval.c (eval_op_equal): New function.
1559 (evaluate_subexp_standard): Use it.
1560
288d26bc
TT
15612021-03-08 Tom Tromey <tom@tromey.com>
1562
1563 * eval.c (eval_op_subscript): New function.
1564 (evaluate_subexp_standard): Use it.
1565
7cdcdd02
TT
15662021-03-08 Tom Tromey <tom@tromey.com>
1567
1568 * eval.c (eval_op_binary): New function.
1569 (evaluate_subexp_standard): Use it.
1570
d9790e22
TT
15712021-03-08 Tom Tromey <tom@tromey.com>
1572
1573 * eval.c (eval_op_sub): New function.
1574 (evaluate_subexp_standard): Use it.
1575
aedaf9ac
TT
15762021-03-08 Tom Tromey <tom@tromey.com>
1577
1578 * eval.c (eval_op_add): New function.
1579 (evaluate_subexp_standard): Use it.
1580
b7a96ed2
TT
15812021-03-08 Tom Tromey <tom@tromey.com>
1582
1583 * eval.c (eval_op_member): New function.
1584 (evaluate_subexp_standard): Use it.
1585
fb461aa3
TT
15862021-03-08 Tom Tromey <tom@tromey.com>
1587
1588 * eval.c (eval_op_structop_ptr): New function.
1589 (evaluate_subexp_standard): Use it.
1590
3e96c4fc
TT
15912021-03-08 Tom Tromey <tom@tromey.com>
1592
1593 * eval.c (eval_op_structop_struct): New function.
1594 (evaluate_subexp_standard): Use it.
1595
f960a617
TT
15962021-03-08 Tom Tromey <tom@tromey.com>
1597
1598 * eval.c (eval_op_ternop): New function.
1599 (evaluate_subexp_standard): Use it.
1600
5c2f201e
TT
16012021-03-08 Tom Tromey <tom@tromey.com>
1602
1603 * eval.c (eval_op_concat): New function.
1604 (evaluate_subexp_standard): Use it.
1605
f871bae1
TT
16062021-03-08 Tom Tromey <tom@tromey.com>
1607
1608 * eval.c (eval_op_objc_selector): New function.
1609 (evaluate_subexp_standard): Use it.
1610
14a1c64a
TT
16112021-03-08 Tom Tromey <tom@tromey.com>
1612
1613 * eval.c (eval_op_string): New function.
1614 (evaluate_subexp_standard): Use it.
1615
ffff730b
TT
16162021-03-08 Tom Tromey <tom@tromey.com>
1617
1618 * eval.c (eval_op_register): New function.
1619 (evaluate_subexp_standard): Use it.
1620
9b1d8af6
TT
16212021-03-08 Tom Tromey <tom@tromey.com>
1622
1623 * eval.c (eval_op_func_static_var): New function.
1624 (evaluate_subexp_standard): Use it.
1625
c0df9289
TT
16262021-03-08 Tom Tromey <tom@tromey.com>
1627
1628 * eval.c (eval_op_var_msym_value): New function.
1629 (evaluate_subexp_standard): Use it.
1630
50b98adc
TT
16312021-03-08 Tom Tromey <tom@tromey.com>
1632
1633 * eval.c (eval_op_var_entry_value): New function.
1634 (evaluate_subexp_standard): Use it.
1635
ea2d29f7
TT
16362021-03-08 Tom Tromey <tom@tromey.com>
1637
1638 * eval.c (eval_op_scope): New function.
1639 (evaluate_subexp_standard): Use it.
1640
01573d73
TT
16412021-03-06 Chernov Sergey <klen_s@mail.ru>
1642
1643 PR gdb/27528:
1644 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1645
9938d15a
TT
16462021-03-06 Tom Tromey <tom@tromey.com>
1647
1648 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1649 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1650 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1651 (locate_dwz_sections, dwz_search_other_debugdirs)
1652 (dwarf2_get_dwz_file): Move to dwz.c.
1653 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1654 read.h.
1655 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1656 (dwarf2_get_dwz_file): Move from read.c.
1657
18035655
TT
16582021-03-06 Tom Tromey <tom@tromey.com>
1659
1660 * debuginfod-support.h: Include scoped_fd.h.
1661
a7308ce0
TT
16622021-03-06 Tom Tromey <tom@tromey.com>
1663
1664 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1665 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1666 (get_abbrev_section_for_cu, read_attribute_value)
1667 (get_debug_line_section): Update.
1668 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1669
fbedd546
TT
16702021-03-06 Tom Tromey <tom@tromey.com>
1671
1672 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1673 method.
1674 * dwarf2/read.c (section_is_p): Remove.
1675 (dwarf2_per_bfd::locate_sections)
1676 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1677 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1678 (dwarf2_locate_common_dwp_sections)
1679 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1680 Update.
1681
c2a62a3d
TT
16822021-03-06 Tom Tromey <tom@tromey.com>
1683
1684 * xcoffread.c: Include sect-names.h.
1685 * symfile.h (struct dwarf2_section_names, struct
1686 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1687 * dwarf2/sect-names.h: New file, from symfile.h.
1688 * dwarf2/read.c: Include sect-names.h.
1689
4444f407
TT
16902021-03-06 Tom Tromey <tom@tromey.com>
1691
1692 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1693 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1694 (abbrev_table::read): Update.
1695 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1696 (struct abbrev_info): Reformat.
1697 <attrs>: Now an array.
1698 (struct abbrev_table) <alloc_abbrev>: Remove.
1699
dd99cf0c
WP
17002021-03-06 Weimin Pan <weimin.pan@oracle.com>
1701
1702 * ctfread.c (ctf_psymtab_add_enums): New function.
1703 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1704
844be3f2
WP
17052021-03-06 Weimin Pan <weimin.pan@oracle.com>
1706
1707 * ctfread.c (read_func_kind_type): Set up function arguments.
1708
b2668f28
AB
17092021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1710 Andrew Burgess <andrew.burgess@embecosm.com>
1711
1712 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1713 includes.
1714 (riscv_csrset): New static global.
1715 (riscv_update_csrmap): New function.
1716 (riscv_iterate_over_regset_sections): Process CSRs.
1717
d782d24b
AB
17182021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1719
1720 * riscv-tdep.c (riscv_feature_name_csr): Define.
1721 (riscv_feature_name_cpu): Define.
1722 (riscv_feature_name_fpu): Define.
1723 (riscv_feature_name_virtual): Define.
1724 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1725 (riscv_freg_feature): Use riscv_feature_name_fpu.
1726 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1727 (riscv_csr_feature): Use riscv_feature_name_csr.
1728 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1729
fb8f3fc0
AB
17302021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1731 Craig Blackmore <craig.blackmore@embecosm.com>
1732
1733 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1734 (ALLDEPFILES): Add riscv-none-tdep.c.
1735 * configure: Regenerate.
1736 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1737 support.
1738 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1739 * elf-none-tdep.c: New file.
1740 * elf-none-tdep.h: New file.
1741 * riscv-none-tdep.c: New file.
1742
95ce627a
AB
17432021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1744 Andrew Burgess <andrew.burgess@embecosm.com>
1745
1746 * corelow.c: Add 'xml-tdesc.h' include.
1747 (core_target::read_description): Load the target description from
1748 the core file when possible.
1749 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1750 note.
1751 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1752 (gcore_elf_make_tdesc_note): New function.
1753 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1754 * linux-tdep.c (linux_make_corefile_notes): Add target description
1755 note.
1756
f3a5df7b
AB
17572021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1758
1759 * Makefile.in (SFILES): Add gcore-elf.c.
1760 (HFILES_NO_SRCDIR): Add gcore-elf.h
1761 * configure: Regenerate.
1762 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1763 support.
1764 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1765 (struct fbsd_collect_regset_section_cb_data): Delete.
1766 (fbsd_collect_regset_section_cb): Delete.
1767 (fbsd_collect_thread_registers): Delete.
1768 (struct fbsd_corefile_thread_data): Delete.
1769 (fbsd_corefile_thread): Delete.
1770 (fbsd_make_corefile_notes): Call
1771 gcore_elf_build_thread_register_notes instead of the now deleted
1772 FreeBSD code.
1773 * gcore-elf.c: New file, the content was moved here from
1774 linux-tdep.c, functions were renamed and given minor cleanup.
1775 * gcore-elf.h: New file.
1776 * gcore.c (gcore_find_signalled_thread): Moved here from
1777 linux-tdep.c and given a new name. Minor cleanups.
1778 * gcore.h (gcore_find_signalled_thread): Declare.
1779 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1780 (struct linux_collect_regset_section_cb_data): Delete.
1781 (linux_collect_regset_section_cb): Delete.
1782 (linux_collect_thread_registers): Delete.
1783 (linux_corefile_thread): Call
1784 gcore_elf_build_thread_register_notes.
1785 (find_signalled_thread): Delete.
1786 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1787
d1e93af6
SM
17882021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1789
1790 PR gdb/27147
1791 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1792 process_stratum_target parameter,
1793 sparc_store_inferior_registers): update callers.
1794 * sparc-nat.c (sparc_fetch_inferior_registers,
1795 sparc_store_inferior_registers): Add process_stratum_target
1796 parameter. Switch current thread before calling
1797 sparc_supply_gregset / sparc_collect_rwindow.
1798 (sparc_store_inferior_registers): Likewise.
1799 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1800 (sparc32obsd_collect_uthread): Likewise.
1801 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1802 Add assertion.
1803 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1804 sparc64obsd_supply_uthread): Add assertion.
1805
1178743e
TT
18062021-03-04 Tom Tromey <tromey@adacore.com>
1807
1808 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1809 (aux_add_nonlocal_symbols): Update.
1810 (ada_add_block_symbols): Change "found_sym" to bool.
1811
1bfa81ac
TT
18122021-03-03 Tom Tromey <tromey@adacore.com>
1813
1814 * ada-lang.c (ada_resolve_function): Update comment.
1815 (is_nonfunction, add_symbols_from_enclosing_procs)
1816 (remove_extra_symbols): Likewise.
1817 (struct match_data): Add constructor, initializers.
1818 (add_nonlocal_symbols): Remove memset.
1819 (aux_add_nonlocal_symbols): Update comment.
1820 (ada_add_block_renamings, add_nonlocal_symbols)
1821 (ada_add_all_symbols): Likewise.
1822 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1823
bbcdf9ab
TT
18242021-03-02 Tom Tromey <tromey@adacore.com>
1825
1826 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1827 (cast_to_gnat_encoded_fixed_point_type): Remove.
1828 (ada_value_cast, ada_evaluate_subexp): Update.
1829 (gnat_encoded_fixed_point_type_info)
1830 (ada_is_gnat_encoded_fixed_point_type)
1831 (gnat_encoded_fixed_point_delta)
1832 (gnat_encoded_fixed_point_scaling_factor): Remove.
1833 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1834 (gnat_encoded_fixed_point_delta)
1835 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1836 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1837 (ada_print_type): Update.
1838 * ada-valprint.c (ada_value_print_num): Update.
1839 * dwarf2/read.c (ada_get_gnat_encoded_number)
1840 (ada_get_gnat_encoded_ratio): New functions.
1841 (finish_fixed_point_type): Use them. Add parameters.
1842 (GNAT_FIXED_POINT_SUFFIX): New define.
1843 (gnat_encoded_fixed_point_type_info): New function.
1844 (read_base_type): Handle gnat encodings.
1845
5f9febe0
TT
18462021-03-02 Tom Tromey <tromey@adacore.com>
1847
1848 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1849 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1850 std::string.
1851 (GROW_VECT): Remove.
1852 (grow_vect): Remove.
1853
d1183b06
TT
18542021-03-02 Tom Tromey <tromey@adacore.com>
1855
1856 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1857 * ada-lang.c (resolve_subexp): Update.
1858 (ada_resolve_function): Accept a vector.
1859 (is_nonfunction, add_defn_to_vec)
1860 (add_symbols_from_enclosing_procs): Likewise.
1861 (num_defns_collected, defns_collected): Remove.
1862 (remove_extra_symbols): Return a vector.
1863 (remove_irrelevant_renamings): Return void.
1864 (ada_add_local_symbols): Accept a vector.
1865 (struct match_data) <obstackp>: Remove.
1866 <resultp>: New member.
1867 (aux_add_nonlocal_symbols): Update.
1868 (ada_add_block_renamings, add_nonlocal_symbols)
1869 (ada_add_all_symbols): Accept a vector.
1870 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1871 vector.
1872 (ada_lookup_symbol): Update.
1873 (ada_add_block_symbols): Accept a vector.
1874 (get_var_value, iterate_over_symbols): Update.
1875 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1876 Update.
1877
886d459f
TT
18782021-03-02 Tom Tromey <tromey@adacore.com>
1879
1880 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1881
bdcccc56
TT
18822021-03-02 Tom Tromey <tromey@adacore.com>
1883
1884 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1885 auto_obstack.
1886 <root>: Initialize.
1887 (ada_pspace_data): Remove destructor.
1888 <sym_cache>: Now a unique_ptr.
1889 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1890 (ada_get_symbol_cache): Use 'new'.
1891 (ada_clear_symbol_cache): Rewrite.
1892
1228719f
TT
18932021-03-02 Tom Tromey <tromey@adacore.com>
1894
1895 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1896 is null.
1897
bb3a4efe
LS
18982021-02-27 Lancelot Six <lsix@lancelotsix.com>
1899
1900 PR gdb/27393
1901 * source.c (add_path): Skip empty dirnames.
1902
26b43ca6 19032021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
1904
1905 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1906 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1907
dffdd8b5
SM
19082021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1909
1910 PR gdb/26861
1911 * target.c (target_mourn_inferior): Only compare pids in
1912 target_mourn_inferior.
1913
64d38fdd
JM
19142021-02-25 Jan Matyas <jmatyas@codasip.com>
1915
1916 PR gdb/26819
1917 * remote.c (remote_target::start_remote): Ensure the single
1918 thread, automatically added for remote targets without the
1919 concept of threading, is initially in set to the "resumed"
1920 state.
1921 * remote.c (remote_target::add_current_inferior_and_thread):
1922 Add return value - return the main thread.
1923
2450ad54
JV
19242021-02-25 Jan Vrany <jan.vrany@labware.com>
1925
1926 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1927 (mi_tsv_created): Likewise.
1928 (mi_tsv_deleted): Likewise.
1929
30c80d88
TV
19302021-02-25 Tom de Vries <tdevries@suse.de>
1931
1932 PR symtab/27354
1933 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1934 section_kind for &dwo_file->sections.info.
1935
68337b8b
AB
19362021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1937
1938 PR fortran/26155
1939 * f-lang.c (fortran_argument_convert): Delete declaration.
1940 (fortran_prepare_argument): New function.
1941 (evaluate_subexp_f): Move logic to new function
1942 fortran_prepare_argument.
1943
faeb9f13
AB
19442021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1945
1946 * f-exp.y (f77_keywords): Add 'associated'.
1947 * f-lang.c (fortran_associated): New function.
1948 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1949 (operator_length_f): Likewise.
1950 (print_unop_or_binop_subexp_f): New function.
1951 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1952 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1953 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1954 (operator_check_f): Likewise.
1955 * std-operator.def: Add FORTRAN_ASSOCIATED.
1956
170f4b23
AB
19572021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1958
1959 * f-exp.y (fortran_operators): Add ".xor.".
1960
aa659cfa
TV
19612021-02-24 Tom de Vries <tdevries@suse.de>
1962
1963 PR symtab/27336
1964 * dwarf2/attribute.c (attribute::form_is_signed): New function
1965 factored out of ...
1966 * dwarf2/attribute.h (attribute::as_signed): ... here.
1967 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1968 (attribute::form_is_signed): Declare.
1969 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1970 for DW_AT_decl_file.
1971
268c77c1
KB
19722021-02-24 Kevin Buettner <kevinb@redhat.com>
1973
1974 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1975 order for <sys/ptrace.h> and <asm/ptrace.h>.
1976
665af52e
KB
19772021-02-24 Kevin Buettner <kevinb@redhat.com>
1978
1979 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1980 <sys/ptrace.h>.
1981
dd80d750
AB
19822021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1983
1984 * exec.c (set_section_command): Move variable declarations into
1985 the function body, and use std::string instead of a fixed size
1986 buffer.
1987
336aa7b7
AB
19882021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1989
1990 * exec.c (exec_target::get_section_table): Delete member function.
1991 (section_table_read_available_memory): Use current_top_target, not
1992 just the exec_ops target.
1993 * target-delegates.c: Regenerate.
1994 * target.c (default_get_section_table): New function.
1995 * target.h (target_ops::get_section_table): Change default
1996 behaviour to call default_get_section_table.
1997 (default_get_section_table): Declare.
1998
02f7d26b
AB
19992021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2000
2001 * exec.c (exec_target::close): Call new clear_target_sections
2002 function.
2003 (program_space::add_target_sections): Update name of member
2004 variable.
2005 (program_space::add_target_sections): Update name of member
2006 variable.
2007 (program_space::remove_target_sections): Likewise.
2008 (exec_one_fork): Use new target_sections member function.
2009 (exec_target::get_section_table): Likewise.
2010 (exec_target::files_info): Likewise.
2011 (set_section_command): Likewise.
2012 (exec_set_section_address): Likewise.
2013 (exec_target::has_memory): Use new target_sections member
2014 function.
2015 * progspace.h (program_space::clear_target_sections): New member
2016 function.
2017 (program_space::target_sections): Rename member variable to
2018 m_target_sections, replace with a new member function.
2019 (program_space::m_target_sections): New member variable.
2020 * solib-dsbt.c (scan_dyntag): Use new member function.
2021 * solib-svr4.c (scan_dyntag): Likewise.
2022
19cf757a
AB
20232021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2024
2025 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2026 return type const.
2027 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2028 (section_table_read_available_memory): Make local const.
2029 (exec_target::xfer_partial): Make local const.
2030 (print_section_info): Make parameter const.
2031 * gdb/exec.h (print_section_info): Likewise.
2032 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2033 const.
2034 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2035 Likewise.
2036 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2037 Likewise.
2038 * gdb/s390-tdep.c (s390_load): Likewise.
2039 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2040 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2041 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2042 Rename to...
2043 (target_debug_print_const_target_section_table_p): ...this.
2044 * gdb/target-delegates.c: Regenerate.
2045 * gdb/target.c (target_get_section_table): Make return type const.
2046 (target_section_by_addr): Likewise. Also make some locals const.
2047 (memory_xfer_partial_1): Make some locals const.
2048 * gdb/target.h (struct target_ops) <get_section_table>: Make
2049 return type const.
2050 (target_section_by_addr): Likewise.
2051 (target_get_section_table): Likewise.
2052
02a79309
AB
20532021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2054
2055 * NEWS: Mention new 'maint info target-sections' command.
2056 * maint.c (maintenance_info_target_sections): New function.
2057 (_initialize_maint_cmds): Register new command.
2058
895b7b4e
AB
20592021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2060
2061 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2062 (riscv_features_from_bfd): ...this. Change parameter type to
2063 'bfd*', and update as required.
2064 (riscv_find_default_target_description): Update call to
2065 riscv_features_from_bfd. Select a default xlen based on
2066 info.bfd_arch_info.
2067 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2068
bc3c0632
AB
20692021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2072 dynamic types in UNOP_IND.
2073
08ac5771
SM
20742021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2075
2076 PR gdb/26828
2077 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2078 Instantiate queue.
2079 (~dwarf2_queue_guard): Clear queue.
2080 (queue_comp_unit): Assert that queue is
2081 instantiated.
2082 (process_queue): Adjust.
2083 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2084
616c069a
SM
20852021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2086
2087 PR gdb/26828
2088 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2089 to decide whether or not to enqueue it for expansion.
2090 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2091 after calling maybe_queue_comp_unit.
2092
897608ed
SM
20932021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2094
2095 * linux-nat.c (linux_nat_filter_event): Return void.
2096
15908a11
TT
20972021-02-22 Tom Tromey <tromey@adacore.com>
2098
2099 * solib-svr4.c (enable_break): Update.
2100 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2101 type.
2102 (target_bfd_reopen): Change parameter type.
2103 * bfd-target.h (target_bfd_reopen): Change parameter type.
2104
f53fc427
SM
21052021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2106
2107 * thread.c (add_thread_silent): Add assert.
2108 (find_thread_ptid): Add assert.
2109
de146e19
SM
21102021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2111
2112 PR gdb/27435
2113 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2114 (target_unpush_up): Likewise.
2115 * procfs.c (procfs_target::attach): Push target early. Use
2116 target_unpush_up to unpush target in case of error.
2117 * target.h (struct target_unpusher): Move here.
2118 (target_unpush_up): Likewise.
2119
8488c357
KB
21202021-02-19 Kevin Buettner <kevinb@redhat.com>
2121
2122 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2123 (which in turn includes <gnulib/config.h>) before include
2124 of <signal.h>.
2125
5a9f5403
NC
21262021-02-19 Nelson Chu <nelson.chu@sifive.com>
2127
2128 PR 27158
2129 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2130 (decode_j_type_insn): Likewise.
2131 (decode_cj_type_insn): Likewise.
2132 (decode_b_type_insn): Likewise.
2133 (decode): Likewise.
2134
26f53cd3
TT
21352021-02-18 Tom Tromey <tom@tromey.com>
2136
2137 * expression.h (struct expression) <evaluate>: Declare method.
2138 * eval.c (evaluate_subexp): Simplify.
2139 (expression::evaluate): New method.
2140 (evaluate_expression, evaluate_type): Use expression::evaluate.
2141
6a780b67
KB
21422021-02-17 Kevin Buettner <kevinb@redhat.com>
2143
2144 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2145 to accessing it.
2146 (ada_lookup_name_info): Likewise.
2147
adeab0c5
MF
21482021-02-13 Mike Frysinger <vapier@gentoo.org>
2149
2150 * aclocal.m4: Regenerate.
2151
089436f7
TV
21522021-02-12 Tom de Vries <tdevries@suse.de>
2153
2154 PR threads/26228
2155 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2156 (lin_thread_signals): New static var.
2157 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2158 New function.
2159 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2160 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2161 Declare.
2162 * linux-thread-db.c (check_thread_signals): Use
2163 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2164
96df3e28
AB
21652021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2166
2167 * f-exp.y (f77_keywords): Add allocated.
2168 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2169 (operator_length_f): Likewise.
2170 (print_subexp_f): Likewise.
2171 (dump_subexp_body_f): Likewise.
2172 (operator_check_f): Likewise.
2173 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2174
05f68f52
TV
21752021-02-11 Tom de Vries <tdevries@suse.de>
2176
2177 PR symtab/27353
2178 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2179 Return true for DW_FORM_strx.
2180
b260f8d6
TT
21812021-02-11 Tom Tromey <tromey@adacore.com>
2182
2183 PR gdb/27383:
2184 * parse.c (write_exp_symbol_reference): Write sym.block.
2185
bf3386f0
AB
21862021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2187
2188 * NEWS: Mention changes to 'maint info sections'.
2189 * maint.c (match_substring): Return a bool, fix whitespace issue.
2190 (struct single_bfd_flag_info): New struct.
2191 (bfd_flag_info): New static global.
2192 (match_bfd_flags): Return a bool, use bfd_flag_info.
2193 (print_bfd_flags): Use bfd_flag_info.
2194 (maint_print_section_info): Delete trailing whitespace.
2195 (struct maint_info_sections_opts): New struct.
2196 (maint_info_sections_option_defs): New static global.
2197 (maint_info_sections_completer): New function.
2198 (maintenance_info_sections): Use option parsing mechanism.
2199 (_initialize_maint_cmds): Update command help text for 'maint info
2200 sections' and register a command completer.
2201
4790db14
AB
22022021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2203
2204 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2205 functionality merged into...
2206 (maint_print_all_sections): ...this new function.
2207 (maintenance_info_sections): Make use of maint_print_all_sections,
2208 allow all objects to be printed even where there's no executable.
2209
1db66e34
AB
22102021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2211
2212 * breakpoint.c (resolve_sal_pc): Make use of
2213 bound_minimal_symbol::obj_section.
2214 * maint.c (maintenance_translate_address): Likewise.
2215 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2216 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2217 member function.
2218 * printcmd.c (info_address_command): Make use of
2219 bound_minimal_symbol::obj_section.
2220
18b8df43
AM
22212021-02-11 Alan Modra <amodra@gmail.com>
2222
2223 * arm-symbian-tdep.c: Delete.
2224 * NEWS: Mention arm-symbian removal.
2225 * Makefile.in: Remove arm-symbian-tdep entries.
2226 * configure.tgt: Remove arm*-*-symbianelf*.
2227 * doc/gdb.texinfo: Remove mention of SymbianOS.
2228 * osabi.c (gdb_osabi_names): Remove "Symbian".
2229 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2230 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2231 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2232 handling.
2233 * testsuite/gdb.base/dup-sect.exp: Likewise.
2234 * testsuite/gdb.base/long_long.exp: Likewise.
2235 * testsuite/gdb.base/solib-weak.exp: Likewise.
2236 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2237 * testsuite/gdb.python/py-section-script.exp: Likewise.
2238 * testsuite/lib/dwarf.exp: Likewise.
2239 * testsuite/lib/gdb.exp: Likewise.
2240
e92c8eb8
AB
22412021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2242
2243 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2244 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2245 (one_or_two_args): New pattern.
2246 (f77_keywords): Add lbound and ubound.
2247 * f-lang.c (fortran_bounds_all_dims): New function.
2248 (fortran_bounds_for_dimension): New function.
2249 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2250 (operator_length_f): Likewise.
2251 (print_subexp_f): Likewise.
2252 (dump_subexp_body_f): Likewise.
2253 (operator_check_f): Likewise.
2254 * std-operator.def (FORTRAN_LBOUND): Define.
2255 (FORTRAN_UBOUND): Define.
2256
a52d653e
AB
22572021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2258
2259 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2260 and set_section_index member functions where appropriate.
2261 * coffread.c (coff_symtab_read): Likewise.
2262 (process_coff_symbol): Likewise.
2263 * ctfread.c (set_symbol_address): Likewise.
2264 * dwarf2/read.c (add_partial_symbol): Likewise.
2265 (var_decode_location): Likewise.
2266 * language.c: Likewise.
2267 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2268 (compact_minimal_symbols): Likewise.
2269 (minimal_symbol_upper_bound): Likewise.
2270 * objfiles.c (relocate_one_symbol): Likewise.
2271 * psympriv.h (partial_symbol::obj_section): Likewise.
2272 (partial_symbol::address): Likewise.
2273 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2274 * stabsread.c (scan_file_globals): Likewise.
2275 * symmisc.c (dump_msymbols): Likewise.
2276 * symtab.c (general_symbol_info::obj_section): Likewise.
2277 (fixup_section): Likewise.
2278 (get_msymbol_address): Likewise.
2279 * symtab.h (general_symbol_info::section): Rename to...
2280 (general_symbol_info::m_section): ...this.
2281 (general_symbol_info::set_section_index): New member function.
2282 (general_symbol_info::section_index): Likewise.
2283 (SYMBOL_SECTION): Delete.
2284 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2285 set_section_index member functions where appropriate.
2286 (MSYMBOL_SECTION): Delete.
2287 (symbol::symbol): Update to initialize 'm_section'.
2288 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2289 (process_xcoff_symbol): Likewise.
2290
ebbc3a7d
AB
22912021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2292
2293 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2294 MSYMBOL_OBJ_SECTION.
2295 * findvar.c (language_defn::read_var_value): Likewise.
2296 * infcmd.c (jump_command): Likewise.
2297 * linespec.c (minsym_found): Likewise.
2298 * maint.c (maintenance_translate_address): Likewise.
2299 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2300 (minimal_symbol_upper_bound): Likewise.
2301 * parse.c (find_minsym_type_and_address): Likewise.
2302 (operator_check_standard): Likewise.
2303 * printcmd.c (info_address_command): Likewise.
2304 * symmisc.c (dump_msymbols): Likewise.
2305 (print_symbol): Likewise.
2306 * symtab.c (general_symbol_info::obj_section): Define new
2307 function.
2308 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2309 (find_pc_sect_compunit_symtab): Likewise.
2310 (find_function_start_sal): Likewise.
2311 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2312 MSYMBOL_OBJ_SECTION.
2313 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2314 function.
2315 (SYMBOL_OBJ_SECTION): Delete.
2316 (MSYMBOL_OBJ_SECTION): Delete.
2317
9bb305b3
TT
23182021-02-09 Tom Tromey <tom@tromey.com>
2319
2320 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2321
cf2b2075
TV
23222021-02-09 Tom de Vries <tdevries@suse.de>
2323
2324 PR symtab/27341
2325 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2326 construct an array type. Add assert to ensure that element_type is
2327 not being modified.
2328
03642b71
AB
23292021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2330
2331 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2332 (gcore_collect_regset_section_cb): Delete.
2333 (gcore_collect_thread_registers): Delete.
2334 (gcore_build_thread_register_notes): Delete.
2335 (gcore_find_signalled_thread): Delete.
2336 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2337 'gdbarch' and 'thread_info' declarations.
2338 (gcore_build_thread_register_notes): Delete declaration.
2339 (gcore_find_signalled_thread): Likewise.
2340 * fbsd-tdep.c: Remove 'gcore.h' include.
2341 (struct fbsd_collect_regset_section_cb_data): New struct.
2342 (fbsd_collect_regset_section_cb): New function.
2343 (fbsd_collect_thread_registers): New function.
2344 (struct fbsd_corefile_thread_data): New struct.
2345 (fbsd_corefile_thread): New function.
2346 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2347 * linux-tdep.c: Remove 'gcore.h' include.
2348 (struct linux_collect_regset_section_cb_data): New struct.
2349 (linux_collect_regset_section_cb): New function.
2350 (linux_collect_thread_registers): New function.
2351 (linux_corefile_thread): Call Linux specific code.
2352 (find_signalled_thread): New function.
2353 (linux_make_corefile_notes): Call find_signalled_thread.
2354
f73e424f
TT
23552021-02-09 Tom Tromey <tromey@adacore.com>
2356
2357 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2358 not_lval value.
2359 * value.c (value_contents_copy_raw): Now static.
2360 * value.h (value_contents_copy_raw): Don't declare.
2361
a4f0544b
TT
23622021-02-09 Tom Tromey <tromey@adacore.com>
2363
2364 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2365 fields.
2366
9b3e4b5d
SV
23672021-02-08 Shahab Vahedi <shahab@synopsys.com>
2368
2369 PR tdep/27369
2370 * arc-linux-tdep.c (handle_atomic_sequence): New.
2371 (arc_linux_software_single_step): Call handle_atomic_sequence().
2372
29db1eb3
AB
23732021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2374
2375 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2376 function.
2377 (REQUIRE_WINDOW): Call is_valid member function.
2378 (REQUIRE_WINDOW_FOR_SETTER): New define.
2379 (gdbpy_tui_is_valid): Call is_valid member function.
2380 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2381 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2382 tui_active too.
2383 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2384 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2385 the function.
2386
e0c23e11
AB
23872021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2388
2389 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2390 for the title is not nullptr.
2391
1cf23996
AB
23922021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2393
2394 * tui-layout.c (saved_tui_windows): Delete.
2395 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2396 call new get_windows member function instead.
2397 (tui_get_window_by_name): Check in tui_windows.
2398 (tui_layout_window::apply): Don't add to tui_windows.
2399 * tui-layout.h (tui_layout_base::get_windows): New member function.
2400 (tui_layout_window::get_windows): Likewise.
2401 (tui_layout_split::get_windows): Likewise.
2402
a53a2657
AB
24032021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2404
2405 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2406 of the window objects.
2407
2708dbbd
AB
24082021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2409
2410 * python/python.c (gdbpy_print_stack): Reformat an error message.
2411
cd074e04
AB
24122021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2413
2414 * tui/tui-interp.c (tui_command_line_handler): New function.
2415 (tui_interp::resume): Register tui_command_line_handler as the
2416 input_handler.
2417 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2418 function.
2419 (tui_getc_1): Delete handling of '\n' and '\r'.
2420 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2421
4cf28e91
HD
24222021-02-07 Hannes Domani <ssbssa@yahoo.de>
2423
2424 * tui/tui-regs.c (tui_data_window::display_registers_from):
2425 Mark invisible register sub windows.
2426 (tui_data_window::check_register_values): Ignore invisible
2427 register sub windows.
2428
3537bc23
HD
24292021-02-07 Hannes Domani <ssbssa@yahoo.de>
2430
2431 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2432 n_spaces with a negative value.
2433
5fc2d6aa
HD
24342021-02-07 Hannes Domani <ssbssa@yahoo.de>
2435
2436 * tui/tui-regs.c (tui_data_window::display_registers_from):
2437 Add refresh_window call.
2438
83962f83
HD
24392021-02-07 Hannes Domani <ssbssa@yahoo.de>
2440
2441 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2442
0110ec82
SM
24432021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2444
2445 * symmisc.c (std_in, std_out, std_err): Remove.
2446 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2447
7c6944ab
TV
24482021-02-05 Tom de Vries <tdevries@suse.de>
2449
2450 PR breakpoints/27330
2451 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2452 glibc object file has debug info.
2453
e77b0004
TV
24542021-02-05 Tom de Vries <tdevries@suse.de>
2455
2456 PR symtab/27333
2457 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2458
0e857c82
TV
24592021-02-05 Tom de Vries <tdevries@suse.de>
2460
2461 PR breakpoints/27313
2462 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2463 syscall numbers.
2464
bdfea17e
TT
24652021-02-05 Tom Tromey <tom@tromey.com>
2466
2467 * compile/compile-c-support.c (get_compile_context)
2468 (c_get_compile_context, cplus_get_compile_context): Change return
2469 type.
2470 * language.c (language_defn::get_compile_instance): New method.
2471 * language.h (language_defn::get_compile_instance): Change return
2472 type. No longer inline.
2473 * c-lang.c (c_language::get_compile_instance): Change return type.
2474 (cplus_language::get_compile_instance): Change return type.
2475 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2476 Change return type.
2477 * compile/compile.c (compile_to_object): Update.
2478
1b30f421
TT
24792021-02-05 Tom Tromey <tom@tromey.com>
2480
2481 * parser-defs.h (write_exp_symbol_reference): Declare.
2482 * parse.c (write_exp_symbol_reference): New function.
2483 * p-exp.y (variable): Use write_exp_symbol_reference.
2484 * m2-exp.y (variable): Use write_exp_symbol_reference.
2485 * f-exp.y (variable): Use write_exp_symbol_reference.
2486 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2487 * c-exp.y (variable): Use write_exp_symbol_reference.
2488
ae710496
TV
24892021-02-05 Tom de Vries <tdevries@suse.de>
2490
2491 PR exp/27265
2492 * valarith.c (complex_binop): Throw an error if complex type can't
2493 be created.
2494
d3b54e63
TV
24952021-02-05 Tom de Vries <tdevries@suse.de>
2496
2497 PR symtab/27307
2498 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2499 return.
2500
fc9a13fb
TV
25012021-02-05 Tom de Vries <tdevries@suse.de>
2502
2503 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2504
04b4939b
MF
25052021-02-04 Mike Frysinger <vapier@gentoo.org>
2506
2507 * configure.tgt (riscv*-*-*): Set gdb_sim.
2508
6ff267e1
SM
25092021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2510
2511 * target.c (target_is_non_stop_p): Return bool.
2512 * target.h (target_is_non_stop_p): Return bool.
2513
fdbc5215
SM
25142021-02-04 Simon Marchi <simon.marchi@efficios.com>
2515
2516 * record-full.c (record_full_async_inferior_event_handler):
2517 Don't clear async event handler.
2518 (record_full_base_target::wait): Clear async event handler at
2519 beginning.
2520
85d3ad8e
SM
25212021-02-04 Simon Marchi <simon.marchi@efficios.com>
2522
2523 * record-btrace.c (record_btrace_handle_async_inferior_event):
2524 Don't clear async event handler.
2525 (record_btrace_target::wait): Clear async event handler at
2526 beginning.
2527
baa8575b
SM
25282021-02-04 Simon Marchi <simon.marchi@efficios.com>
2529
2530 * remote.c (remote_target::wait): Clear async event handler at
2531 beginning, mark if needed at the end.
2532 (remote_async_inferior_event_handler): Don't set or clear async
2533 event handler.
2534
6b36ddeb
SM
25352021-02-04 Simon Marchi <simon.marchi@efficios.com>
2536
2537 * async-event.h (async_event_handler_func): Add documentation.
2538 * async-event.c (check_async_event_handlers): Don't clear
2539 async_event_handler ready flag.
2540 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2541 flag.
2542 * record-btrace.c (record_btrace_handle_async_inferior_event):
2543 Likewise.
2544 * record-full.c (record_full_async_inferior_event_handler):
2545 Likewise.
2546 * remote-notif.c (remote_async_get_pending_events_handler):
2547 Likewise.
2548 * remote.c (remote_async_inferior_event_handler): Likewise.
2549
72d383bb
SM
25502021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2551
2552 * infrun.c (handle_inferior_event): Move stop_soon variable to
2553 inner scope.
2554
408f6686
PA
25552021-02-03 Pedro Alves <pedro@palves.net>
2556
2557 * infcmd.c (detach_command): Hold strong reference to target, and
2558 if all-stop on entry, restart threads on exit.
2559 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2560 (restart_stepped_thread): ... this new function. Also handle
2561 trap_expected.
2562 (restart_after_all_stop_detach): New function.
2563 * infrun.h (restart_after_all_stop_detach): Declare.
2564
ac7d717c
PA
25652021-02-03 Pedro Alves <pedro@palves.net>
2566
2567 * infrun.c (struct step_over_info): Initialize fields.
2568 (prepare_for_detach): Handle ongoing in-line step over.
2569
e87f0fe8
PA
25702021-02-03 Pedro Alves <pedro@palves.net>
2571
2572 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2573 here...
2574 * remote.c (remote_target::remote_detach_1): ... and here ...
2575 * target.c (target_detach): ... instead of here.
2576 * target.h (target_ops::detach): Add comment.
2577
8ff53139
PA
25782021-02-03 Pedro Alves <pedro@palves.net>
2579
2580 * infrun.c (struct wait_one_event): Move higher up.
2581 (prepare_for_detach): Abort in-progress displaced steps instead of
2582 letting them complete.
2583 (handle_one): If the inferior is detaching, don't add the thread
2584 back to the global step-over chain.
2585 (restart_threads): Don't restart threads if detaching.
2586 (handle_signal_stop): Remove inferior::detaching reference.
2587
91475068
PA
25882021-02-03 Pedro Alves <pedro@palves.net>
2589
2590 * infrun.c (prepare_for_detach): Don't release scoped_restore
2591 before returning.
2592
d758e62c
PA
25932021-02-03 Pedro Alves <pedro@palves.net>
2594
2595 * infrun.c (handle_one): New function, factored out from ...
2596 (stop_all_threads): ... here.
2597
b0083dd7
PA
25982021-02-03 Pedro Alves <pedro@palves.net>
2599
2600 * remote.c (remote_notif_stop_ack): Don't error out on
2601 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2602 (remote_target::discard_pending_stop_replies): Don't delete
2603 in-flight notification; instead, clear its contents.
2604
621cc310
PA
26052021-02-03 Pedro Alves <pedro@palves.net>
2606
2607 * remote.c (extended_remote_target::attach): Set target async in
2608 the target-non-stop path too.
2609
2ab76a18
PA
26102021-02-03 Pedro Alves <pedro@palves.net>
2611
2612 PR gdb/27055
2613 * infrun.c (handle_signal_stop): Move main context_switch call
2614 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2615
2e3773ff
LS
26162021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2617
2618 * NEWS (Changed commands): Add entry for the behavior change of
2619 the inferior command.
2620 * inferior.c (inferior_command): When no argument is given to the
2621 inferior command, display info about the currently selected
2622 inferior.
2623
e57933dc
SM
26242021-02-02 Simon Marchi <simon.marchi@efficios.com>
2625
2626 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2627 a sect_offset.
2628 (read_attribute_reprocess): Adjust.
2629
2b0c7f41
SM
26302021-02-02 Simon Marchi <simon.marchi@efficios.com>
2631
2632 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2633 <gnu_ranges_base>: ... this...
2634 <rnglists_base>: ... and this.
2635 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2636 <gnu_ranges_base>: ... this...
2637 <rnglists_base>: ... and this.
2638 (read_cutu_die_from_dwo): Adjust
2639 (dwarf2_get_pc_bounds): Adjust
2640 (dwarf2_record_block_ranges): Adjust.
2641 (read_full_die_1): Adjust
2642 (partial_die_info::read): Adjust.
2643 (read_rnglist_index): Adjust.
2644
a1c40103
SM
26452021-02-02 Simon Marchi <simon.marchi@efficios.com>
2646
2647 PR gdb/26813
2648 * dwarf2/read.c (read_loclists_rnglists_header): Add
2649 header_offset parameter and use it.
2650 (read_loclist_index): Read header of the current contribution,
2651 not the one at the beginning of the section.
2652 (read_rnglist_index): Likewise.
2653
b1829e1b
SM
26542021-02-02 Simon Marchi <simon.marchi@efficios.com>
2655
2656 PR gdb/26813
2657 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2658 requires_reprocessing flag.
2659 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2660 DW_FORM_loclistx.
2661 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2662 and DW_FORM_loclistx.
2663 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2664 instead of set_address for DW_FORM_loclistx and
2665 DW_FORM_rnglistx.
2666
0c800c6e
SM
26672021-02-02 Simon Marchi <simon.marchi@efficios.com>
2668
2669 * dwarf2/read.c (read_loclist_index): Remove bound check for
2670 start of offset.
2671 (read_rnglist_index): Likewise.
2672
05787bad
SM
26732021-02-02 Simon Marchi <simon.marchi@efficios.com>
2674
2675 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2676 of the offset.
2677
5e4d9bbc
SM
26782021-02-02 Simon Marchi <simon.marchi@efficios.com>
2679
2680 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2681
a0c1eeba
SM
26822021-02-02 Simon Marchi <simon.marchi@efficios.com>
2683
2684 * dwarf2/read.c (read_loclist_index): Change complaints into
2685 errors.
2686
2bd3e4b8
TV
26872021-02-02 Tom de Vries <tdevries@suse.de>
2688
2689 PR symtab/24620
2690 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2691 psymtab == nullptr.
2692
82a1fd3a
AB
26932021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2694
2695 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2696 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2697 here from linux-tdep.c and given a new name. Minor cleanups.
2698 (gcore_collect_regset_section_cb): Likewise.
2699 (gcore_collect_thread_registers): Likewise.
2700 (gcore_build_thread_register_notes): Likewise.
2701 (gcore_find_signalled_thread): Likewise.
2702 * gcore.h (gcore_build_thread_register_notes): Declare.
2703 (gcore_find_signalled_thread): Declare.
2704 * fbsd-tdep.c: Add 'gcore.h' include.
2705 (struct fbsd_collect_regset_section_cb_data): Delete.
2706 (fbsd_collect_regset_section_cb): Delete.
2707 (fbsd_collect_thread_registers): Delete.
2708 (struct fbsd_corefile_thread_data): Delete.
2709 (fbsd_corefile_thread): Delete.
2710 (fbsd_make_corefile_notes): Call
2711 gcore_build_thread_register_notes instead of the now deleted
2712 FreeBSD code.
2713 * linux-tdep.c: Add 'gcore.h' include.
2714 (struct linux_collect_regset_section_cb_data): Delete.
2715 (linux_collect_regset_section_cb): Delete.
2716 (linux_collect_thread_registers): Delete.
2717 (linux_corefile_thread): Call
2718 gcore_build_thread_register_notes.
2719 (find_signalled_thread): Delete.
2720 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2721
ebde6f2d
TV
27222021-01-29 Tom de Vries <tdevries@suse.de>
2723
2724 PR breakpoints/26063
2725 * infrun.c (process_event_stop_test): Reset
2726 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2727 changed.
2728
0f93c3a2
AB
27292021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2730
2731 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2732 assert. Extend the header comment.
2733
f237f998
AB
27342021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2735
2736 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2737 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2738 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2739 (tui_locator_win_info_ptr): Delete declaration.
2740 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2741 (tui_disasm_window::set_contents): Fetch state from tui_location
2742 global.
2743 (tui_get_begin_asm_address): Likewise.
2744 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2745 for locator window.
2746 (get_locator_window): Delete.
2747 (initialize_known_windows): Treat locator window just like all the
2748 rest.
2749 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2750 (tui_source_window::set_contents): Fetch state from tui_location
2751 global.
2752 (tui_source_window::showing_source_p): Likewise.
2753 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2754 (_locator): Delete.
2755 (tui_locator_win_info_ptr): Delete.
2756 (tui_locator_window::make_status_line): Fetch state from
2757 tui_location global.
2758 (tui_locator_window::rerender): Remove check of 'handle',
2759 reindent function body.
2760 (tui_locator_window::set_locator_fullname): Delete.
2761 (tui_locator_window::set_locator_info): Delete.
2762 (tui_update_locator_fullname): Delete.
2763 (tui_show_frame_info): Likewise.
2764 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2765 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2766 tui/tui-location.h and renamed to
2767 tui_location_tracker::set_location.
2768 (tui_locator_window::set_locator_fullname): Moved to
2769 tui/tui-location.h and renamed to
2770 tui_location_tracker::set_fullname.
2771 (tui_locator_window::full_name): Delete.
2772 (tui_locator_window::proc_name): Delete.
2773 (tui_locator_window::line_no): Delete.
2774 (tui_locator_window::addr): Delete.
2775 (tui_locator_window::gdbarch): Delete.
2776 (tui_update_locator_fullname): Delete declaration.
2777 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2778 for locator window.
2779 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2780 (tui_display_main): Call function on tui_location directly.
2781 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2782 * tui/tui-location.c: New file.
2783 * tui/tui-location.h: New file.
2784
8ee511af
SM
27852021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2786
2787 * gdbtypes.h (get_type_arch): Rename to...
2788 (struct type) <arch>: ... this, update all users.
2789
6ac37371
SM
27902021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2791
2792 * gdbtypes.h (struct type) <arch>: Rename to...
2793 <arch_owner>: ... this, update all users.
2794 <objfile>: Rename to...
2795 <objfile_owner>: ... this, update all users.
2796
24cf6389
AB
27972021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2798
2799 * gdbcmd.h (execute_command_to_string): Update comment.
2800 * top.c (execute_command_to_string): Update header comment.
2801
2a7f6487
TV
28022021-01-28 Tom de Vries <tdevries@suse.de>
2803
2804 PR breakpoints/27205
2805 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2806 (create_longjmp_master_breakpoint_names): New function, factored out
2807 of ...
2808 (create_longjmp_master_breakpoint): ... here. Only try to install
2809 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2810 breakpoint in libc.so failed.
2811
59b59f08
LS
28122021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2813
2814 PR gdb/27133
2815 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2816 unique_ptr is released when the wrapped pointer is kept for later
2817 use.
2818
807f647c
MM
28192021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2820
2821 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2822 BLR and BR instructions.
2823 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2824 (enum aarch64_masks): New.
2825
4ef367bf
TT
28262021-01-26 Tom Tromey <tromey@adacore.com>
2827
2828 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2829 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2830 (windows_init_thread_list, windows_nat::handle_load_dll)
2831 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2832 (windows_nat_target::resume)
2833 (windows_nat_target::get_windows_debug_event)
2834 (windows_nat_target::interrupt, windows_xfer_memory)
2835 (windows_nat_target::close): Update.
2836 * nat/windows-nat.c (DEBUG_EVENTS): Use
2837 debug_prefixed_printf_cond.
2838 (matching_pending_stop, fetch_pending_stop)
2839 (continue_last_debug_event): Update.
2840
4cb1265b
MS
28412020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2842
2843 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2844 elfcore_write_file_note.
2845
d0cc52bd
SV
28462021-01-26 Shahab Vahedi <shahab@synopsys.com>
2847
2848 * arc-tdep.c (arc_add_reggroups): New function.
2849 (arc_gdbarch_init): Call arc_add_reggroups.
2850
ac3571d9 28512021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
2852
2853 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2854
9f6c202e
TV
28552021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2856 Simon Marchi <simon.marchi@polymtl.ca>
2857 Tom de Vries <tdevries@suse.de>
2858
2859 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2860 DW_AT_ranges.
2861
a625a8c9
TT
28622021-01-25 Tom Tromey <tromey@adacore.com>
2863
2864 * dwarf2/read.c (get_mpz): New function.
2865 (get_dwarf2_rational_constant): Use it.
2866
19184910
TT
28672021-01-25 Tom Tromey <tromey@adacore.com>
2868
2869 * ada-lang.c (resolve_subexp): Handle array context.
2870
b10bae18
TT
28712021-01-23 Tom Tromey <tom@tromey.com>
2872
2873 PR compile/25575
2874 * compile/compile-loc2c.c (note_register): New function.
2875 (pushf_register_address, pushf_register): Use it.
2876
3637a558
TT
28772021-01-23 Tom Tromey <tom@tromey.com>
2878
2879 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2880 Change type of "registers_used".
2881 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2882 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2883 (locexpr_generate_c_location, loclist_generate_c_location): Change
2884 type of "registers_used".
2885 * compile/compile.h (compile_dwarf_expr_to_c)
2886 (compile_dwarf_bounds_to_c): Update.
2887 * compile/compile-loc2c.c (pushf_register_address)
2888 (pushf_register, do_compile_dwarf_expr_to_c)
2889 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2890 of "registers_used".
2891 * compile/compile-c.h (generate_c_for_variable_locations):
2892 Update.
2893 * compile/compile-c-symbols.c (generate_vla_size)
2894 (generate_c_for_for_one_variable): Change type of
2895 "registers_used".
2896 (generate_c_for_variable_locations): Return std::vector.
2897 * compile/compile-c-support.c (generate_register_struct): Change
2898 type of "registers_used".
2899 (compute): Update.
2900
9f7f6cb8
TT
29012021-01-23 Tom Tromey <tom@tromey.com>
2902
2903 * compile/compile-internal.h (class compile_instance)
2904 <set_arguments>: Change return type.
2905 * compile/compile.c (compile_to_object): Remove call to reset.
2906 (compile_instance::set_arguments): Change return type.
2907
dd5ca05f
SM
29082021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2909
2910 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2911 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2912
d3ee35db
LS
29132021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2914
2915 * Makefile.in (SELFTESTS_SRCS): Add
2916 unittests/gdb_tilde_expand-selftests.c.
2917 * unittests/gdb_tilde_expand-selftests.c: New file.
2918
9d2d8a16
AB
29192021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2920
2921 PR cli/25956
2922 * NEWS: Mention new command.
2923 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2924 (version_style): Define.
2925 (cli_style_option::cli_style_option): Add intensity parameter, and
2926 use as appropriate.
2927 (_initialize_cli_style): Register version style set/show commands.
2928 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2929 (version_style): Declare.
2930 * top.c (print_gdb_version): Use version_stype, and styled_string
2931 to print the GDB version string.
2932
e7b43072
AB
29332021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2934
2935 * utils.c (emit_style_escape): Only emit an escape sequence if the
2936 requested style is different than the current applied style.
2937 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2938 current applied_style.
2939 (fputs_styled): Remove is_default check.
2940 (fputs_styled_unfiltered): Likewise.
2941 (vfprintf_styled_no_gdbfmt): Likewise.
2942
2189c312
SM
29432021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2944
2945 * remote.h (remote_debug_printf): New.
2946 (remote_debug_printf_nofunc): New.
2947 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2948 * remote.c: Use above macros throughout file.
2949
02349803
SM
29502021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2951
2952 * remote.h (remote_debug): Change to bool.
2953 * remote.c (remote_debug): Change to bool.
2954 (_initialize_remote): Adjust.
2955
cda09ec9
SM
29562021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2957
2958 * target.h (remote_debug): Move to...
2959 * remote.h (remote_debug): ... here.
2960 * top.c (remote_debug): Move to...
2961 * remote.c (remote_debug): ... here.
2962 * remote-sim.c: Include remote.h.
2963
baf2b57f
SM
29642021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2965
2966 * cli/cli-cmds.c (show_remote_debug): Remove.
2967 (show_remote_timeout): Remove.
2968 (_initialize_cli_cmds): Don't register commands.
2969 * remote.c (show_remote_debug): Move here.
2970 (show_remote_timeout): Move here.
2971 (_initialize_remote): Register commands.
2972
344e9841
SM
29732021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2974
2975 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2976 type::objfile method instead.
2977
30625020
SM
29782021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2979
2980 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2981 use the type::is_objfile_owned method.
2982
5b7d941b
SM
29832021-01-22 Simon Marchi <simon.marchi@efficios.com>
2984
2985 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2986 (TYPE_OWNER): Remove.
2987 (TYPE_OBJFILE): Adjust.
2988 (struct main_type) <flag_objfile_owned>: Rename to...
2989 <m_flag_objfile_owned>: ... this.
2990 <owner>: Rename to...
2991 <m_owner>: ... this.
2992 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2993 methods.
2994 (TYPE_ALLOC): Adjust.
2995 * gdbtypes.c (alloc_type): Adjust.
2996 (alloc_type_arch): Adjust.
2997 (alloc_type_copy): Adjust.
2998 (get_type_arch): Adjust.
2999 (smash_type): Adjust.
3000 (lookup_array_range_type): Adjust.
3001 (recursive_dump_type): Adjust.
3002 (copy_type_recursive): Adjust.
3003 * compile/compile-c-types.c (convert_func): Adjust.
3004 (convert_type_basic): Adjust.
3005 * compile/compile-cplus-types.c (compile_cplus_convert_func):
3006 Adjust.
3007 * language.c
3008 (language_arch_info::type_and_symbol::alloc_type_symbol):
3009 Adjust.
3010
d5d24e12
LM
30112021-01-21 Luis Machado <luis.machado@linaro.org>
3012
3013 * coffread.c (enter_linenos): Passing string to complaint.
3014 * valops.c (value_assign): Make array view.
3015
a59902a7
SM
30162021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3017
3018 * auto-load.h (debug_auto_load): Move here.
3019 (auto_load_debug_printf): New.
3020 * auto-load.c: Use auto_load_debug_printf.
3021 (debug_auto_load): Move to header.
3022 * linux-thread-db.c (try_thread_db_load): Use
3023 auto_load_debug_printf.
3024 * main.c (captured_main_1): Likewise.
3025
d3abc0ce
SM
30262021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3027
3028 * f-valprint.c (f77_array_offset_tbl): Remove.
3029
1e15fcac
SM
30302021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3031
3032 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3033
439706e6
SM
30342021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3035
3036 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3037 of gdb_select.
3038
325d39e4
HD
30392021-01-21 Hannes Domani <ssbssa@yahoo.de>
3040
3041 PR python/19151
3042 * python/py-breakpoint.c (bppy_get_location): Handle
3043 bp_hardware_breakpoint.
3044 (bppy_init): Likewise.
3045 (gdbpy_breakpoint_created): Likewise.
3046
7cb6d92a
SM
30472021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3048
3049 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3050
d4dd4fca
SM
30512021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3052
3053 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3054 (_initialize_gdb_bfd): Adjust.
3055
de53369b
SM
30562021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3057
3058 PR gdb/26828
3059 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3060
17e593e9
SM
30612021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3062
3063 * dwarf2/read.c (follow_die_offset): Add logging.
3064 (dwarf2_per_objfile::age_comp_units): Add logging.
3065
6bd434d6
SM
30662021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3067
3068 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3069 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3070 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3071 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3072 * arm-tdep.c (struct frame_unwind): Make static.
3073 * auto-load.c (auto_load_safe_path_vec): Make static.
3074 * csky-tdep.c (csky_stub_unwind): Make static.
3075 * gdbarch.c (gdbarch_data_registry): Make static.
3076 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3077 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3078 * i386-tdep.c (i386_frame_setup_skip_insns,
3079 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3080 Make static.
3081 * infrun.c (observer_mode): Make static.
3082 * linux-nat.c (sigchld_action): Make static.
3083 * linux-thread-db.c (thread_db_list): Make static.
3084 * maint-test-options.c (maintenance_test_options_list):
3085 * mep-tdep.c (mep_csr_registers): Make static.
3086 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3087 (stats): Make static.
3088 * nat/linux-osdata.c (struct osdata_type): Make static.
3089 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3090 * progspace.c (last_program_space_num): Make static.
3091 * python/py-param.c (struct parm_constant): Remove struct type
3092 name.
3093 (parm_constants): Make static.
3094 * python/py-record-btrace.c (btpy_list_methods): Make static.
3095 * python/py-record.c (recpy_gap_type): Make static.
3096 * record.c (record_goto_cmdlist): Make static.
3097 * regcache.c (regcache_descr_handle): Make static.
3098 * registry.h (DEFINE_REGISTRY): Make definition static.
3099 * symmisc.c (std_in, std_out, std_err): Make static.
3100 * top.c (previous_saved_command_line): Make static.
3101 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3102 static.
3103 * unittests/command-def-selftests.c (nr_duplicates,
3104 nr_invalid_prefixcmd, lists): Make static.
3105 * unittests/observable-selftests.c (test_notification): Make
3106 static.
3107 * unittests/optional/assignment/1.cc (counter): Make static.
3108 * unittests/optional/assignment/2.cc (counter): Make static.
3109 * unittests/optional/assignment/3.cc (counter): Make static.
3110 * unittests/optional/assignment/4.cc (counter): Make static.
3111 * unittests/optional/assignment/5.cc (counter): Make static.
3112 * unittests/optional/assignment/6.cc (counter): Make static.
3113
a6c11cbb
JS
31142021-01-20 Joel Sherrill <joel@rtems.org>
3115
3116 PR gdb/27219
3117 * remote.c (struct remote_thread_info) <resume_state>: Rename
3118 to...
3119 <get_resume_state>: ... this.
3120 (remote_target::resume): Adjust.
3121 (remote_target::commit_resume): Adjust.
3122 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3123
6f52fdf4
SDJ
31242021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3125 Tom Tromey <tom@tromey.com>
3126
3127 * stap-probe.c (stap_parse_single_operand): Handle '!'
3128 operator.
3129 (stap_parse_argument_conditionally): Likewise.
3130 Skip spaces after processing open-parenthesis sub-expression.
3131 (stap_parse_argument_1): Skip spaces after call to
3132 stap_parse_argument_conditionally.
3133 Handle case when right-side expression is a parenthesized
3134 sub-expression.
3135 Skip spaces after call to stap_parse_argument_1.
3136
1c3b85ad
LS
31372021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3138
3139 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3140
a9a87d35
LM
31412021-01-19 Luis Machado <luis.machado@linaro.org>
3142
3143 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3144 memory and save data.
3145 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3146 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3147 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3148 (trad_frame_value_bytes_p): Remove.
3149 (trad_frame_reset_saved_regs): Adjust documentation.
3150 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3151 constructor and reset the state of the registers.
3152 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3153 (trad_frame_value_bytes_p, trad_frame_set_value)
3154 (trad_frame_set_realreg, trad_frame_set_addr)
3155 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3156 (trad_frame_set_reg_realreg): Update to call member function.
3157 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3158 (trad_frame_get_prev_register): Likewise.
3159
3160 * aarch64-tdep.c (aarch64_analyze_prologue)
3161 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3162 (aarch64_prologue_prev_register): Update to use member functions.
3163 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3164 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3165 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3166 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3167 (arm_make_epilogue_frame_cache): Likewise.
3168 * avr-tdep.c (avr_frame_unwind_cache)
3169 (avr_frame_prev_register): Likewise.
3170 * cris-tdep.c (cris_scan_prologue): Likewise.
3171 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3172 * frv-tdep.c (frv_analyze_prologue): Likewise.
3173 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3174 * lm32-tdep.c (lm32_frame_cache): Likewise.
3175 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3176 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3177 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3178 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3179 (reset_saved_regs): Adjust to set realreg.
3180 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3181 call member functions.
3182 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3183 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3184 (s390_backchain_frame_unwind_cache): Likewise.
3185 * score-tdep.c (score7_analyze_prologue)
3186 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3187 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3188 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3189 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3190 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3191 * tilegx-tdep.c (tilegx_analyze_prologue)
3192 (tilegx_frame_cache): Likewise.
3193 * v850-tdep.c (v850_frame_cache): Likewise.
3194 * vax-tdep.c (vax_frame_cache): Likewise.
3195
bdec2917
LM
31962021-01-19 Luis Machado <luis.machado@linaro.org>
3197
3198 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3199 of buffer + length.
3200 (put_frame_register_bytes): Likewise.
3201 Adjust documentation.
3202 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3203 (safe_frame_unwind_memory): Likewise.
3204 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3205 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3206 gdb::array_view.
3207 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3208 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3209 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3210 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3211 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3212 * dwarf2/loc.c (rw_pieced_value): Likewise.
3213 * hppa-tdep.c (hppa_frame_cache): Likewise.
3214 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3215 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3216 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3217 (i386_linux_rt_sigtramp_start): Likewise.
3218 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3219 * i386-tdep.c (i386_register_to_value): Likewise.
3220 * i387-tdep.c (i387_register_to_value): Likewise.
3221 * ia64-tdep.c (ia64_register_to_value): Likewise.
3222 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3223 (m32r_linux_rt_sigtramp_start): Likewise.
3224 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3225 * m68k-tdep.c (m68k_register_to_value): Likewise.
3226 * mips-tdep.c (mips_register_to_value)
3227 (mips_value_to_register): Likewise.
3228 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3229 (ppcfbsd_sigtramp_frame_cache): Likewise.
3230 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3231 (ppcobsd_sigtramp_frame_cache): Likewise.
3232 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3233 (rs6000_register_to_value): Likewise.
3234 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3235 * tramp-frame.c (tramp_frame_start): Likewise.
3236 * valops.c (value_assign): Likewise.
3237
ccbe4c82
LM
32382021-01-19 Luis Machado <luis.machado@linaro.org>
3239
3240 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3241 array_view.
3242 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3243 instead of buffer and size.
3244 (trad_frame_set_reg_value_bytes): Likewise.
3245 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3246 (trad_frame_set_value_bytes): Likewise.
3247
0e7620dc
MF
32482021-01-18 Mike Frysinger <vapier@gentoo.org>
3249
3250 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3251
6a9ad81c
AB
32522021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3253
3254 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3255 (riscv_fbsd_gregset): Use riscv_supply_regset.
3256 (riscv_fbsd_fpregset): Likewise.
3257 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3258 (riscv_linux_fregset): Likewise.
3259 * riscv-tdep.c (riscv_supply_regset): Define new function.
3260 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3261
d3d7d1ba
TV
32622021-01-18 Tom de Vries <tdevries@suse.de>
3263
3264 PR tdep/27172
3265 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3266 New macro.
3267 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3268 for SEGV_BNDERR.
3269
aa2838cc
SM
32702021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3271
3272 * remote.c (class remote_target) <remote_hostio_send_command,
3273 remote_hostio_parse_result>: Constify parameter.
3274 (remote_hostio_parse_result): Likewise.
3275 (remote_target::remote_hostio_send_command): Adjust.
3276 (remote_target::remote_hostio_pread_vFile): Adjust.
3277 (remote_target::fileio_readlink): Adjust.
3278 (remote_target::fileio_fstat): Adjust.
3279
b5c8f22d
SM
32802021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3281
3282 * remote.c (remote_target::start_remote): Move wait_status to
3283 narrower scope.
3284
e3b2741b
SM
32852021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3286
3287 * remote.c (class remote_target):
3288 <add_current_inferior_and_thread>: Constify parameter.
3289 (stop_reply_extract_thread): Likewise.
3290 (remote_target::get_current_thread): Likewise.
3291 (remote_target::add_current_inferior_and_thread): Likewise.
3292
cecb1912
SM
32932021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3294
3295 * remote.c (class remote_target)
3296 <remote_unpack_thread_info_response,
3297 parse_threadlist_response>: Constify parameter and/or return
3298 value and or local variable.
3299 (stub_unpack_int): Likewise.
3300 (unpack_nibble): Likewise.
3301 (unpack_byte): Likewise.
3302 (unpack_int): Likewise.
3303 (unpack_string): Likewise.
3304 (unpack_threadid): Likewise.
3305 (remote_target::remote_unpack_thread_info_response): Likewise.
3306 (remote_target::parse_threadlist_response): Likewise.
3307
5a11fff0
AB
33082021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3309
3310 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3311
17e89137
LS
33122021-01-14 Lancelot Six <lsix@lancelotsix.com>
3313
3314 * MAINTAINERS (Write After Approval): Add myself.
3315
58eadc4b
BE
33162021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3317
3318 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3319 because is_trivially_default_constructible was first implemented with
3320 gcc-5.
3321
5fae2a2c
TV
33222021-01-14 Tom de Vries <tdevries@suse.de>
3323
3324 PR breakpoints/27151
3325 * objfiles.h (in_plt_section): Handle .plt.sec.
3326
8f66807b
AB
33272021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3328
3329 PR gdb/26819
3330 * remote.c
3331 (remote_target::select_thread_for_ambiguous_stop_reply): New
3332 member function.
3333 (remote_target::process_stop_reply): Call
3334 select_thread_for_ambiguous_stop_reply.
3335
bd497355
SM
33362021-01-13 Simon Marchi <simon.marchi@efficios.com>
3337
3338 * record-btrace.c (class record_btrace_target): Remove.
3339 (record_btrace_target::commit_resume): Remove.
3340 * record-full.c (class record_full_target): Remove.
3341 (record_full_target::commit_resume): Remove.
3342
c9d22089
SM
33432021-01-13 Simon Marchi <simon.marchi@efficios.com>
3344
3345 * remote.c (enum class resume_state): New.
3346 (struct resumed_pending_vcont_info): New.
3347 (struct remote_thread_info) <resume_state, set_not_resumed,
3348 set_resumed_pending_vcont, resumed_pending_vcont_info,
3349 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3350 New.
3351 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3352 (remote_target::remote_add_thread): Adjust.
3353 (remote_target::process_initial_stop_replies): Adjust.
3354 (remote_target::resume): Adjust.
3355 (remote_target::commit_resume): Rely on state in
3356 remote_thread_info and not on tp->executing.
3357 (remote_target::process_stop_reply): Adjust.
3358
d8d1feb4
SM
33592021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3360
3361 * arc-tdep.h (arc_debug_printf): New.
3362 * arc-tdep.c: Use arc_debug_printf.
3363 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3364 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3365 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3366
fb0f5031
SM
33672021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3368
3369 * arc-tdep.h (arc_debug): Change type to bool.
3370 * arc-tdep.c (arc_debug): Change type to bool.
3371 (arc_analyze_prologue): Adjust.
3372 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3373 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3374
5bf7e91b
SM
33752021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3376
3377 * auto-load.c (auto_load_objfile_script_1): Use bool.
3378 (execute_script_contents): Use bool.
3379
db972fce
SM
33802021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3381
3382 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3383 comment here.
3384 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3385 comment to header.
3386 * extension-priv.h (struct extension_language_script_ops)
3387 <auto_load_enabled>: Return bool.
3388 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3389 comment here.
3390 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3391 comment to header.
3392 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3393 move comment here.
3394 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3395 move comment to header.
3396 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3397 move comment here.
3398 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3399 move comment to header.
3400
5e12f48f
SM
34012021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3402
3403 * auto-load.h (file_is_auto_load_safe): Change return type to
3404 bool, move comment here.
3405 * auto-load.c (file_is_auto_load_safe): Change return type and
3406 advice_printed to bool. Move comment to header.
3407
54ca9002
SM
34082021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3409
3410 * jit.c (jit_debug_printf): New, use throughout file.
3411
24a7f1b5
SM
34122021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3413
3414 * infrun.c (normal_stop): Fix indentation.
3415
fe7a351a
SM
34162021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3417
3418 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3419 declarations to ...
3420 * symfile.h: ... here.
3421 * symfile.c: Update doc.
3422
16e9019e
SM
34232021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3424
3425 * target.h (baud_rate, serial_parity): Move declarations...
3426 * serial.h: ... here.
3427 * main.c: Include serial.h.
3428 * serial.c (baud_rate, serial_parity): Update doc.
3429
b2f2ae0d
SM
34302021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3431
3432 * top.c (pre_init_ui_hook): Remove.
3433
5291fe3c
SP
34342021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3435
3436 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3437 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3438 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3439 * features/aarch64-fpu.xml: Add bfloat16 type.
3440
ce38f5ed
AB
34412021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3442
3443 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3444
7c654b71
AB
34452021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3446
3447 * f-exp.y (dot_ops): Rename to...
3448 (fortran_operators): ...this. Add a header comment. Add symbol
3449 based operators.
3450 (yylex): Update to use fortran_operators not dot_ops. Remove
3451 special handling for '**', this is now included in
3452 fortran_operators.
3453
c6185dce
SM
34542021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3455
3456 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3457 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3458 * aarch64-tdep.c: Use aarch64_debug_printf.
3459
eef401dc
SM
34602021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3461
3462 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3463 file.
3464
062eaacb
SM
34652021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3466
3467 * jit.c (jit_debug): Change type to bool.
3468 (_initialize_jit): Adjust.
3469
54585eee
TT
34702021-01-09 Tom Tromey <tom@tromey.com>
3471
3472 PR compile/23672
3473 * compile/compile.c (compile_to_object): Avoid crash when
3474 osabi_triplet_regexp returns NULL.
3475
bc167b6b
TT
34762021-01-09 Tom Tromey <tom@tromey.com>
3477
3478 * tracepoint.h (class collection_list) <append_exp>: Take a
3479 std::string.
3480 * tracepoint.c (collection_list::append_exp): Take a std::string.
3481 (encode_actions_1): Update.
3482
8fc48b79
TT
34832021-01-08 Tom Tromey <tromey@adacore.com>
3484
3485 * parse.c (parse_expression): Add void_context_p parameter. Use
3486 parse_exp_in_context.
3487 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3488 parse_expression.
3489 (print_command, call_command): Update.
3490 * expression.h (parse_expression): Add void_context_p parameter.
3491
3c8c6de2
AB
34922021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3493
3494 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3495 for internalvar components that have a dynamic location.
3496
1940319c
TV
34972021-01-08 Tom de Vries <tdevries@suse.de>
3498
3499 PR gdb/26881
3500 * breakpoint.c (create_exception_master_breakpoint_probe)
3501 (create_exception_master_breakpoint_hook): Factor out
3502 of ...
3503 (create_exception_master_breakpoint): ... here. Only try to install
3504 the master exception breakpoint in objfile.debug using the
3505 _Unwind_DebugHook method, if the install using probes in objfile
3506 failed.
3507
e3436813
AB
35082021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3509
3510 * f-lang.c (fortran_value_subarray): Call value_from_component.
3511
e904f56d
MF
35122021-01-07 Mike Frysinger <vapier@gentoo.org>
3513
3514 * remote-sim.c: Include memory-map.h.
3515 (gdbsim_target): Define memory_map override.
3516 (gdbsim_target::memory_map): Define.
3517
959d6a67
TT
35182021-01-07 Tom Tromey <tromey@adacore.com>
3519
3520 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3521
d4813f10
TT
35222021-01-07 Tom Tromey <tromey@adacore.com>
3523
3524 * ada-lang.c (add_component_interval): Start loop using vector's
3525 updated size.
3526
b49180ac
TT
35272021-01-06 Tom Tromey <tromey@adacore.com>
3528
3529 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3530 Do not cast result.
3531 * valarith.c (fixed_point_binop): Handle multiplication
3532 and division specially.
3533 * valops.c (value_to_gdb_mpq): New function.
3534 (value_cast_to_fixed_point): Use it.
3535
55195361
HD
35362021-01-05 Hannes Domani <ssbssa@yahoo.de>
3537
3538 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3539 Call wnoutrefresh instead of tui_win_info::refresh_window.
3540
1b6d4bb2
HD
35412021-01-05 Hannes Domani <ssbssa@yahoo.de>
3542
3543 * tui/tui-source.c (tui_source_window::show_line_number):
3544 Redraw second space after line number.
3545
b5ff370e
HD
35462021-01-05 Hannes Domani <ssbssa@yahoo.de>
3547
3548 PR tui/26927
3549 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3550 Fix source pad size in prefresh.
3551 (tui_source_window_base::show_source_content): Grow source pad
3552 if necessary.
3553
c68ea49f
MF
35542021-01-04 Mike Frysinger <vapier@gentoo.org>
3555
3556 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3557 (bfin_frame_align): Use align_down.
3558
e4ad960a
TV
35592021-01-04 Tom de Vries <tdevries@suse.de>
3560
3561 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3562 terminators that do not terminate anything.
3563
3ec3145c
SM
35642021-01-04 Simon Marchi <simon.marchi@efficios.com>
3565
3566 * debug.c (debug_print_depth): New.
3567 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3568 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3569 * infrun.c (start_step_over): Use
3570 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3571 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3572 INFRUN_SCOPED_DEBUG_START_END.
3573 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3574
e71daf80
SM
35752021-01-04 Simon Marchi <simon.marchi@efficios.com>
3576
3577 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3578
335709bc
SM
35792021-01-04 Simon Marchi <simon.marchi@efficios.com>
3580
3581 * utils.c (vfprintf_unfiltered): Print timestamp only when
3582 previous debug output ended with a newline.
3583
098caef4
LM
35842021-01-04 Luis Machado <luis.machado@linaro.org>
3585
3586 Update all users of trad_frame_saved_reg to use the new member
3587 functions.
3588
3589 Remote all struct keywords from declarations of trad_frame_saved_reg
3590 types, except on forward declarations.
3591
3592 * aarch64-tdep.c: Update.
3593 * alpha-mdebug-tdep.c: Update.
3594 * alpha-tdep.c: Update.
3595 * arc-tdep.c: Update.
3596 * arm-tdep.c: Update.
3597 * avr-tdep.c: Update.
3598 * cris-tdep.c: Update.
3599 * csky-tdep.c: Update.
3600 * frv-tdep.c: Update.
3601 * hppa-linux-tdep.c: Update.
3602 * hppa-tdep.c: Update.
3603 * hppa-tdep.h: Update.
3604 * lm32-tdep.c: Update.
3605 * m32r-linux-tdep.c: Update.
3606 * m32r-tdep.c: Update.
3607 * m68hc11-tdep.c: Update.
3608 * mips-tdep.c: Update.
3609 * moxie-tdep.c: Update.
3610 * riscv-tdep.c: Update.
3611 * rs6000-tdep.c: Update.
3612 * s390-linux-tdep.c: Update.
3613 * s390-tdep.c: Update.
3614 * score-tdep.c: Update.
3615 * sparc-netbsd-tdep.c: Update.
3616 * sparc-sol2-tdep.c: Update.
3617 * sparc64-fbsd-tdep.c: Update.
3618 * sparc64-netbsd-tdep.c: Update.
3619 * sparc64-obsd-tdep.c: Update.
3620 * sparc64-sol2-tdep.c: Update.
3621 * tilegx-tdep.c: Update.
3622 * v850-tdep.c: Update.
3623 * vax-tdep.c: Update.
3624
3625 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3626 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3627
3628 * trad-frame.c: Update.
3629 Remove TF_REG_* enum.
3630 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3631 a trivially-constructible struct.
3632 (trad_frame_reset_saved_regs): Adjust to use member function.
3633 (trad_frame_value_p): Likewise.
3634 (trad_frame_addr_p): Likewise.
3635 (trad_frame_realreg_p): Likewise.
3636 (trad_frame_value_bytes_p): Likewise.
3637 (trad_frame_set_value): Likewise.
3638 (trad_frame_set_realreg): Likewise.
3639 (trad_frame_set_addr): Likewise.
3640 (trad_frame_set_unknown): Likewise.
3641 (trad_frame_set_value_bytes): Likewise.
3642 (trad_frame_get_prev_register): Likewise.
3643 * trad-frame.h: Update.
3644 (trad_frame_saved_reg_kind): New enum.
3645 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3646 <m_kind, m_reg>: New member fields.
3647 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3648 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3649 <is_addr, is_unknown, is_value_bytes>: New member functions.
3650
9898e882
SM
36512021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3652
3653 * target-float.c: Fix typos.
3654
b66b4e65
HD
36552021-01-02 Hannes Domani <ssbssa@yahoo.de>
3656
3657 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3658
b5b5650a
JB
36592021-01-01 Joel Brobecker <brobecker@adacore.com>
3660
3661 * gdbarch.sh: Update copyright year range.
3662
3666a048
JB
36632021-01-01 Joel Brobecker <brobecker@adacore.com>
3664
3665 Update copyright year range in copyright header of all GDB files.
3666
ff7e39b6
JB
36672021-01-01 Joel Brobecker <brobecker@adacore.com>
3668
3669 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3670 to the list of directories to update.
3671
2b47c078
JB
36722021-01-01 Joel Brobecker <brobecker@adacore.com>
3673
3674 * top.c (print_gdb_version): Update copyright year.
3675
476923f1 36762021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 3677
476923f1 3678 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 3679
476923f1 3680For older changes see ChangeLog-2020.
c906108c
SS
3681\f
3682Local Variables:
3683mode: change-log
3684left-margin: 8
3685fill-column: 74
3686version-control: never
57da7796 3687coding: utf-8
c906108c 3688End:
This page took 2.706357 seconds and 4 git commands to generate.