Move some DWARF code out of symfile.h
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
18038e63
TT
12021-03-20 Tom Tromey <tom@tromey.com>
2
3 * symfile.h (enum dwarf2_section_enum)
4 (dwarf2_get_section_info): Move to dwarf2/read.h.
5 * dwarf2/read.h (enum dwarf2_section_enum)
6 (dwarf2_get_section_info): Move from symfile.h.
7
219f56b4
PA
82021-03-19 Pedro Alves <pedro@palves.net>
9
10 * thread.c (any_thread_of_inferior): Check if there's a selected
11 thread before calling inferior_thread().
12
15310fd4
TT
132021-03-18 Tom Tromey <tromey@adacore.com>
14
15 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
16 get_DW_UT_name.
17 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
18 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
19
763b8efd
AB
202021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
21
22 * python/py-param.c (get_set_value): Update header comment.
23
f058c521
SM
242021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
25
26 * infrun.c (check_multi_target_resumption): Remove argument to
27 all_non_exited_inferiors.
28
383228bc
CB
292021-03-16 Christian Biesinger <cbiesinger@google.com>
30
31 * windows-nat.c (windows_init_thread_list): Add message to
32 debug log.
33
7807d76a
AB
342021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
35
36 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
37 well as PyLong_Check for Python 2.
38
675da9a5
TT
392021-03-15 Tom Tromey <tromey@adacore.com>
40
41 PR build/27579:
42 * rust-exp.y (maker_map): Use gdb::hash_enum.
43 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
44
4800761a
SM
452021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
46
47 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
48 end of debug print.
49
eb5dd737
SM
502021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
51
52 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
53 parameter, adjust caller.
54
6813ceb0
TT
552021-03-15 Tom Tromey <tromey@adacore.com>
56
57 * ada-exp.y (simple_exp): Always push a result for unary '+'.
58
3b5c4de0
TT
592021-03-15 Tom Tromey <tromey@adacore.com>
60
61 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
62 ada_ensure_varsize_limit.
63
c04da66c
TT
642021-03-15 Tom Tromey <tromey@adacore.com>
65
66 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
67 fixed-point.
68 * ada-exp.y (maybe_overload): New function.
69 (ada_wrap_overload): New function.
70 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
71 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
72 (or_else_exp, xor_exp, primary): Update.
73
9863c3b5
TT
742021-03-15 Tom Tromey <tromey@adacore.com>
75
76 PR ada/27545:
77 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
78 call for tagged type.
79
1ac74522
TT
802021-03-15 Tom Tromey <tromey@adacore.com>
81
82 * ada-exp.y (exp1): Handle resolution of the right hand side of an
83 assignment.
84
207582c0
TT
852021-03-15 Tom Tromey <tromey@adacore.com>
86
87 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
88 container.
89 (ada_assign_operation::evaluate): Update.
90 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
91 Change return type.
92
8d624a9d
FW
932021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
94
95 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
96
ba6a0ef3
AB
972021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
98
99 * python/python.c (gdbpy_source_objfile_script): Use
100 make_scoped_restore to restore gdbpy_current_objfile.
101 (gdbpy_execute_objfile_script): Likewise.
102
7c290a04
TT
1032021-03-14 Tom Tromey <tom@tromey.com>
104
105 * dwarf2/read.c (read_attribute_value): Use cu_header
106 consistently.
107
0280fdcc
TT
1082021-03-14 Tom Tromey <tom@tromey.com>
109
110 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
111 (peek_die_abbrev): Use reader.abfd.
112
a9f172c6
TT
1132021-03-14 Tom Tromey <tom@tromey.com>
114
115 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
116 m_header_read_in.
117
7c32eebb
TT
1182021-03-13 Tom Tromey <tom@tromey.com>
119
120 * dwarf2/read.c (struct partial_die_info): Update.
121 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
122 (load_partial_dies, partial_die_info::partial_die_info): Update.
123 * dwarf2/abbrev.h (lookup_abbrev): Constify.
124
27012aba
TT
1252021-03-13 Tom Tromey <tom@tromey.com>
126
127 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
128
fece451c
CB
1292021-03-12 Christian Biesinger <cbiesinger@google.com>
130
131 PR threads/27239
132 * cp-support.c: Use scoped_segv_handler_restore.
133 * event-top.c (thread_local_segv_handler): Made static.
134 (scoped_segv_handler_restore::scoped_segv_handler_restore):
135 New function.
136 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
137 function.
138 * event-top.h (class scoped_segv_handler_restore): New class.
139 (thread_local_segv_handler): Removed.
140
7056f312
TT
1412021-03-10 Tom Tromey <tromey@adacore.com>
142
143 * parser-defs.h (parser_state): Change completion to bool.
144 <parse_completion>: Likewise.
145 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
146 (ada_resolve_variable, ada_resolve_function): Update.
147 * ada-lang.c (ada_find_operator_symbol): Change
148 parse_completion to bool.
149 (ada_resolve_funcall, ada_resolve_variable)
150 (ada_resolve_function): Likewise.
151
ccdc02ed
TT
1522021-03-09 Tom Tromey <tromey@adacore.com>
153
154 * eval.c (operation::evaluate_funcall): Use function formal
155 parameter types when evaluating.
156
fbb1aace
AB
1572021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
158
159 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
160 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
161 and owner to m_owner.
162
611aa09d
FW
1632021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
164
165 * f-exp.h (eval_op_f_loc): Declare.
166 (expr::fortran_loc_operation): New typedef.
167 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
168 UNOP_INTRINSIC.
169 (f77_keywords): Add LOC keyword.
170 * f-lang.c (eval_op_f_loc): New function.
171 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
172
eef32f59
AB
1732021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
174
175 * f-exp.h (eval_op_f_array_shape): Declare.
176 (fortran_array_shape_operation): New type.
177 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
178 UNOP_INTRINSIC.
179 (f77_keywords): Add "shape" keyword.
180 * f-lang.c (fortran_array_shape): New function.
181 (eval_op_f_array_shape): New function.
182 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
183
7ba155b3
AB
1842021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
185
186 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
187 of this function.
188 (expr::fortran_array_size_1arg): New type.
189 (expr::fortran_array_size_2arg): Likewise.
190 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
191 UNOP_OR_BINOP_INTRINSIC.
192 (f77_keywords): Add "size" keyword.
193 * f-lang.c (fortran_array_size): New function.
194 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
195 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
196
e14816a8
AB
1972021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
198
199 * f-exp.h (eval_op_f_rank): Declare.
200 (expr::fortran_rank_operation): New typedef.
201 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
202 UNOP_INTRINSIC.
203 (f77_keywords): Add "rank" keyword.
204 * f-lang.c (eval_op_f_rank): New function.
205 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
206
3dd93bf8
TT
2072021-03-08 Tom Tromey <tom@tromey.com>
208
209 * printcmd.c (set_command): Remove null check.
210 * value.c (init_if_undefined_command): Remove null check.
211
9c79936b
TT
2122021-03-08 Tom Tromey <tom@tromey.com>
213
214 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
215 Update.
216 * p-exp.y (variable): Update.
217 * go-exp.y (variable): Update.
218 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
219 Remove overload for objfile.
220 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
221 parameter.
222 (check_objfile): Likewise.
223 (dump_for_expression): Likewise. Remove overload for objfile.
224 (class var_msym_value_operation): Use bound_minimal_symbol.
225 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
226 parameter.
227 (var_msym_value_operation::evaluate_for_address)
228 (var_msym_value_operation::evaluate_for_sizeof)
229 (var_msym_value_operation::evaluate_for_cast): Update.
230 * d-exp.y (PrimaryExpression): Update.
231 * c-exp.y (variable): Update.
232 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
233 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
234 Update.
235 * ada-exp.y (write_var_or_type): Update.
236
40d07d07
TT
2372021-03-08 Tom Tromey <tom@tromey.com>
238
239 * parser-defs.h (exp_uses_objfile): Return bool.
240 * parse.c (exp_uses_objfile): Return bool.
241
0b2b0b82
TT
2422021-03-08 Tom Tromey <tom@tromey.com>
243
244 * value.h (eval_skip_value): Don't declare.
245 * opencl-lang.c (eval_opencl_assign): Update.
246 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
247 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
248 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
249 * expression.h (enum noside) <EVAL_SKIP>: Remove.
250 * expop.h (typeof_operation::evaluate)
251 (decltype_operation::evaluate, unop_addr_operation::evaluate)
252 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
253 (cxx_cast_operation::evaluate): Update.
254 * eval.c (eval_skip_value): Remove.
255 (eval_op_scope, eval_op_var_entry_value)
256 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
257 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
258 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
259 (eval_op_binary, eval_op_subscript, eval_op_equal)
260 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
261 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
262 (eval_op_complement, eval_op_lognot, eval_op_ind)
263 (eval_op_memval, eval_op_preinc, eval_op_predec)
264 (eval_op_postinc, eval_op_postdec, eval_op_type)
265 (eval_binop_assign_modify, eval_op_objc_msgcall)
266 (eval_multi_subscript, logical_and_operation::evaluate)
267 (logical_or_operation::evaluate, array_operation::evaluate)
268 (operation::evaluate_for_cast)
269 (var_msym_value_operation::evaluate_for_cast)
270 (var_value_operation::evaluate_for_cast): Update.
271 * c-lang.c (c_string_operation::evaluate): Update.
272 * c-exp.h (objc_nsstring_operation::evaluate)
273 (objc_selector_operation::evaluate): Update.
274 * ada-lang.c (ada_assign_operation::evaluate)
275 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
276 (ada_atr_size): Update.
277
96db551d
TT
2782021-03-08 Tom Tromey <tom@tromey.com>
279
280 * eval.c: Merge "namespace" scopes.
281
ce284361
TT
2822021-03-08 Tom Tromey <tom@tromey.com>
283
284 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
285 <release>: Inline.
286 * parse.c (expr_builder::expr_builder, expr_builder::release):
287 Remove.
288
b9d06571
TT
2892021-03-08 Tom Tromey <tom@tromey.com>
290
291 * parse.c (expression::expression, expression::~expression):
292 Remove.
293 * expression.h (struct expression): Inline constructor. Remove
294 destructor.
295
79ab486e
TT
2962021-03-08 Tom Tromey <tom@tromey.com>
297
298 * std-operator.def (BINOP_END): Remove.
299 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
300 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
301 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
302 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
303 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
304 BINOP_END.
305
48fa6f23
TT
3062021-03-08 Tom Tromey <tom@tromey.com>
307
308 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
309
43f542e3
TT
3102021-03-08 Tom Tromey <tom@tromey.com>
311
312 * std-operator.def (OP_EXTENDED0): Remove.
313
5d9ba982
TT
3142021-03-08 Tom Tromey <tom@tromey.com>
315
316 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
317 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
318 Remove.
319
d357570d
TT
3202021-03-08 Tom Tromey <tom@tromey.com>
321
322 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
323 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
324
0922dc84
TT
3252021-03-08 Tom Tromey <tom@tromey.com>
326
327 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
328 * ada-lang.c (ada_binop_minmax): Update.
329 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
330 Use BINOP_MIN and BINOP_MAX.
331
1eaebe02
TT
3322021-03-08 Tom Tromey <tom@tromey.com>
333
334 * value.h (evaluate_subexp_with_coercion): Don't declare.
335 * parse.c (exp_descriptor_standard): Remove.
336 (expr_builder::expr_builder, expr_builder::release): Update.
337 (expression::expression): Remove size_t parameter.
338 (expression::~expression): Simplify.
339 (expression::resize): Remove.
340 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
341 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
342 (write_exp_elt_longcst, write_exp_elt_floatcst)
343 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
344 (write_exp_string_vector, write_exp_bitstring): Remove.
345 * p-lang.h (class pascal_language) <opcode_print_table,
346 op_print_tab>: Remove.
347 * p-lang.c (pascal_language::op_print_tab): Remove.
348 * opencl-lang.c (class opencl_language) <opcode_print_table>:
349 Remove.
350 * objc-lang.c (objc_op_print_tab): Remove.
351 (class objc_language) <opcode_print_table>: Remove.
352 * m2-lang.h (class m2_language) <opcode_print_table,
353 op_print_tab>: Remove.
354 * m2-lang.c (m2_language::op_print_tab): Remove.
355 * language.h (struct language_defn) <post_parser, expression_ops,
356 opcode_print_table>: Remove.
357 * language.c (language_defn::expression_ops)
358 (auto_or_unknown_language::opcode_print_table): Remove.
359 * go-lang.h (class go_language) <opcode_print_table,
360 op_print_tab>: Remove.
361 * go-lang.c (go_language::op_print_tab): Remove.
362 * f-lang.h (class f_language) <opcode_print_table>: Remove
363 <op_print_tab>: Remove.
364 * f-lang.c (f_language::op_print_tab): Remove.
365 * expression.h (union exp_element): Remove.
366 (struct expression): Remove size_t parameter from constructor.
367 <resize>: Remove.
368 <first_opcode>: Update.
369 <nelts, elts>: Remove.
370 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
371 (evaluate_subexp_standard, print_expression, op_string)
372 (dump_raw_expression): Don't declare.
373 * expprint.c (print_expression, print_subexp)
374 (print_subexp_funcall, print_subexp_standard, op_string)
375 (dump_raw_expression, dump_subexp, dump_subexp_body)
376 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
377 (dump_prefix_expression): Update.
378 * eval.c (evaluate_subexp): Remove.
379 (evaluate_expression, evaluate_type): Update.
380 (evaluate_subexpression_type): Remove.
381 (fetch_subexp_value): Remove "pc" parameter. Update.
382 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
383 (evaluate_subexp_standard, evaluate_subexp_for_address)
384 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
385 (evaluate_subexp_for_cast): Remove.
386 (parse_and_eval_type): Update.
387 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
388 * d-lang.c (d_op_print_tab): Remove.
389 (class d_language) <opcode_print_table>: Remove.
390 * c-lang.h (c_op_print_tab): Don't declare.
391 * c-lang.c (c_op_print_tab): Remove.
392 (class c_language, class cplus_language, class asm_language, class
393 minimal_language) <opcode_print_table>: Remove.
394 * breakpoint.c (update_watchpoint, watchpoint_check)
395 (watchpoint_exp_is_const, watch_command_1): Update.
396 * ax-gdb.h (union exp_element): Don't declare.
397 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
398 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
399 (gen_expr_binop_rest): Remove.
400 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
401 * ada-lang.c (ada_op_print_tab): Remove.
402 (class ada_language) <post_parser, opcode_print_table>: Remove.
403
f2a98603
TT
4042021-03-08 Tom Tromey <tom@tromey.com>
405
406 * go-lang.c (go_language::expression_ops): Don't declare.
407 * go-lang.h (class go_language) <expression_ops>: Remove.
408 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
409 Remove.
410 (class opencl_language) <expression_ops>: Remove.
411 * d-lang.c (class d_language) <expression_ops>: Remove.
412 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
413 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
414 (class c_language, class cplus_language, class asm_language)
415 (class minimal_language) <expression_ops>: Remove.
416
d3c54a1c
TT
4172021-03-08 Tom Tromey <tom@tromey.com>
418
419 * ada-lang.c (resolve_subexp, replace_operator_with_call)
420 (evaluate_subexp_type, assign_aggregate)
421 (aggregate_assign_positional, aggregate_assign_from_choices)
422 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
423 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
424 (ada_operator_check, ada_forward_operator_length)
425 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
426 Remove.
427 (post_parser): Update.
428 (class ada_language) <expresssion_ops>: Remove.
429
5871f0a3
TT
4302021-03-08 Tom Tromey <tom@tromey.com>
431
432 * m2-lang.h (class m2_language) <expresssion_ops,
433 exp_descriptor_modula2>: Remove.
434 * m2-lang.c (evaluate_subexp_modula2)
435 (m2_language::exp_descriptor_modula2): Remove.
436
a99be8c1
TT
4372021-03-08 Tom Tromey <tom@tromey.com>
438
439 * f-lang.h (class f_language) <expresssion_ops>: Remove.
440 <exp_descriptor_tab>: Remove.
441 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
442 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
443 (print_subexp_f, dump_subexp_body_f, operator_check_f)
444 (f_language::exp_descriptor_tab, fortran_prepare_argument):
445 Remove.
446
aa1da9ed
TT
4472021-03-08 Tom Tromey <tom@tromey.com>
448
449 * rust-lang.h (class rust_language) <expression_ops,
450 exp_descriptor_tab>: Remove.
451 * rust-lang.c (rust_evaluate_funcall): Remove.
452 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
453 EVAL_SKIP.
454 (rust_evaluate_subexp): Remove.
455 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
456 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
457 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
458
08a057e6
TT
4592021-03-08 Tom Tromey <tom@tromey.com>
460
461 * ada-exp.y: Create operations.
462 (empty_stoken): Remove.
463 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
464 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
465 (components): New global.
466 (push_component, choice_component, pop_component, pop_components):
467 New functions.
468 (associations): New global
469 (push_association, pop_association, pop_associations): New
470 functions.
471 (ada_parse): Update.
472 (write_var_from_sym, write_int): Create operations.
473 (write_exp_op_with_string): Remove.
474 (write_object_renaming, write_selectors, write_ambiguous_var)
475 (write_var_or_type, write_name_assoc): Create operations.
476 * ada-lang.h (ada_index_type): Declare.
477 * ada-lang.c (ada_index_type): No longer static.
478
d308ba78
TT
4792021-03-08 Tom Tromey <tom@tromey.com>
480
481 * f-exp.y: Create operations.
482 (f_language::parser): Update.
483
f1b8ceef
TT
4842021-03-08 Tom Tromey <tom@tromey.com>
485
486 * m2-exp.y: Create operations.
487 (m2_language::parser): Update.
488
3163898e
TT
4892021-03-08 Tom Tromey <tom@tromey.com>
490
491 * p-exp.y: Create operations.
492 (pascal_language::parser): Update.
493
9412fdcc
TT
4942021-03-08 Tom Tromey <tom@tromey.com>
495
496 * d-exp.y: Create operations.
497 (d_parse): Update.
498
bb4e0574
TT
4992021-03-08 Tom Tromey <tom@tromey.com>
500
501 * go-exp.y: Create operations.
502 (go_language::parser): Update.
503
d182f279
TT
5042021-03-08 Tom Tromey <tom@tromey.com>
505
506 * objc-lang.c (end_msglist): Create operations.
507 * c-exp.y: Change parser to create operations.
508 (write_destructor_name): Remove.
509 (c_parse): Update.
510
c1299a23
TT
5112021-03-08 Tom Tromey <tom@tromey.com>
512
513 * rust-exp.y: Create operations.
514 (rust_parser::convert_params_to_expression): Change return type.
515 (binop_maker_ftype): New typedef.
516 (maker_map): New global.
517 (rust_parser::convert_ast_to_expression): Change return type.
518 (rust_language::parser): Update.
519 (_initialize_rust_exp): Initialize maker_map.
520
4c5e7a93
TT
5212021-03-08 Tom Tromey <tom@tromey.com>
522
523 * stap-probe.c (binop_maker_ftype): New typedef.
524 (stap_maker_map): New global.
525 (stap_make_binop): New function.
526 (stap_parse_register_operand): Return operation_up.
527 (stap_parse_single_operand, stap_parse_argument_conditionally)
528 (stap_parse_argument_1): Likewise.
529 (stap_parse_argument): Create operations.
530 (stap_probe::parse_arguments): Update.
531 (_initialize_stap_probe): Initialize stap_maker_map.
532 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
533 type.
534 * i386-tdep.h (i386_stap_parse_special_token): Change return
535 type.
536 * i386-tdep.c (i386_stap_parse_special_token_triplet)
537 (i386_stap_parse_special_token_three_arg_disp)
538 (i386_stap_parse_special_token): Change return type.
539 * gdbarch.sh (stap_parse_special_token): Change return type.
540 * gdbarch.c: Rebuild.
541 * gdbarch.h: Rebuild.
542 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
543 type.
544 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
545 return type.
546
482ddd69
TT
5472021-03-08 Tom Tromey <tom@tromey.com>
548
549 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
550 * gdbarch.h: Rebuild.
551 * gdbarch.c: Rebuild.
552 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
553 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
554 return type.
555 (amd64_dtrace_parse_probe_argument): Update.
556
8227d9e2
TT
5572021-03-08 Tom Tromey <tom@tromey.com>
558
559 * parser-defs.h (struct parser_state) <push, push_new,
560 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
561 wrap2>: New methods.
562 <m_operations>: New member.
563 * parse.c (parser_state::push_c_string)
564 (parser_state::push_symbol, parser_state::push_dollar): New
565 methods.
566
4933522d
TT
5672021-03-08 Tom Tromey <tom@tromey.com>
568
569 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
570 New member.
571 (struct parser_state) <mark_struct_expression>: New method.
572 * parse.c (parser_state::mark_struct_expression): Update assert.
573 (parser_state::mark_struct_expression): New method.
574 (parser_state::mark_completion_tag): Update assert.
575 (parse_expression_for_completion): Handle expout_last_op.
576
413403fc
TT
5772021-03-08 Tom Tromey <tom@tromey.com>
578
579 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
580 now in superclass.
581 * value.h (fetch_subexp_value): Add "op" parameter.
582 * value.c (init_if_undefined_command): Update.
583 * tracepoint.c (validate_actionline, encode_actions_1): Update.
584 * stap-probe.c (stap_probe::compile_to_ax): Update.
585 * printcmd.c (set_command): Update.
586 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
587 Update.
588 * parser-defs.h (struct expr_builder) <set_operation>: New
589 method.
590 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
591 * expression.h (struct expression) <first_opcode>: Update.
592 <op>: New member.
593 * expprint.c (dump_raw_expression, dump_prefix_expression):
594 Update.
595 * expop.h (class var_value_operation) <get_symbol>: New method.
596 (class register_operation) <get_name>: New method.
597 (class equal_operation): No longer a typedef, now a subclass.
598 (class unop_memval_operation) <get_type>: New method.
599 (class assign_operation) <get_lhs>: New method.
600 (class unop_cast_operation) <get_type>: New method.
601 * eval.c (evaluate_expression, evaluate_type)
602 (evaluate_subexpression_type): Update.
603 (fetch_subexp_value): Add "op" parameter.
604 (parse_and_eval_type): Update.
605 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
606 * breakpoint.c (update_watchpoint, watchpoint_check)
607 (watchpoint_exp_is_const, watch_command_1): Update.
608 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
609 Update.
610
b0f9164c
TT
6112021-03-08 Tom Tromey <tom@tromey.com>
612
613 * ada-lang.c (ada_value_binop): Do not use op_string.
614
a88c4354
TT
6152021-03-08 Tom Tromey <tom@tromey.com>
616
617 * expprint.c (dump_for_expression): New overload.
618 * expop.h (check_objfile, dump_for_expression): Declare new
619 overloads.
620 * ada-lang.c (check_objfile): New overload.
621 (assign_component, ada_aggregate_component::uses_objfile)
622 (ada_aggregate_component::dump, ada_aggregate_component::assign)
623 (ada_aggregate_component::assign_aggregate)
624 (ada_positional_component::uses_objfile)
625 (ada_positional_component::dump, ada_positional_component::assign)
626 (ada_discrete_range_association::uses_objfile)
627 (ada_discrete_range_association::dump)
628 (ada_discrete_range_association::assign)
629 (ada_name_association::uses_objfile, ada_name_association::dump)
630 (ada_name_association::assign)
631 (ada_choices_component::uses_objfile, ada_choices_component::dump)
632 (ada_choices_component::assign)
633 (ada_others_component::uses_objfile, ada_others_component::dump)
634 (ada_others_component::assign, ada_assign_operation::evaluate):
635 New methods.
636 * ada-exp.h (ada_string_operation) <get_name>: New method.
637 (class ada_assign_operation): New.
638 (class ada_component): New.
639 (ada_component_up): New typedef.
640 (class ada_aggregate_operation, class ada_aggregate_component)
641 (class ada_positional_component, class ada_others_component)
642 (class ada_association): New.
643 (ada_association_up): New typedef.
644 (class ada_choices_component)
645 (class ada_discrete_range_association)
646 (class ada_name_association): New.
647
d8a4ed8a
TT
6482021-03-08 Tom Tromey <tom@tromey.com>
649
650 * ada-lang.c (ada_var_value_operation::resolve)
651 (ada_funcall_operation::resolve)
652 (ada_ternop_slice_operation::resolve): New methods.
653 * ada-exp.h (struct ada_resolvable): New.
654 (class ada_var_value_operation): Derive from ada_resolvable.
655 <get_block, resolve>: New methods.
656 (class ada_funcall_operation): Derive from ada_resolvable.
657 <resolve>: New method.
658 (class ada_ternop_slice_operation): Derive from ada_resolvable.
659 <resolve>: New method.
660
efe3af2f
TT
6612021-03-08 Tom Tromey <tom@tromey.com>
662
663 * ada-lang.c (ada_funcall_operation::evaluate): New method.
664 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
665 method.
666 (class ada_funcall_operation): New.
667
ebc06ad8
TT
6682021-03-08 Tom Tromey <tom@tromey.com>
669
670 * ada-lang.c (ada_structop_operation::evaluate): New method.
671 * ada-exp.h (class ada_structop_operation): New.
672
e8c33fa1
TT
6732021-03-08 Tom Tromey <tom@tromey.com>
674
675 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
676 * ada-exp.h (class ada_unop_ind_operation): New.
677
065ec826
TT
6782021-03-08 Tom Tromey <tom@tromey.com>
679
680 * ada-lang.c (ada_binop_exp): No longer static.
681 * ada-exp.h (ada_binop_exp_operation): New typedef.
682
9e99f48f
TT
6832021-03-08 Tom Tromey <tom@tromey.com>
684
685 * ada-lang.c (ada_val_atr): No longer static.
686 (ada_atr_val_operation::evaluate): New method.
687 * ada-exp.h (class ada_atr_val_operation): New.
688
7631cf6c
TT
6892021-03-08 Tom Tromey <tom@tromey.com>
690
691 * ada-lang.c (ada_pos_atr): No longer static.
692 * ada-exp.h (ada_pos_operation): New typedef.
693
7992accc
TT
6942021-03-08 Tom Tromey <tom@tromey.com>
695
696 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
697 parameters.
698 (ada_evaluate_subexp): Use it.
699
6ad3b8bf
TT
7002021-03-08 Tom Tromey <tom@tromey.com>
701
702 * ada-lang.c (ada_binop_minmax): No longer static.
703 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
704 New typedefs.
705
3f4a0053
TT
7062021-03-08 Tom Tromey <tom@tromey.com>
707
708 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
709 New method.
710 * ada-exp.h (class ada_var_msym_value_operation): New.
711
99a3b1e7
TT
7122021-03-08 Tom Tromey <tom@tromey.com>
713
714 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
715 (ada_var_value_operation::evaluate): New methods.
716 * ada-exp.h (class ada_var_value_operation): New.
717
60fa02ca
TT
7182021-03-08 Tom Tromey <tom@tromey.com>
719
720 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
721 * ada-exp.h (class ada_unop_atr_operation): New.
722
82c3886e
TT
7232021-03-08 Tom Tromey <tom@tromey.com>
724
725 * ada-lang.c (ada_binop_in_bounds): No longer static.
726 * ada-exp.h (class ada_binop_in_bounds_operation): New.
727
1b1ebfab
TT
7282021-03-08 Tom Tromey <tom@tromey.com>
729
730 * ada-lang.c (ada_ternop_slice): No longer static.
731 * ada-exp.h (class ada_ternop_slice_operation): New.
732
039e4b76
TT
7332021-03-08 Tom Tromey <tom@tromey.com>
734
735 * ada-exp.h (ada_bitwise_operation): New template class.
736 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
737 (ada_bitwise_xor_operation): New typedefs.
738
6e8fb7b7
TT
7392021-03-08 Tom Tromey <tom@tromey.com>
740
741 * ada-lang.c (ada_equal_binop): No longer static.
742 * ada-exp.h (class ada_binop_equal_operation): New.
743
d9e7db06
TT
7442021-03-08 Tom Tromey <tom@tromey.com>
745
746 * ada-lang.c (ada_mult_binop): No longer static.
747 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
748 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
749
73796c73
TT
7502021-03-08 Tom Tromey <tom@tromey.com>
751
752 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
753 * ada-exp.h (class ada_binop_addsub_operation): New.
754
cd9a3148
TT
7552021-03-08 Tom Tromey <tom@tromey.com>
756
757 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
758 (ada_resolve_variable): Declare.
759 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
760 (ada_resolve_variable): New functions.
761 (resolve_subexp): Update.
762
cf12b17f
TT
7632021-03-08 Tom Tromey <tom@tromey.com>
764
765 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
766 method.
767 * c-exp.h (class opencl_ternop_cond_operation): New.
768
944fd3b8
TT
7692021-03-08 Tom Tromey <tom@tromey.com>
770
771 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
772 method.
773 * c-exp.h (class opencl_logical_binop_operation): New.
774
33b79214
TT
7752021-03-08 Tom Tromey <tom@tromey.com>
776
777 * opencl-lang.c (opencl_structop_operation::evaluate): New
778 method.
779 * c-exp.h (class opencl_structop_operation): New.
780
2492ba36
TT
7812021-03-08 Tom Tromey <tom@tromey.com>
782
783 * opencl-lang.c (opencl_logical_not): No longer static. Change
784 parameters.
785 (evaluate_subexp_opencl): Update.
786 * c-exp.h (opencl_notequal_operation): New typedef.
787
a88c3c8d
TT
7882021-03-08 Tom Tromey <tom@tromey.com>
789
790 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
791 static. Change parameters.
792 (eval_opencl_assign): No longer static. Add "op" parameter.
793 (evaluate_subexp_opencl): Update.
794 * c-exp.h (opencl_binop_operation): New template class.
795 (opencl_assign_operation, opencl_equal_operation)
796 (opencl_notequal_operation, opencl_less_operation)
797 (opencl_gtr_operation, opencl_geq_operation)
798 (opencl_leq_operation): New typedefs.
799
e9677704
TT
8002021-03-08 Tom Tromey <tom@tromey.com>
801
802 * opencl-lang.c (opencl_value_cast): No longer static.
803 * c-exp.h (opencl_cast_type_operation): New typedef.
804
f403a4e4
TT
8052021-03-08 Tom Tromey <tom@tromey.com>
806
807 * f-exp.h (eval_op_f_allocated): Declare.
808 (fortran_allocated_operation): New typedef.
809 * f-lang.c (eval_op_f_allocated): No longer static.
810
eb4c9271
TT
8112021-03-08 Tom Tromey <tom@tromey.com>
812
813 * f-lang.c (eval_op_f_associated): New functions.
814 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
815 typedefs.
816
58a76c72
TT
8172021-03-08 Tom Tromey <tom@tromey.com>
818
819 * f-lang.c (fortran_bound_1arg::evaluate)
820 (fortran_bound_2arg::evaluate): New methods.
821 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
822 New.
823
2f98abe1
TT
8242021-03-08 Tom Tromey <tom@tromey.com>
825
826 * expop.h (class unop_addr_operation) <get_expression>: New
827 method.
828 * f-lang.c (fortran_undetermined::value_subarray)
829 (fortran_undetermined::evaluate): New methods.
830 (fortran_prepare_argument): New overload.
831 * f-exp.h (class fortran_range_operation)
832 (class fortran_undetermined): New classes.
833
638fd74a
TT
8342021-03-08 Tom Tromey <tom@tromey.com>
835
836 * rust-lang.c (rust_structop::evaluate_funcall): New method.
837 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
838 method.
839
a00b7254
TT
8402021-03-08 Tom Tromey <tom@tromey.com>
841
842 * expression.h (class operation) <evaluate_funcall>: New methods.
843 * expop.h (class scope_operation) <evaluate_funcall>: New method.
844 (class var_value_operation) <evaluate_funcall>: New method.
845 (class structop_base_operation) <evaluate_funcall>: New method.
846 (class var_msym_value_operation) <evaluate_funcall>: New method.
847 (class structop_member_base): New class.
848 (class structop_member_operation): Derive from
849 structop_member_base.
850 (class structop_mptr_operation): Derive from
851 structop_member_base.
852 (class funcall_operation): New class.
853 * eval.c (operation::evaluate_funcall)
854 (var_value_operation::evaluate_funcall)
855 (scope_operation::evaluate_funcall)
856 (structop_member_base::evaluate_funcall)
857 (structop_base_operation::evaluate_funcall): New methods.
858
1c02eb30
TT
8592021-03-08 Tom Tromey <tom@tromey.com>
860
861 * expop.h (class array_operation): New.
862 * eval.c (array_operation::evaluate_struct_tuple)
863 (array_operation::evaluate): New methods.
864
e4479080
TT
8652021-03-08 Tom Tromey <tom@tromey.com>
866
867 * expop.h (class adl_func_operation): New.
868 * eval.c (adl_func_operation::evaluate): New method.
869
95d49dfb
TT
8702021-03-08 Tom Tromey <tom@tromey.com>
871
872 * ada-lang.c (ada_unop_in_range): No longer static.
873 * ada-exp.h (class ada_unop_range_operation): New.
874
7c15d377
TT
8752021-03-08 Tom Tromey <tom@tromey.com>
876
877 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
878 No longer static.
879 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
880 (ada_atr_size_operation, ada_abs_operation): New typedefs.
881
5019124b
TT
8822021-03-08 Tom Tromey <tom@tromey.com>
883
884 * expop.h (class logical_and_operation)
885 (class logical_or_operation): New.
886 * eval.c (logical_and_operation::evaluate)
887 (logical_or_operation::evaluate): New methods.
888 * ax-gdb.c (logical_and_operation::do_generate_ax)
889 (logical_or_operation::do_generate_ax): New methods.
890
2bc9b40c
TT
8912021-03-08 Tom Tromey <tom@tromey.com>
892
893 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
894 static.
895 * m2-exp.h: New file.
896
5947d337
TT
8972021-03-08 Tom Tromey <tom@tromey.com>
898
899 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
900 * rust-exp.h (class rust_aggregate_operation): New.
901
e4407a20
TT
9022021-03-08 Tom Tromey <tom@tromey.com>
903
904 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
905 No longer static.
906 * rust-exp.h (class rust_struct_anon): New.
907 (class rust_structop): New.
908
9db6b6dd
TT
9092021-03-08 Tom Tromey <tom@tromey.com>
910
911 * rust-lang.c (rust_range): No longer static.
912 * rust-exp.h (class rust_range_operation): New.
913
6ce1ad67
TT
9142021-03-08 Tom Tromey <tom@tromey.com>
915
916 * rust-lang.c (rust_subscript): No longer static.
917 * rust-exp.h (class rust_subscript_operation): New.
918
11dd3dce
TT
9192021-03-08 Tom Tromey <tom@tromey.com>
920
921 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
922 parameter.
923 (rust_evaluate_subexp): Update.
924 * rust-exp.h (class rust_unop_ind_operation): New.
925
6fab4359
TT
9262021-03-08 Tom Tromey <tom@tromey.com>
927
928 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
929 longer static. Add "opcode" parameter.
930 (rust_evaluate_subexp): Update.
931 * rust-exp.h: New file.
932
9dcd3e29
TT
9332021-03-08 Tom Tromey <tom@tromey.com>
934
935 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
936 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
937 (eval_op_f_kind): No longer static. Add "opcode" parameter.
938 (evaluate_subexp_f): Update.
939 * f-exp.h: New file.
940
fc715eb2
TT
9412021-03-08 Tom Tromey <tom@tromey.com>
942
943 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
944 * ada-exp.h (class ada_ternop_range_operation): New.
945
cc6bd32e
TT
9462021-03-08 Tom Tromey <tom@tromey.com>
947
948 * ada-lang.c (ada_qual_operation::evaluate): New method.
949 * ada-exp.h (class ada_qual_operation): New.
950
42fecb61
TT
9512021-03-08 Tom Tromey <tom@tromey.com>
952
953 * ada-lang.c (ada_string_operation::evaluate): New method.
954 * ada-exp.h (class ada_string_operation): New.
955
03070ee9
TT
9562021-03-08 Tom Tromey <tom@tromey.com>
957
958 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
959 * ada-exp.h: New file.
960
821e72d7
TT
9612021-03-08 Tom Tromey <tom@tromey.com>
962
963 * expop.h (class multi_subscript_operation): New.
964 * eval.c (multi_subscript_operation::evaluate): New method.
965
085734dd
TT
9662021-03-08 Tom Tromey <tom@tromey.com>
967
968 * eval.c (objc_msgcall_operation::evaluate): New method.
969 * c-exp.h (class objc_msgcall_operation): New.
970
e82a5afc
TT
9712021-03-08 Tom Tromey <tom@tromey.com>
972
973 * expop.h (class var_value_operation): New.
974 * eval.c (var_value_operation::evaluate)
975 (var_value_operation::evaluate_for_address)
976 (var_value_operation::evaluate_with_coercion)
977 (var_value_operation::evaluate_for_sizeof)
978 (var_value_operation::evaluate_for_cast): New methods.
979 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
980
d9ad79d8
TT
9812021-03-08 Tom Tromey <tom@tromey.com>
982
983 * expop.h (cxx_cast_ftype): New typedef.
984 (cxx_cast_operation): New template.
985 (dynamic_cast_operation, reinterpret_cast_operation): New
986 typedefs.
987
292382f4
TT
9882021-03-08 Tom Tromey <tom@tromey.com>
989
990 * expop.h (class unop_cast_type_operation): New.
991 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
992 method.
993
165a813a
TT
9942021-03-08 Tom Tromey <tom@tromey.com>
995
996 * expop.h (class unop_cast_operation): New.
997 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
998
e5946e16
TT
9992021-03-08 Tom Tromey <tom@tromey.com>
1000
1001 * expop.h (class assign_modify_operation): New.
1002 * eval.c (eval_binop_assign_modify): No longer static.
1003 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
1004
40786782
TT
10052021-03-08 Tom Tromey <tom@tromey.com>
1006
1007 * expop.h (class assign_operation): New.
1008 * ax-gdb.c (assign_operation::do_generate_ax): New method.
1009
44b675c8
TT
10102021-03-08 Tom Tromey <tom@tromey.com>
1011
1012 * expop.h (class type_instance_operation): New.
1013 * eval.c (type_instance_operation::evaluate): New method.
1014
f6b42326
TT
10152021-03-08 Tom Tromey <tom@tromey.com>
1016
1017 * expop.h (class op_this_operation): New.
1018 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
1019
cbc18219
TT
10202021-03-08 Tom Tromey <tom@tromey.com>
1021
1022 * expop.h (class unop_memval_operation)
1023 (class unop_memval_type_operation): New.
1024 * eval.c (eval_op_memval): No longer static.
1025 (unop_memval_operation::evaluate_for_address)
1026 (unop_memval_type_operation::evaluate_for_address)
1027 (unop_memval_operation::evaluate_for_sizeof)
1028 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
1029 * ax-gdb.c (unop_memval_operation::do_generate_ax)
1030 (unop_memval_type_operation::do_generate_ax): New methods.
1031
ae4bb61e
TT
10322021-03-08 Tom Tromey <tom@tromey.com>
1033
1034 * expop.h (class unop_alignof_operation): New.
1035 * eval.c (eval_op_alignof): No longer static.
1036
85d23bda
TT
10372021-03-08 Tom Tromey <tom@tromey.com>
1038
1039 * expop.h (class unop_sizeof_operation): New.
1040 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1041
14aff815
TT
10422021-03-08 Tom Tromey <tom@tromey.com>
1043
1044 * expop.h (class unop_addr_operation): New.
1045 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1046
929f3aa7
TT
10472021-03-08 Tom Tromey <tom@tromey.com>
1048
1049 * expop.h (class typeid_operation): New.
1050
0af8829e
TT
10512021-03-08 Tom Tromey <tom@tromey.com>
1052
1053 * expop.h (class decltype_operation): New.
1054
4efc574c
TT
10552021-03-08 Tom Tromey <tom@tromey.com>
1056
1057 * expop.h (class typeof_operation): New.
1058
5b5f5140
TT
10592021-03-08 Tom Tromey <tom@tromey.com>
1060
1061 * expop.h (class type_operation): New.
1062 * eval.c (eval_op_type): No longer static.
1063
876469ff
TT
10642021-03-08 Tom Tromey <tom@tromey.com>
1065
1066 * expop.h (class unop_ind_base_operation)
1067 (class unop_ind_operation): New.
1068 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1069 (unop_ind_base_operation::evaluate_for_address)
1070 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1071 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1072
6d89e296
TT
10732021-03-08 Tom Tromey <tom@tromey.com>
1074
1075 * expop.h (unop_incr_operation): New template.
1076 (preinc_operation, predec_operation, postinc_operation)
1077 (postdec_operation): New typedefs.
1078 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1079 (eval_op_postdec): No longer static.
1080
9307d17b
TT
10812021-03-08 Tom Tromey <tom@tromey.com>
1082
1083 * expop.h (unary_ftype): New typedef.
1084 (unop_operation, usual_ax_binop_operation): New templates.
1085 (unary_plus_operation, unary_neg_operation)
1086 (unary_complement_operation, unary_logical_not_operation): New
1087 typedefs.
1088 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1089 (eval_op_lognot): No longer static.
1090 * ax-gdb.c (gen_expr_unop): New function.
1091
ae64ba58
TT
10922021-03-08 Tom Tromey <tom@tromey.com>
1093
1094 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1095
d4eff4c1
TT
10962021-03-08 Tom Tromey <tom@tromey.com>
1097
1098 * expop.h (class repeat_operation): New.
1099 * eval.c (eval_op_repeat): No longer static. Remove "op"
1100 parameter.
1101 (evaluate_subexp_standard): Update.
1102 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1103
46916f2b
TT
11042021-03-08 Tom Tromey <tom@tromey.com>
1105
1106 * expop.h (class comparison_operation): New.
1107 (equal_operation, notequal_operation, less_operation)
1108 (gtr_operation, geq_operation, leq_operation): New typedefs.
1109 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1110 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1111
224d6424
TT
11122021-03-08 Tom Tromey <tom@tromey.com>
1113
1114 * expop.h (class subscript_operation): New.
1115 * eval.c (eval_op_subscript): No longer static.
1116
373907ff
TT
11172021-03-08 Tom Tromey <tom@tromey.com>
1118
1119 * expop.h (class binop_operation, class usual_ax_binop_operation):
1120 New.
1121 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1122 (div_operation, rem_operation, lsh_operation, rsh_operation)
1123 (bitwise_and_operation, bitwise_ior_operation)
1124 (bitwise_xor_operation): New typedefs.
1125 * eval.c (eval_op_binary): No longer static.
1126
5133d78b
TT
11272021-03-08 Tom Tromey <tom@tromey.com>
1128
1129 * expop.h (class sub_operation): New.
1130 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1131 (evaluate_subexp_standard): Update.
1132
a94323b6
TT
11332021-03-08 Tom Tromey <tom@tromey.com>
1134
1135 * expop.h (class add_operation): New.
1136 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1137 (evaluate_subexp_standard): Update.
1138
e51e26a0
TT
11392021-03-08 Tom Tromey <tom@tromey.com>
1140
1141 * expop.h (class concat_operation): New.
1142 * eval.c (eval_op_concat): No longer static. Remove "op"
1143 parameter.
1144 (evaluate_subexp_standard): Update.
1145
07f724a8
TT
11462021-03-08 Tom Tromey <tom@tromey.com>
1147
1148 * expop.h (class structop_member_operation)
1149 (class structop_mptr_operation): New.
1150 * eval.c (eval_op_member): No longer static.
1151
ab0609be
TT
11522021-03-08 Tom Tromey <tom@tromey.com>
1153
1154 * expop.h (class structop_ptr_operation): New.
1155 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1156 parameter.
1157
808b22cf
TT
11582021-03-08 Tom Tromey <tom@tromey.com>
1159
1160 * expop.h (class structop_base_operation)
1161 (class structop_operation): New.
1162 * eval.c (eval_op_structop_struct): No longer static.
1163
8cfd3e95
TT
11642021-03-08 Tom Tromey <tom@tromey.com>
1165
1166 * expop.h (class complex_operation): New.
1167
09db3700
TT
11682021-03-08 Tom Tromey <tom@tromey.com>
1169
1170 * eval.c (eval_op_objc_selector): No longer static.
1171 * c-exp.h (class objc_selector_operation): New.
1172
06dc61b9
TT
11732021-03-08 Tom Tromey <tom@tromey.com>
1174
1175 * eval.c: Include c-exp.h.
1176 * c-exp.h (class objc_nsstring_operation): New.
1177
72d0a711
TT
11782021-03-08 Tom Tromey <tom@tromey.com>
1179
1180 * c-lang.c (c_string_operation::evaluate): New method.
1181 * c-exp.h: New file.
1182
9186293f
TT
11832021-03-08 Tom Tromey <tom@tromey.com>
1184
1185 * expop.h (class ternop_cond_operation): New.
1186 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1187
1594e0bb
TT
11882021-03-08 Tom Tromey <tom@tromey.com>
1189
1190 * expop.h (class ternop_slice_operation): New.
1191 * eval.c (eval_op_ternop): No longer static.
1192
b50db09f
TT
11932021-03-08 Tom Tromey <tom@tromey.com>
1194
1195 * expop.h (class string_operation): New.
1196 * eval.c (eval_op_string): No longer static.
1197
e6e01e16
TT
11982021-03-08 Tom Tromey <tom@tromey.com>
1199
1200 * expop.h (class internalvar_operation): New.
1201 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1202
e6985c5e
TT
12032021-03-08 Tom Tromey <tom@tromey.com>
1204
1205 * expop.h (class bool_operation): New.
1206
55bdbff8
TT
12072021-03-08 Tom Tromey <tom@tromey.com>
1208
1209 * expop.h (class register_operation): New.
1210 * eval.c (eval_op_register): No longer static.
1211 * ax-gdb.c (register_operation::do_generate_ax): New method.
1212
247d935b
TT
12132021-03-08 Tom Tromey <tom@tromey.com>
1214
1215 * expop.h (class last_operation): New.
1216
17679395
TT
12172021-03-08 Tom Tromey <tom@tromey.com>
1218
1219 * expop.h (class func_static_var_operation): New.
1220 * eval.c (eval_op_func_static_var): No longer static.
1221
b5cc3923
TT
12222021-03-08 Tom Tromey <tom@tromey.com>
1223
1224 * expop.h (class var_entry_value_operation): New.
1225 * eval.c (eval_op_var_entry_value): No longer static.
1226
0c8effa3
TT
12272021-03-08 Tom Tromey <tom@tromey.com>
1228
1229 * expression.h (class operation) <set_outermost>: New method.
1230 * expop.h (class var_msym_value_operation): New.
1231 * eval.c (eval_op_var_msym_value): No longer static.
1232 (var_msym_value_operation::evaluate_for_address)
1233 (var_msym_value_operation::evaluate_for_sizeof)
1234 (var_msym_value_operation::evaluate_for_cast): New methods.
1235 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1236 method.
1237
d336c29e
TT
12382021-03-08 Tom Tromey <tom@tromey.com>
1239
1240 * expop.h (class long_const_operation): New.
1241 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1242
d5ab122c
TT
12432021-03-08 Tom Tromey <tom@tromey.com>
1244
1245 * expop.h (class scope_operation): New.
1246 * eval.c (eval_op_scope): No longer static.
1247 (scope_operation::evaluate_for_address): New method.
1248 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1249
cae26a0c
TT
12502021-03-08 Tom Tromey <tom@tromey.com>
1251
1252 * expprint.c (float_const_operation::dump): New method.
1253 * expop.h (float_data): New typedef.
1254 (class float_const_operation): New.
1255
75f9892d
TT
12562021-03-08 Tom Tromey <tom@tromey.com>
1257
1258 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1259 * ax-gdb.c (gen_expr_binop): New function.
1260 (gen_expr_structop): Likewise.
1261
de401988
TT
12622021-03-08 Tom Tromey <tom@tromey.com>
1263
1264 * expprint.c (expr::dump_for_expression): New functions.
1265 * expop.h (dump_for_expression): New overloads.
1266 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1267 Update.
1268
e2803273
TT
12692021-03-08 Tom Tromey <tom@tromey.com>
1270
1271 * expression.h (expr::operation): New class.
1272 (expr::make_operation): New function.
1273 (expr::operation_up): New typedef.
1274 * expop.h: New file.
1275 * eval.c (operation::evaluate_for_cast)
1276 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1277 New methods.
1278 * ax-gdb.c (operation::generate_ax): New method.
1279
e18c58f2
TT
12802021-03-08 Tom Tromey <tom@tromey.com>
1281
1282 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1283 (gen_expr_binop_rest): New overload.
1284
c0d7ed8c
TT
12852021-03-08 Tom Tromey <tom@tromey.com>
1286
1287 * eval.c (eval_multi_subscript): New function.
1288 (evaluate_subexp_standard): Use it.
1289
dd5fd283
TT
12902021-03-08 Tom Tromey <tom@tromey.com>
1291
1292 * ada-lang.c (ada_binop_exp): New function.
1293 (ada_evaluate_subexp): Use it.
1294
3848abd6
TT
12952021-03-08 Tom Tromey <tom@tromey.com>
1296
1297 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1298 parameters.
1299 (ada_evaluate_subexp): Use it.
1300
38dc70cf
TT
13012021-03-08 Tom Tromey <tom@tromey.com>
1302
1303 * ada-lang.c (ada_binop_minmax): New function.
1304 (ada_evaluate_subexp): Use it.
1305
b84564fc
TT
13062021-03-08 Tom Tromey <tom@tromey.com>
1307
1308 * ada-lang.c (ada_unop_atr): New function.
1309 (ada_evaluate_subexp): Use it.
1310
b467efaa
TT
13112021-03-08 Tom Tromey <tom@tromey.com>
1312
1313 * ada-lang.c (ada_binop_in_bounds): New function.
1314 (ada_evaluate_subexp): Use it.
1315
5ce19db8
TT
13162021-03-08 Tom Tromey <tom@tromey.com>
1317
1318 * ada-lang.c (ada_ternop_slice): New function.
1319 (ada_evaluate_subexp): Use it.
1320
214b13ac
TT
13212021-03-08 Tom Tromey <tom@tromey.com>
1322
1323 * ada-lang.c (ada_equal_binop): New function.
1324 (ada_evaluate_subexp): Use it.
1325
faa1dfd7
TT
13262021-03-08 Tom Tromey <tom@tromey.com>
1327
1328 * ada-lang.c (ada_mult_binop): New function.
1329 (ada_evaluate_subexp): Use it.
1330
d05e24e6
TT
13312021-03-08 Tom Tromey <tom@tromey.com>
1332
1333 * ada-lang.c (ada_abs): New function.
1334 (ada_evaluate_subexp): Use it.
1335
68c75735
TT
13362021-03-08 Tom Tromey <tom@tromey.com>
1337
1338 * ada-lang.c (ada_atr_size): New function.
1339 (ada_evaluate_subexp): Use it.
1340
020dbabe
TT
13412021-03-08 Tom Tromey <tom@tromey.com>
1342
1343 * ada-lang.c (ada_atr_tag): New function.
1344 (ada_evaluate_subexp): Use it.
1345
7efc87ff
TT
13462021-03-08 Tom Tromey <tom@tromey.com>
1347
1348 * ada-lang.c (ada_unop_in_range): New function.
1349 (ada_evaluate_subexp): Use it.
1350
82390ab8
TT
13512021-03-08 Tom Tromey <tom@tromey.com>
1352
1353 * ada-lang.c (ada_unop_neg): New function.
1354 (ada_evaluate_subexp): Use it.
1355
62d4bd94
TT
13562021-03-08 Tom Tromey <tom@tromey.com>
1357
1358 * ada-lang.c (eval_ternop_in_range): New function.
1359 (ada_evaluate_subexp): Use it.
1360
3634f669
TT
13612021-03-08 Tom Tromey <tom@tromey.com>
1362
1363 * opencl-lang.c (eval_opencl_assign): New function.
1364 (evaluate_subexp_opencl): Use it.
1365
5e80600e
TT
13662021-03-08 Tom Tromey <tom@tromey.com>
1367
1368 * eval.c (eval_op_objc_msgcall): New function.
1369 (evaluate_subexp_standard): Use it.
1370
fb5ba2ab
TT
13712021-03-08 Tom Tromey <tom@tromey.com>
1372
1373 * eval.c (eval_binop_assign_modify): New function.
1374 (evaluate_subexp_standard): Use it.
1375
a49881f7
TT
13762021-03-08 Tom Tromey <tom@tromey.com>
1377
1378 * m2-lang.c (eval_op_m2_subscript): New function.
1379 (evaluate_subexp_modula2): Use it.
1380
41bdced5
TT
13812021-03-08 Tom Tromey <tom@tromey.com>
1382
1383 * m2-lang.c (eval_op_m2_high): New function.
1384 (evaluate_subexp_modula2): Use it.
1385
13ea014a
TT
13862021-03-08 Tom Tromey <tom@tromey.com>
1387
1388 * eval.c (evaluate_subexp_for_address_base): New function.
1389 (evaluate_subexp_for_address): Use it.
1390 (evaluate_subexp_for_sizeof_base): New function.
1391 (evaluate_subexp_for_sizeof): Use it.
1392
1fa41fc7
TT
13932021-03-08 Tom Tromey <tom@tromey.com>
1394
1395 * rust-lang.c (eval_op_rust_structop): New function.
1396 (rust_evaluate_subexp): Use it.
1397
575cae23
TT
13982021-03-08 Tom Tromey <tom@tromey.com>
1399
1400 * rust-lang.c (eval_op_rust_struct_anon): New function.
1401 (rust_evaluate_subexp): Use it.
1402
05104233
TT
14032021-03-08 Tom Tromey <tom@tromey.com>
1404
1405 * rust-lang.c (eval_op_rust_array): New function.
1406 (rust_evaluate_subexp): Use it.
1407
6fa9831f
TT
14082021-03-08 Tom Tromey <tom@tromey.com>
1409
1410 * rust-lang.c (eval_op_rust_complement): New function.
1411 (rust_evaluate_subexp): Use it.
1412
d123f9e4
TT
14132021-03-08 Tom Tromey <tom@tromey.com>
1414
1415 * rust-lang.c (eval_op_rust_ind): New function.
1416 (rust_evaluate_subexp): Use it.
1417
984af2cb
TT
14182021-03-08 Tom Tromey <tom@tromey.com>
1419
1420 * rust-lang.c (rust_subscript): Change parameters.
1421 (rust_evaluate_subexp): Update.
1422
d148f803
TT
14232021-03-08 Tom Tromey <tom@tromey.com>
1424
1425 * rust-lang.c (rust_range): Change parameters.
1426 (rust_evaluate_subexp): Update.
1427
9cbd1c20
TT
14282021-03-08 Tom Tromey <tom@tromey.com>
1429
1430 * f-lang.c (eval_op_f_allocated): New function.
1431 (evaluate_subexp_f): Use it.
1432
3c18c49c
TT
14332021-03-08 Tom Tromey <tom@tromey.com>
1434
1435 * f-lang.c (fortran_require_array): New function.
1436 (evaluate_subexp_f): Use it.
1437
216f6fcb
TT
14382021-03-08 Tom Tromey <tom@tromey.com>
1439
1440 * f-lang.c (eval_op_f_kind): New function.
1441 (evaluate_subexp_f): Use it.
1442
00f2db6f
TT
14432021-03-08 Tom Tromey <tom@tromey.com>
1444
1445 * f-lang.c (eval_op_f_cmplx): New function.
1446 (evaluate_subexp_f): Use it.
1447
93b2b5fa
TT
14482021-03-08 Tom Tromey <tom@tromey.com>
1449
1450 * f-lang.c (eval_op_f_modulo): New function.
1451 (evaluate_subexp_f): Use it.
1452
9f1a1f3c
TT
14532021-03-08 Tom Tromey <tom@tromey.com>
1454
1455 * f-lang.c (eval_op_f_floor): New function.
1456 (evaluate_subexp_f): Use it.
1457
3dc41f3c
TT
14582021-03-08 Tom Tromey <tom@tromey.com>
1459
1460 * f-lang.c (eval_op_f_ceil): New function.
1461 (evaluate_subexp_f): Use it.
1462
e08109f2
TT
14632021-03-08 Tom Tromey <tom@tromey.com>
1464
1465 * f-lang.c (eval_op_f_mod): New function.
1466 (evaluate_subexp_f): Use it.
1467
cc05c68e
TT
14682021-03-08 Tom Tromey <tom@tromey.com>
1469
1470 * f-lang.c (eval_op_f_abs): New function.
1471 (evaluate_subexp_f): Use it.
1472
aec95807
TT
14732021-03-08 Tom Tromey <tom@tromey.com>
1474
1475 * eval.c (eval_op_type): New function.
1476 (evaluate_subexp_standard): Use it.
1477
a220ead5
TT
14782021-03-08 Tom Tromey <tom@tromey.com>
1479
1480 * eval.c (eval_op_postdec): New function.
1481 (evaluate_subexp_standard): Use it.
1482
abffe116
TT
14832021-03-08 Tom Tromey <tom@tromey.com>
1484
1485 * eval.c (eval_op_postinc): New function.
1486 (evaluate_subexp_standard): Use it.
1487
9e1361b7
TT
14882021-03-08 Tom Tromey <tom@tromey.com>
1489
1490 * eval.c (eval_op_predec): New file.
1491 (evaluate_subexp_standard): Use it.
1492
00f50884
TT
14932021-03-08 Tom Tromey <tom@tromey.com>
1494
1495 * eval.c (eval_op_preinc): New function.
1496 (evaluate_subexp_standard): Use it.
1497
3aef2a07
TT
14982021-03-08 Tom Tromey <tom@tromey.com>
1499
1500 * eval.c (eval_op_memval): New function.
1501 (evaluate_subexp_standard): Use it.
1502
acee9468
TT
15032021-03-08 Tom Tromey <tom@tromey.com>
1504
1505 * eval.c (eval_op_alignof): New function.
1506 (evaluate_subexp_standard): Use it.
1507
786f70ee
TT
15082021-03-08 Tom Tromey <tom@tromey.com>
1509
1510 * eval.c (eval_op_ind): New function.
1511 (evaluate_subexp_standard): Use it.
1512
24338fb9
TT
15132021-03-08 Tom Tromey <tom@tromey.com>
1514
1515 * eval.c (eval_op_lognot): New function.
1516 (evaluate_subexp_standard): Use it.
1517
1f09ec81
TT
15182021-03-08 Tom Tromey <tom@tromey.com>
1519
1520 * eval.c (eval_op_complement): New function.
1521 (evaluate_subexp_standard): Use it.
1522
606d105f
TT
15232021-03-08 Tom Tromey <tom@tromey.com>
1524
1525 * eval.c (eval_op_neg): New function.
1526 (evaluate_subexp_standard): Use it.
1527
39f288be
TT
15282021-03-08 Tom Tromey <tom@tromey.com>
1529
1530 * eval.c (eval_op_plus): New function.
1531 (evaluate_subexp_standard): Use it.
1532
eed70b1c
TT
15332021-03-08 Tom Tromey <tom@tromey.com>
1534
1535 * eval.c (eval_op_repeat): New function.
1536 (evaluate_subexp_standard): Use it.
1537
60cdd487
TT
15382021-03-08 Tom Tromey <tom@tromey.com>
1539
1540 * eval.c (eval_op_leq): New function.
1541 (evaluate_subexp_standard): Use it.
1542
96e3efd9
TT
15432021-03-08 Tom Tromey <tom@tromey.com>
1544
1545 * eval.c (eval_op_geq): New function.
1546 (evaluate_subexp_standard): Use it.
1547
1f78d732
TT
15482021-03-08 Tom Tromey <tom@tromey.com>
1549
1550 * eval.c (eval_op_gtr): New function.
1551 (evaluate_subexp_standard): Use it.
1552
6cad1349
TT
15532021-03-08 Tom Tromey <tom@tromey.com>
1554
1555 * eval.c (eval_op_less): New function.
1556 (evaluate_subexp_standard): Use it.
1557
1fcb3559
TT
15582021-03-08 Tom Tromey <tom@tromey.com>
1559
1560 * eval.c (eval_op_notequal): New function.
1561 (evaluate_subexp_standard): Use it.
1562
0cc96de8
TT
15632021-03-08 Tom Tromey <tom@tromey.com>
1564
1565 * eval.c (eval_op_equal): New function.
1566 (evaluate_subexp_standard): Use it.
1567
288d26bc
TT
15682021-03-08 Tom Tromey <tom@tromey.com>
1569
1570 * eval.c (eval_op_subscript): New function.
1571 (evaluate_subexp_standard): Use it.
1572
7cdcdd02
TT
15732021-03-08 Tom Tromey <tom@tromey.com>
1574
1575 * eval.c (eval_op_binary): New function.
1576 (evaluate_subexp_standard): Use it.
1577
d9790e22
TT
15782021-03-08 Tom Tromey <tom@tromey.com>
1579
1580 * eval.c (eval_op_sub): New function.
1581 (evaluate_subexp_standard): Use it.
1582
aedaf9ac
TT
15832021-03-08 Tom Tromey <tom@tromey.com>
1584
1585 * eval.c (eval_op_add): New function.
1586 (evaluate_subexp_standard): Use it.
1587
b7a96ed2
TT
15882021-03-08 Tom Tromey <tom@tromey.com>
1589
1590 * eval.c (eval_op_member): New function.
1591 (evaluate_subexp_standard): Use it.
1592
fb461aa3
TT
15932021-03-08 Tom Tromey <tom@tromey.com>
1594
1595 * eval.c (eval_op_structop_ptr): New function.
1596 (evaluate_subexp_standard): Use it.
1597
3e96c4fc
TT
15982021-03-08 Tom Tromey <tom@tromey.com>
1599
1600 * eval.c (eval_op_structop_struct): New function.
1601 (evaluate_subexp_standard): Use it.
1602
f960a617
TT
16032021-03-08 Tom Tromey <tom@tromey.com>
1604
1605 * eval.c (eval_op_ternop): New function.
1606 (evaluate_subexp_standard): Use it.
1607
5c2f201e
TT
16082021-03-08 Tom Tromey <tom@tromey.com>
1609
1610 * eval.c (eval_op_concat): New function.
1611 (evaluate_subexp_standard): Use it.
1612
f871bae1
TT
16132021-03-08 Tom Tromey <tom@tromey.com>
1614
1615 * eval.c (eval_op_objc_selector): New function.
1616 (evaluate_subexp_standard): Use it.
1617
14a1c64a
TT
16182021-03-08 Tom Tromey <tom@tromey.com>
1619
1620 * eval.c (eval_op_string): New function.
1621 (evaluate_subexp_standard): Use it.
1622
ffff730b
TT
16232021-03-08 Tom Tromey <tom@tromey.com>
1624
1625 * eval.c (eval_op_register): New function.
1626 (evaluate_subexp_standard): Use it.
1627
9b1d8af6
TT
16282021-03-08 Tom Tromey <tom@tromey.com>
1629
1630 * eval.c (eval_op_func_static_var): New function.
1631 (evaluate_subexp_standard): Use it.
1632
c0df9289
TT
16332021-03-08 Tom Tromey <tom@tromey.com>
1634
1635 * eval.c (eval_op_var_msym_value): New function.
1636 (evaluate_subexp_standard): Use it.
1637
50b98adc
TT
16382021-03-08 Tom Tromey <tom@tromey.com>
1639
1640 * eval.c (eval_op_var_entry_value): New function.
1641 (evaluate_subexp_standard): Use it.
1642
ea2d29f7
TT
16432021-03-08 Tom Tromey <tom@tromey.com>
1644
1645 * eval.c (eval_op_scope): New function.
1646 (evaluate_subexp_standard): Use it.
1647
01573d73
TT
16482021-03-06 Chernov Sergey <klen_s@mail.ru>
1649
1650 PR gdb/27528:
1651 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1652
9938d15a
TT
16532021-03-06 Tom Tromey <tom@tromey.com>
1654
1655 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1656 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1657 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1658 (locate_dwz_sections, dwz_search_other_debugdirs)
1659 (dwarf2_get_dwz_file): Move to dwz.c.
1660 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1661 read.h.
1662 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1663 (dwarf2_get_dwz_file): Move from read.c.
1664
18035655
TT
16652021-03-06 Tom Tromey <tom@tromey.com>
1666
1667 * debuginfod-support.h: Include scoped_fd.h.
1668
a7308ce0
TT
16692021-03-06 Tom Tromey <tom@tromey.com>
1670
1671 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1672 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1673 (get_abbrev_section_for_cu, read_attribute_value)
1674 (get_debug_line_section): Update.
1675 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1676
fbedd546
TT
16772021-03-06 Tom Tromey <tom@tromey.com>
1678
1679 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1680 method.
1681 * dwarf2/read.c (section_is_p): Remove.
1682 (dwarf2_per_bfd::locate_sections)
1683 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1684 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1685 (dwarf2_locate_common_dwp_sections)
1686 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1687 Update.
1688
c2a62a3d
TT
16892021-03-06 Tom Tromey <tom@tromey.com>
1690
1691 * xcoffread.c: Include sect-names.h.
1692 * symfile.h (struct dwarf2_section_names, struct
1693 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1694 * dwarf2/sect-names.h: New file, from symfile.h.
1695 * dwarf2/read.c: Include sect-names.h.
1696
4444f407
TT
16972021-03-06 Tom Tromey <tom@tromey.com>
1698
1699 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1700 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1701 (abbrev_table::read): Update.
1702 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1703 (struct abbrev_info): Reformat.
1704 <attrs>: Now an array.
1705 (struct abbrev_table) <alloc_abbrev>: Remove.
1706
dd99cf0c
WP
17072021-03-06 Weimin Pan <weimin.pan@oracle.com>
1708
1709 * ctfread.c (ctf_psymtab_add_enums): New function.
1710 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1711
844be3f2
WP
17122021-03-06 Weimin Pan <weimin.pan@oracle.com>
1713
1714 * ctfread.c (read_func_kind_type): Set up function arguments.
1715
b2668f28
AB
17162021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1717 Andrew Burgess <andrew.burgess@embecosm.com>
1718
1719 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1720 includes.
1721 (riscv_csrset): New static global.
1722 (riscv_update_csrmap): New function.
1723 (riscv_iterate_over_regset_sections): Process CSRs.
1724
d782d24b
AB
17252021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1726
1727 * riscv-tdep.c (riscv_feature_name_csr): Define.
1728 (riscv_feature_name_cpu): Define.
1729 (riscv_feature_name_fpu): Define.
1730 (riscv_feature_name_virtual): Define.
1731 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1732 (riscv_freg_feature): Use riscv_feature_name_fpu.
1733 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1734 (riscv_csr_feature): Use riscv_feature_name_csr.
1735 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1736
fb8f3fc0
AB
17372021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1738 Craig Blackmore <craig.blackmore@embecosm.com>
1739
1740 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1741 (ALLDEPFILES): Add riscv-none-tdep.c.
1742 * configure: Regenerate.
1743 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1744 support.
1745 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1746 * elf-none-tdep.c: New file.
1747 * elf-none-tdep.h: New file.
1748 * riscv-none-tdep.c: New file.
1749
95ce627a
AB
17502021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1751 Andrew Burgess <andrew.burgess@embecosm.com>
1752
1753 * corelow.c: Add 'xml-tdesc.h' include.
1754 (core_target::read_description): Load the target description from
1755 the core file when possible.
1756 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1757 note.
1758 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1759 (gcore_elf_make_tdesc_note): New function.
1760 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1761 * linux-tdep.c (linux_make_corefile_notes): Add target description
1762 note.
1763
f3a5df7b
AB
17642021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1765
1766 * Makefile.in (SFILES): Add gcore-elf.c.
1767 (HFILES_NO_SRCDIR): Add gcore-elf.h
1768 * configure: Regenerate.
1769 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1770 support.
1771 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1772 (struct fbsd_collect_regset_section_cb_data): Delete.
1773 (fbsd_collect_regset_section_cb): Delete.
1774 (fbsd_collect_thread_registers): Delete.
1775 (struct fbsd_corefile_thread_data): Delete.
1776 (fbsd_corefile_thread): Delete.
1777 (fbsd_make_corefile_notes): Call
1778 gcore_elf_build_thread_register_notes instead of the now deleted
1779 FreeBSD code.
1780 * gcore-elf.c: New file, the content was moved here from
1781 linux-tdep.c, functions were renamed and given minor cleanup.
1782 * gcore-elf.h: New file.
1783 * gcore.c (gcore_find_signalled_thread): Moved here from
1784 linux-tdep.c and given a new name. Minor cleanups.
1785 * gcore.h (gcore_find_signalled_thread): Declare.
1786 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1787 (struct linux_collect_regset_section_cb_data): Delete.
1788 (linux_collect_regset_section_cb): Delete.
1789 (linux_collect_thread_registers): Delete.
1790 (linux_corefile_thread): Call
1791 gcore_elf_build_thread_register_notes.
1792 (find_signalled_thread): Delete.
1793 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1794
d1e93af6
SM
17952021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1796
1797 PR gdb/27147
1798 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1799 process_stratum_target parameter,
1800 sparc_store_inferior_registers): update callers.
1801 * sparc-nat.c (sparc_fetch_inferior_registers,
1802 sparc_store_inferior_registers): Add process_stratum_target
1803 parameter. Switch current thread before calling
1804 sparc_supply_gregset / sparc_collect_rwindow.
1805 (sparc_store_inferior_registers): Likewise.
1806 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1807 (sparc32obsd_collect_uthread): Likewise.
1808 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1809 Add assertion.
1810 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1811 sparc64obsd_supply_uthread): Add assertion.
1812
1178743e
TT
18132021-03-04 Tom Tromey <tromey@adacore.com>
1814
1815 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1816 (aux_add_nonlocal_symbols): Update.
1817 (ada_add_block_symbols): Change "found_sym" to bool.
1818
1bfa81ac
TT
18192021-03-03 Tom Tromey <tromey@adacore.com>
1820
1821 * ada-lang.c (ada_resolve_function): Update comment.
1822 (is_nonfunction, add_symbols_from_enclosing_procs)
1823 (remove_extra_symbols): Likewise.
1824 (struct match_data): Add constructor, initializers.
1825 (add_nonlocal_symbols): Remove memset.
1826 (aux_add_nonlocal_symbols): Update comment.
1827 (ada_add_block_renamings, add_nonlocal_symbols)
1828 (ada_add_all_symbols): Likewise.
1829 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1830
bbcdf9ab
TT
18312021-03-02 Tom Tromey <tromey@adacore.com>
1832
1833 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1834 (cast_to_gnat_encoded_fixed_point_type): Remove.
1835 (ada_value_cast, ada_evaluate_subexp): Update.
1836 (gnat_encoded_fixed_point_type_info)
1837 (ada_is_gnat_encoded_fixed_point_type)
1838 (gnat_encoded_fixed_point_delta)
1839 (gnat_encoded_fixed_point_scaling_factor): Remove.
1840 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1841 (gnat_encoded_fixed_point_delta)
1842 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1843 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1844 (ada_print_type): Update.
1845 * ada-valprint.c (ada_value_print_num): Update.
1846 * dwarf2/read.c (ada_get_gnat_encoded_number)
1847 (ada_get_gnat_encoded_ratio): New functions.
1848 (finish_fixed_point_type): Use them. Add parameters.
1849 (GNAT_FIXED_POINT_SUFFIX): New define.
1850 (gnat_encoded_fixed_point_type_info): New function.
1851 (read_base_type): Handle gnat encodings.
1852
5f9febe0
TT
18532021-03-02 Tom Tromey <tromey@adacore.com>
1854
1855 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1856 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1857 std::string.
1858 (GROW_VECT): Remove.
1859 (grow_vect): Remove.
1860
d1183b06
TT
18612021-03-02 Tom Tromey <tromey@adacore.com>
1862
1863 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1864 * ada-lang.c (resolve_subexp): Update.
1865 (ada_resolve_function): Accept a vector.
1866 (is_nonfunction, add_defn_to_vec)
1867 (add_symbols_from_enclosing_procs): Likewise.
1868 (num_defns_collected, defns_collected): Remove.
1869 (remove_extra_symbols): Return a vector.
1870 (remove_irrelevant_renamings): Return void.
1871 (ada_add_local_symbols): Accept a vector.
1872 (struct match_data) <obstackp>: Remove.
1873 <resultp>: New member.
1874 (aux_add_nonlocal_symbols): Update.
1875 (ada_add_block_renamings, add_nonlocal_symbols)
1876 (ada_add_all_symbols): Accept a vector.
1877 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1878 vector.
1879 (ada_lookup_symbol): Update.
1880 (ada_add_block_symbols): Accept a vector.
1881 (get_var_value, iterate_over_symbols): Update.
1882 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1883 Update.
1884
886d459f
TT
18852021-03-02 Tom Tromey <tromey@adacore.com>
1886
1887 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1888
bdcccc56
TT
18892021-03-02 Tom Tromey <tromey@adacore.com>
1890
1891 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1892 auto_obstack.
1893 <root>: Initialize.
1894 (ada_pspace_data): Remove destructor.
1895 <sym_cache>: Now a unique_ptr.
1896 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1897 (ada_get_symbol_cache): Use 'new'.
1898 (ada_clear_symbol_cache): Rewrite.
1899
1228719f
TT
19002021-03-02 Tom Tromey <tromey@adacore.com>
1901
1902 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1903 is null.
1904
bb3a4efe
LS
19052021-02-27 Lancelot Six <lsix@lancelotsix.com>
1906
1907 PR gdb/27393
1908 * source.c (add_path): Skip empty dirnames.
1909
26b43ca6 19102021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
1911
1912 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1913 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1914
dffdd8b5
SM
19152021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1916
1917 PR gdb/26861
1918 * target.c (target_mourn_inferior): Only compare pids in
1919 target_mourn_inferior.
1920
64d38fdd
JM
19212021-02-25 Jan Matyas <jmatyas@codasip.com>
1922
1923 PR gdb/26819
1924 * remote.c (remote_target::start_remote): Ensure the single
1925 thread, automatically added for remote targets without the
1926 concept of threading, is initially in set to the "resumed"
1927 state.
1928 * remote.c (remote_target::add_current_inferior_and_thread):
1929 Add return value - return the main thread.
1930
2450ad54
JV
19312021-02-25 Jan Vrany <jan.vrany@labware.com>
1932
1933 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1934 (mi_tsv_created): Likewise.
1935 (mi_tsv_deleted): Likewise.
1936
30c80d88
TV
19372021-02-25 Tom de Vries <tdevries@suse.de>
1938
1939 PR symtab/27354
1940 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1941 section_kind for &dwo_file->sections.info.
1942
68337b8b
AB
19432021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1944
1945 PR fortran/26155
1946 * f-lang.c (fortran_argument_convert): Delete declaration.
1947 (fortran_prepare_argument): New function.
1948 (evaluate_subexp_f): Move logic to new function
1949 fortran_prepare_argument.
1950
faeb9f13
AB
19512021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1952
1953 * f-exp.y (f77_keywords): Add 'associated'.
1954 * f-lang.c (fortran_associated): New function.
1955 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1956 (operator_length_f): Likewise.
1957 (print_unop_or_binop_subexp_f): New function.
1958 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1959 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1960 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1961 (operator_check_f): Likewise.
1962 * std-operator.def: Add FORTRAN_ASSOCIATED.
1963
170f4b23
AB
19642021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1965
1966 * f-exp.y (fortran_operators): Add ".xor.".
1967
aa659cfa
TV
19682021-02-24 Tom de Vries <tdevries@suse.de>
1969
1970 PR symtab/27336
1971 * dwarf2/attribute.c (attribute::form_is_signed): New function
1972 factored out of ...
1973 * dwarf2/attribute.h (attribute::as_signed): ... here.
1974 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1975 (attribute::form_is_signed): Declare.
1976 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1977 for DW_AT_decl_file.
1978
268c77c1
KB
19792021-02-24 Kevin Buettner <kevinb@redhat.com>
1980
1981 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1982 order for <sys/ptrace.h> and <asm/ptrace.h>.
1983
665af52e
KB
19842021-02-24 Kevin Buettner <kevinb@redhat.com>
1985
1986 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1987 <sys/ptrace.h>.
1988
dd80d750
AB
19892021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1990
1991 * exec.c (set_section_command): Move variable declarations into
1992 the function body, and use std::string instead of a fixed size
1993 buffer.
1994
336aa7b7
AB
19952021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1996
1997 * exec.c (exec_target::get_section_table): Delete member function.
1998 (section_table_read_available_memory): Use current_top_target, not
1999 just the exec_ops target.
2000 * target-delegates.c: Regenerate.
2001 * target.c (default_get_section_table): New function.
2002 * target.h (target_ops::get_section_table): Change default
2003 behaviour to call default_get_section_table.
2004 (default_get_section_table): Declare.
2005
02f7d26b
AB
20062021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2007
2008 * exec.c (exec_target::close): Call new clear_target_sections
2009 function.
2010 (program_space::add_target_sections): Update name of member
2011 variable.
2012 (program_space::add_target_sections): Update name of member
2013 variable.
2014 (program_space::remove_target_sections): Likewise.
2015 (exec_one_fork): Use new target_sections member function.
2016 (exec_target::get_section_table): Likewise.
2017 (exec_target::files_info): Likewise.
2018 (set_section_command): Likewise.
2019 (exec_set_section_address): Likewise.
2020 (exec_target::has_memory): Use new target_sections member
2021 function.
2022 * progspace.h (program_space::clear_target_sections): New member
2023 function.
2024 (program_space::target_sections): Rename member variable to
2025 m_target_sections, replace with a new member function.
2026 (program_space::m_target_sections): New member variable.
2027 * solib-dsbt.c (scan_dyntag): Use new member function.
2028 * solib-svr4.c (scan_dyntag): Likewise.
2029
19cf757a
AB
20302021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2031
2032 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2033 return type const.
2034 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2035 (section_table_read_available_memory): Make local const.
2036 (exec_target::xfer_partial): Make local const.
2037 (print_section_info): Make parameter const.
2038 * gdb/exec.h (print_section_info): Likewise.
2039 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2040 const.
2041 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2042 Likewise.
2043 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2044 Likewise.
2045 * gdb/s390-tdep.c (s390_load): Likewise.
2046 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2047 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2048 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2049 Rename to...
2050 (target_debug_print_const_target_section_table_p): ...this.
2051 * gdb/target-delegates.c: Regenerate.
2052 * gdb/target.c (target_get_section_table): Make return type const.
2053 (target_section_by_addr): Likewise. Also make some locals const.
2054 (memory_xfer_partial_1): Make some locals const.
2055 * gdb/target.h (struct target_ops) <get_section_table>: Make
2056 return type const.
2057 (target_section_by_addr): Likewise.
2058 (target_get_section_table): Likewise.
2059
02a79309
AB
20602021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2061
2062 * NEWS: Mention new 'maint info target-sections' command.
2063 * maint.c (maintenance_info_target_sections): New function.
2064 (_initialize_maint_cmds): Register new command.
2065
895b7b4e
AB
20662021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2067
2068 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2069 (riscv_features_from_bfd): ...this. Change parameter type to
2070 'bfd*', and update as required.
2071 (riscv_find_default_target_description): Update call to
2072 riscv_features_from_bfd. Select a default xlen based on
2073 info.bfd_arch_info.
2074 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2075
bc3c0632
AB
20762021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2077
2078 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2079 dynamic types in UNOP_IND.
2080
08ac5771
SM
20812021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2082
2083 PR gdb/26828
2084 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2085 Instantiate queue.
2086 (~dwarf2_queue_guard): Clear queue.
2087 (queue_comp_unit): Assert that queue is
2088 instantiated.
2089 (process_queue): Adjust.
2090 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2091
616c069a
SM
20922021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2093
2094 PR gdb/26828
2095 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2096 to decide whether or not to enqueue it for expansion.
2097 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2098 after calling maybe_queue_comp_unit.
2099
897608ed
SM
21002021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2101
2102 * linux-nat.c (linux_nat_filter_event): Return void.
2103
15908a11
TT
21042021-02-22 Tom Tromey <tromey@adacore.com>
2105
2106 * solib-svr4.c (enable_break): Update.
2107 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2108 type.
2109 (target_bfd_reopen): Change parameter type.
2110 * bfd-target.h (target_bfd_reopen): Change parameter type.
2111
f53fc427
SM
21122021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2113
2114 * thread.c (add_thread_silent): Add assert.
2115 (find_thread_ptid): Add assert.
2116
de146e19
SM
21172021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2118
2119 PR gdb/27435
2120 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2121 (target_unpush_up): Likewise.
2122 * procfs.c (procfs_target::attach): Push target early. Use
2123 target_unpush_up to unpush target in case of error.
2124 * target.h (struct target_unpusher): Move here.
2125 (target_unpush_up): Likewise.
2126
8488c357
KB
21272021-02-19 Kevin Buettner <kevinb@redhat.com>
2128
2129 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2130 (which in turn includes <gnulib/config.h>) before include
2131 of <signal.h>.
2132
5a9f5403
NC
21332021-02-19 Nelson Chu <nelson.chu@sifive.com>
2134
2135 PR 27158
2136 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2137 (decode_j_type_insn): Likewise.
2138 (decode_cj_type_insn): Likewise.
2139 (decode_b_type_insn): Likewise.
2140 (decode): Likewise.
2141
26f53cd3
TT
21422021-02-18 Tom Tromey <tom@tromey.com>
2143
2144 * expression.h (struct expression) <evaluate>: Declare method.
2145 * eval.c (evaluate_subexp): Simplify.
2146 (expression::evaluate): New method.
2147 (evaluate_expression, evaluate_type): Use expression::evaluate.
2148
6a780b67
KB
21492021-02-17 Kevin Buettner <kevinb@redhat.com>
2150
2151 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2152 to accessing it.
2153 (ada_lookup_name_info): Likewise.
2154
adeab0c5
MF
21552021-02-13 Mike Frysinger <vapier@gentoo.org>
2156
2157 * aclocal.m4: Regenerate.
2158
089436f7
TV
21592021-02-12 Tom de Vries <tdevries@suse.de>
2160
2161 PR threads/26228
2162 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2163 (lin_thread_signals): New static var.
2164 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2165 New function.
2166 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2167 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2168 Declare.
2169 * linux-thread-db.c (check_thread_signals): Use
2170 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2171
96df3e28
AB
21722021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2173
2174 * f-exp.y (f77_keywords): Add allocated.
2175 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2176 (operator_length_f): Likewise.
2177 (print_subexp_f): Likewise.
2178 (dump_subexp_body_f): Likewise.
2179 (operator_check_f): Likewise.
2180 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2181
05f68f52
TV
21822021-02-11 Tom de Vries <tdevries@suse.de>
2183
2184 PR symtab/27353
2185 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2186 Return true for DW_FORM_strx.
2187
b260f8d6
TT
21882021-02-11 Tom Tromey <tromey@adacore.com>
2189
2190 PR gdb/27383:
2191 * parse.c (write_exp_symbol_reference): Write sym.block.
2192
bf3386f0
AB
21932021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2194
2195 * NEWS: Mention changes to 'maint info sections'.
2196 * maint.c (match_substring): Return a bool, fix whitespace issue.
2197 (struct single_bfd_flag_info): New struct.
2198 (bfd_flag_info): New static global.
2199 (match_bfd_flags): Return a bool, use bfd_flag_info.
2200 (print_bfd_flags): Use bfd_flag_info.
2201 (maint_print_section_info): Delete trailing whitespace.
2202 (struct maint_info_sections_opts): New struct.
2203 (maint_info_sections_option_defs): New static global.
2204 (maint_info_sections_completer): New function.
2205 (maintenance_info_sections): Use option parsing mechanism.
2206 (_initialize_maint_cmds): Update command help text for 'maint info
2207 sections' and register a command completer.
2208
4790db14
AB
22092021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2210
2211 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2212 functionality merged into...
2213 (maint_print_all_sections): ...this new function.
2214 (maintenance_info_sections): Make use of maint_print_all_sections,
2215 allow all objects to be printed even where there's no executable.
2216
1db66e34
AB
22172021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2218
2219 * breakpoint.c (resolve_sal_pc): Make use of
2220 bound_minimal_symbol::obj_section.
2221 * maint.c (maintenance_translate_address): Likewise.
2222 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2223 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2224 member function.
2225 * printcmd.c (info_address_command): Make use of
2226 bound_minimal_symbol::obj_section.
2227
18b8df43
AM
22282021-02-11 Alan Modra <amodra@gmail.com>
2229
2230 * arm-symbian-tdep.c: Delete.
2231 * NEWS: Mention arm-symbian removal.
2232 * Makefile.in: Remove arm-symbian-tdep entries.
2233 * configure.tgt: Remove arm*-*-symbianelf*.
2234 * doc/gdb.texinfo: Remove mention of SymbianOS.
2235 * osabi.c (gdb_osabi_names): Remove "Symbian".
2236 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2237 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2238 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2239 handling.
2240 * testsuite/gdb.base/dup-sect.exp: Likewise.
2241 * testsuite/gdb.base/long_long.exp: Likewise.
2242 * testsuite/gdb.base/solib-weak.exp: Likewise.
2243 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2244 * testsuite/gdb.python/py-section-script.exp: Likewise.
2245 * testsuite/lib/dwarf.exp: Likewise.
2246 * testsuite/lib/gdb.exp: Likewise.
2247
e92c8eb8
AB
22482021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2249
2250 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2251 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2252 (one_or_two_args): New pattern.
2253 (f77_keywords): Add lbound and ubound.
2254 * f-lang.c (fortran_bounds_all_dims): New function.
2255 (fortran_bounds_for_dimension): New function.
2256 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2257 (operator_length_f): Likewise.
2258 (print_subexp_f): Likewise.
2259 (dump_subexp_body_f): Likewise.
2260 (operator_check_f): Likewise.
2261 * std-operator.def (FORTRAN_LBOUND): Define.
2262 (FORTRAN_UBOUND): Define.
2263
a52d653e
AB
22642021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2265
2266 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2267 and set_section_index member functions where appropriate.
2268 * coffread.c (coff_symtab_read): Likewise.
2269 (process_coff_symbol): Likewise.
2270 * ctfread.c (set_symbol_address): Likewise.
2271 * dwarf2/read.c (add_partial_symbol): Likewise.
2272 (var_decode_location): Likewise.
2273 * language.c: Likewise.
2274 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2275 (compact_minimal_symbols): Likewise.
2276 (minimal_symbol_upper_bound): Likewise.
2277 * objfiles.c (relocate_one_symbol): Likewise.
2278 * psympriv.h (partial_symbol::obj_section): Likewise.
2279 (partial_symbol::address): Likewise.
2280 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2281 * stabsread.c (scan_file_globals): Likewise.
2282 * symmisc.c (dump_msymbols): Likewise.
2283 * symtab.c (general_symbol_info::obj_section): Likewise.
2284 (fixup_section): Likewise.
2285 (get_msymbol_address): Likewise.
2286 * symtab.h (general_symbol_info::section): Rename to...
2287 (general_symbol_info::m_section): ...this.
2288 (general_symbol_info::set_section_index): New member function.
2289 (general_symbol_info::section_index): Likewise.
2290 (SYMBOL_SECTION): Delete.
2291 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2292 set_section_index member functions where appropriate.
2293 (MSYMBOL_SECTION): Delete.
2294 (symbol::symbol): Update to initialize 'm_section'.
2295 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2296 (process_xcoff_symbol): Likewise.
2297
ebbc3a7d
AB
22982021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2299
2300 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2301 MSYMBOL_OBJ_SECTION.
2302 * findvar.c (language_defn::read_var_value): Likewise.
2303 * infcmd.c (jump_command): Likewise.
2304 * linespec.c (minsym_found): Likewise.
2305 * maint.c (maintenance_translate_address): Likewise.
2306 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2307 (minimal_symbol_upper_bound): Likewise.
2308 * parse.c (find_minsym_type_and_address): Likewise.
2309 (operator_check_standard): Likewise.
2310 * printcmd.c (info_address_command): Likewise.
2311 * symmisc.c (dump_msymbols): Likewise.
2312 (print_symbol): Likewise.
2313 * symtab.c (general_symbol_info::obj_section): Define new
2314 function.
2315 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2316 (find_pc_sect_compunit_symtab): Likewise.
2317 (find_function_start_sal): Likewise.
2318 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2319 MSYMBOL_OBJ_SECTION.
2320 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2321 function.
2322 (SYMBOL_OBJ_SECTION): Delete.
2323 (MSYMBOL_OBJ_SECTION): Delete.
2324
9bb305b3
TT
23252021-02-09 Tom Tromey <tom@tromey.com>
2326
2327 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2328
cf2b2075
TV
23292021-02-09 Tom de Vries <tdevries@suse.de>
2330
2331 PR symtab/27341
2332 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2333 construct an array type. Add assert to ensure that element_type is
2334 not being modified.
2335
03642b71
AB
23362021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2337
2338 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2339 (gcore_collect_regset_section_cb): Delete.
2340 (gcore_collect_thread_registers): Delete.
2341 (gcore_build_thread_register_notes): Delete.
2342 (gcore_find_signalled_thread): Delete.
2343 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2344 'gdbarch' and 'thread_info' declarations.
2345 (gcore_build_thread_register_notes): Delete declaration.
2346 (gcore_find_signalled_thread): Likewise.
2347 * fbsd-tdep.c: Remove 'gcore.h' include.
2348 (struct fbsd_collect_regset_section_cb_data): New struct.
2349 (fbsd_collect_regset_section_cb): New function.
2350 (fbsd_collect_thread_registers): New function.
2351 (struct fbsd_corefile_thread_data): New struct.
2352 (fbsd_corefile_thread): New function.
2353 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2354 * linux-tdep.c: Remove 'gcore.h' include.
2355 (struct linux_collect_regset_section_cb_data): New struct.
2356 (linux_collect_regset_section_cb): New function.
2357 (linux_collect_thread_registers): New function.
2358 (linux_corefile_thread): Call Linux specific code.
2359 (find_signalled_thread): New function.
2360 (linux_make_corefile_notes): Call find_signalled_thread.
2361
f73e424f
TT
23622021-02-09 Tom Tromey <tromey@adacore.com>
2363
2364 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2365 not_lval value.
2366 * value.c (value_contents_copy_raw): Now static.
2367 * value.h (value_contents_copy_raw): Don't declare.
2368
a4f0544b
TT
23692021-02-09 Tom Tromey <tromey@adacore.com>
2370
2371 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2372 fields.
2373
9b3e4b5d
SV
23742021-02-08 Shahab Vahedi <shahab@synopsys.com>
2375
2376 PR tdep/27369
2377 * arc-linux-tdep.c (handle_atomic_sequence): New.
2378 (arc_linux_software_single_step): Call handle_atomic_sequence().
2379
29db1eb3
AB
23802021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2381
2382 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2383 function.
2384 (REQUIRE_WINDOW): Call is_valid member function.
2385 (REQUIRE_WINDOW_FOR_SETTER): New define.
2386 (gdbpy_tui_is_valid): Call is_valid member function.
2387 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2388 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2389 tui_active too.
2390 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2391 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2392 the function.
2393
e0c23e11
AB
23942021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2395
2396 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2397 for the title is not nullptr.
2398
1cf23996
AB
23992021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2400
2401 * tui-layout.c (saved_tui_windows): Delete.
2402 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2403 call new get_windows member function instead.
2404 (tui_get_window_by_name): Check in tui_windows.
2405 (tui_layout_window::apply): Don't add to tui_windows.
2406 * tui-layout.h (tui_layout_base::get_windows): New member function.
2407 (tui_layout_window::get_windows): Likewise.
2408 (tui_layout_split::get_windows): Likewise.
2409
a53a2657
AB
24102021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2411
2412 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2413 of the window objects.
2414
2708dbbd
AB
24152021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2416
2417 * python/python.c (gdbpy_print_stack): Reformat an error message.
2418
cd074e04
AB
24192021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2420
2421 * tui/tui-interp.c (tui_command_line_handler): New function.
2422 (tui_interp::resume): Register tui_command_line_handler as the
2423 input_handler.
2424 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2425 function.
2426 (tui_getc_1): Delete handling of '\n' and '\r'.
2427 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2428
4cf28e91
HD
24292021-02-07 Hannes Domani <ssbssa@yahoo.de>
2430
2431 * tui/tui-regs.c (tui_data_window::display_registers_from):
2432 Mark invisible register sub windows.
2433 (tui_data_window::check_register_values): Ignore invisible
2434 register sub windows.
2435
3537bc23
HD
24362021-02-07 Hannes Domani <ssbssa@yahoo.de>
2437
2438 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2439 n_spaces with a negative value.
2440
5fc2d6aa
HD
24412021-02-07 Hannes Domani <ssbssa@yahoo.de>
2442
2443 * tui/tui-regs.c (tui_data_window::display_registers_from):
2444 Add refresh_window call.
2445
83962f83
HD
24462021-02-07 Hannes Domani <ssbssa@yahoo.de>
2447
2448 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2449
0110ec82
SM
24502021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2451
2452 * symmisc.c (std_in, std_out, std_err): Remove.
2453 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2454
7c6944ab
TV
24552021-02-05 Tom de Vries <tdevries@suse.de>
2456
2457 PR breakpoints/27330
2458 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2459 glibc object file has debug info.
2460
e77b0004
TV
24612021-02-05 Tom de Vries <tdevries@suse.de>
2462
2463 PR symtab/27333
2464 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2465
0e857c82
TV
24662021-02-05 Tom de Vries <tdevries@suse.de>
2467
2468 PR breakpoints/27313
2469 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2470 syscall numbers.
2471
bdfea17e
TT
24722021-02-05 Tom Tromey <tom@tromey.com>
2473
2474 * compile/compile-c-support.c (get_compile_context)
2475 (c_get_compile_context, cplus_get_compile_context): Change return
2476 type.
2477 * language.c (language_defn::get_compile_instance): New method.
2478 * language.h (language_defn::get_compile_instance): Change return
2479 type. No longer inline.
2480 * c-lang.c (c_language::get_compile_instance): Change return type.
2481 (cplus_language::get_compile_instance): Change return type.
2482 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2483 Change return type.
2484 * compile/compile.c (compile_to_object): Update.
2485
1b30f421
TT
24862021-02-05 Tom Tromey <tom@tromey.com>
2487
2488 * parser-defs.h (write_exp_symbol_reference): Declare.
2489 * parse.c (write_exp_symbol_reference): New function.
2490 * p-exp.y (variable): Use write_exp_symbol_reference.
2491 * m2-exp.y (variable): Use write_exp_symbol_reference.
2492 * f-exp.y (variable): Use write_exp_symbol_reference.
2493 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2494 * c-exp.y (variable): Use write_exp_symbol_reference.
2495
ae710496
TV
24962021-02-05 Tom de Vries <tdevries@suse.de>
2497
2498 PR exp/27265
2499 * valarith.c (complex_binop): Throw an error if complex type can't
2500 be created.
2501
d3b54e63
TV
25022021-02-05 Tom de Vries <tdevries@suse.de>
2503
2504 PR symtab/27307
2505 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2506 return.
2507
fc9a13fb
TV
25082021-02-05 Tom de Vries <tdevries@suse.de>
2509
2510 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2511
04b4939b
MF
25122021-02-04 Mike Frysinger <vapier@gentoo.org>
2513
2514 * configure.tgt (riscv*-*-*): Set gdb_sim.
2515
6ff267e1
SM
25162021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2517
2518 * target.c (target_is_non_stop_p): Return bool.
2519 * target.h (target_is_non_stop_p): Return bool.
2520
fdbc5215
SM
25212021-02-04 Simon Marchi <simon.marchi@efficios.com>
2522
2523 * record-full.c (record_full_async_inferior_event_handler):
2524 Don't clear async event handler.
2525 (record_full_base_target::wait): Clear async event handler at
2526 beginning.
2527
85d3ad8e
SM
25282021-02-04 Simon Marchi <simon.marchi@efficios.com>
2529
2530 * record-btrace.c (record_btrace_handle_async_inferior_event):
2531 Don't clear async event handler.
2532 (record_btrace_target::wait): Clear async event handler at
2533 beginning.
2534
baa8575b
SM
25352021-02-04 Simon Marchi <simon.marchi@efficios.com>
2536
2537 * remote.c (remote_target::wait): Clear async event handler at
2538 beginning, mark if needed at the end.
2539 (remote_async_inferior_event_handler): Don't set or clear async
2540 event handler.
2541
6b36ddeb
SM
25422021-02-04 Simon Marchi <simon.marchi@efficios.com>
2543
2544 * async-event.h (async_event_handler_func): Add documentation.
2545 * async-event.c (check_async_event_handlers): Don't clear
2546 async_event_handler ready flag.
2547 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2548 flag.
2549 * record-btrace.c (record_btrace_handle_async_inferior_event):
2550 Likewise.
2551 * record-full.c (record_full_async_inferior_event_handler):
2552 Likewise.
2553 * remote-notif.c (remote_async_get_pending_events_handler):
2554 Likewise.
2555 * remote.c (remote_async_inferior_event_handler): Likewise.
2556
72d383bb
SM
25572021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * infrun.c (handle_inferior_event): Move stop_soon variable to
2560 inner scope.
2561
408f6686
PA
25622021-02-03 Pedro Alves <pedro@palves.net>
2563
2564 * infcmd.c (detach_command): Hold strong reference to target, and
2565 if all-stop on entry, restart threads on exit.
2566 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2567 (restart_stepped_thread): ... this new function. Also handle
2568 trap_expected.
2569 (restart_after_all_stop_detach): New function.
2570 * infrun.h (restart_after_all_stop_detach): Declare.
2571
ac7d717c
PA
25722021-02-03 Pedro Alves <pedro@palves.net>
2573
2574 * infrun.c (struct step_over_info): Initialize fields.
2575 (prepare_for_detach): Handle ongoing in-line step over.
2576
e87f0fe8
PA
25772021-02-03 Pedro Alves <pedro@palves.net>
2578
2579 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2580 here...
2581 * remote.c (remote_target::remote_detach_1): ... and here ...
2582 * target.c (target_detach): ... instead of here.
2583 * target.h (target_ops::detach): Add comment.
2584
8ff53139
PA
25852021-02-03 Pedro Alves <pedro@palves.net>
2586
2587 * infrun.c (struct wait_one_event): Move higher up.
2588 (prepare_for_detach): Abort in-progress displaced steps instead of
2589 letting them complete.
2590 (handle_one): If the inferior is detaching, don't add the thread
2591 back to the global step-over chain.
2592 (restart_threads): Don't restart threads if detaching.
2593 (handle_signal_stop): Remove inferior::detaching reference.
2594
91475068
PA
25952021-02-03 Pedro Alves <pedro@palves.net>
2596
2597 * infrun.c (prepare_for_detach): Don't release scoped_restore
2598 before returning.
2599
d758e62c
PA
26002021-02-03 Pedro Alves <pedro@palves.net>
2601
2602 * infrun.c (handle_one): New function, factored out from ...
2603 (stop_all_threads): ... here.
2604
b0083dd7
PA
26052021-02-03 Pedro Alves <pedro@palves.net>
2606
2607 * remote.c (remote_notif_stop_ack): Don't error out on
2608 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2609 (remote_target::discard_pending_stop_replies): Don't delete
2610 in-flight notification; instead, clear its contents.
2611
621cc310
PA
26122021-02-03 Pedro Alves <pedro@palves.net>
2613
2614 * remote.c (extended_remote_target::attach): Set target async in
2615 the target-non-stop path too.
2616
2ab76a18
PA
26172021-02-03 Pedro Alves <pedro@palves.net>
2618
2619 PR gdb/27055
2620 * infrun.c (handle_signal_stop): Move main context_switch call
2621 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2622
2e3773ff
LS
26232021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2624
2625 * NEWS (Changed commands): Add entry for the behavior change of
2626 the inferior command.
2627 * inferior.c (inferior_command): When no argument is given to the
2628 inferior command, display info about the currently selected
2629 inferior.
2630
e57933dc
SM
26312021-02-02 Simon Marchi <simon.marchi@efficios.com>
2632
2633 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2634 a sect_offset.
2635 (read_attribute_reprocess): Adjust.
2636
2b0c7f41
SM
26372021-02-02 Simon Marchi <simon.marchi@efficios.com>
2638
2639 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2640 <gnu_ranges_base>: ... this...
2641 <rnglists_base>: ... and this.
2642 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2643 <gnu_ranges_base>: ... this...
2644 <rnglists_base>: ... and this.
2645 (read_cutu_die_from_dwo): Adjust
2646 (dwarf2_get_pc_bounds): Adjust
2647 (dwarf2_record_block_ranges): Adjust.
2648 (read_full_die_1): Adjust
2649 (partial_die_info::read): Adjust.
2650 (read_rnglist_index): Adjust.
2651
a1c40103
SM
26522021-02-02 Simon Marchi <simon.marchi@efficios.com>
2653
2654 PR gdb/26813
2655 * dwarf2/read.c (read_loclists_rnglists_header): Add
2656 header_offset parameter and use it.
2657 (read_loclist_index): Read header of the current contribution,
2658 not the one at the beginning of the section.
2659 (read_rnglist_index): Likewise.
2660
b1829e1b
SM
26612021-02-02 Simon Marchi <simon.marchi@efficios.com>
2662
2663 PR gdb/26813
2664 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2665 requires_reprocessing flag.
2666 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2667 DW_FORM_loclistx.
2668 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2669 and DW_FORM_loclistx.
2670 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2671 instead of set_address for DW_FORM_loclistx and
2672 DW_FORM_rnglistx.
2673
0c800c6e
SM
26742021-02-02 Simon Marchi <simon.marchi@efficios.com>
2675
2676 * dwarf2/read.c (read_loclist_index): Remove bound check for
2677 start of offset.
2678 (read_rnglist_index): Likewise.
2679
05787bad
SM
26802021-02-02 Simon Marchi <simon.marchi@efficios.com>
2681
2682 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2683 of the offset.
2684
5e4d9bbc
SM
26852021-02-02 Simon Marchi <simon.marchi@efficios.com>
2686
2687 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2688
a0c1eeba
SM
26892021-02-02 Simon Marchi <simon.marchi@efficios.com>
2690
2691 * dwarf2/read.c (read_loclist_index): Change complaints into
2692 errors.
2693
2bd3e4b8
TV
26942021-02-02 Tom de Vries <tdevries@suse.de>
2695
2696 PR symtab/24620
2697 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2698 psymtab == nullptr.
2699
82a1fd3a
AB
27002021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2701
2702 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2703 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2704 here from linux-tdep.c and given a new name. Minor cleanups.
2705 (gcore_collect_regset_section_cb): Likewise.
2706 (gcore_collect_thread_registers): Likewise.
2707 (gcore_build_thread_register_notes): Likewise.
2708 (gcore_find_signalled_thread): Likewise.
2709 * gcore.h (gcore_build_thread_register_notes): Declare.
2710 (gcore_find_signalled_thread): Declare.
2711 * fbsd-tdep.c: Add 'gcore.h' include.
2712 (struct fbsd_collect_regset_section_cb_data): Delete.
2713 (fbsd_collect_regset_section_cb): Delete.
2714 (fbsd_collect_thread_registers): Delete.
2715 (struct fbsd_corefile_thread_data): Delete.
2716 (fbsd_corefile_thread): Delete.
2717 (fbsd_make_corefile_notes): Call
2718 gcore_build_thread_register_notes instead of the now deleted
2719 FreeBSD code.
2720 * linux-tdep.c: Add 'gcore.h' include.
2721 (struct linux_collect_regset_section_cb_data): Delete.
2722 (linux_collect_regset_section_cb): Delete.
2723 (linux_collect_thread_registers): Delete.
2724 (linux_corefile_thread): Call
2725 gcore_build_thread_register_notes.
2726 (find_signalled_thread): Delete.
2727 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2728
ebde6f2d
TV
27292021-01-29 Tom de Vries <tdevries@suse.de>
2730
2731 PR breakpoints/26063
2732 * infrun.c (process_event_stop_test): Reset
2733 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2734 changed.
2735
0f93c3a2
AB
27362021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2737
2738 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2739 assert. Extend the header comment.
2740
f237f998
AB
27412021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2742
2743 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2744 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2745 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2746 (tui_locator_win_info_ptr): Delete declaration.
2747 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2748 (tui_disasm_window::set_contents): Fetch state from tui_location
2749 global.
2750 (tui_get_begin_asm_address): Likewise.
2751 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2752 for locator window.
2753 (get_locator_window): Delete.
2754 (initialize_known_windows): Treat locator window just like all the
2755 rest.
2756 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2757 (tui_source_window::set_contents): Fetch state from tui_location
2758 global.
2759 (tui_source_window::showing_source_p): Likewise.
2760 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2761 (_locator): Delete.
2762 (tui_locator_win_info_ptr): Delete.
2763 (tui_locator_window::make_status_line): Fetch state from
2764 tui_location global.
2765 (tui_locator_window::rerender): Remove check of 'handle',
2766 reindent function body.
2767 (tui_locator_window::set_locator_fullname): Delete.
2768 (tui_locator_window::set_locator_info): Delete.
2769 (tui_update_locator_fullname): Delete.
2770 (tui_show_frame_info): Likewise.
2771 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2772 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2773 tui/tui-location.h and renamed to
2774 tui_location_tracker::set_location.
2775 (tui_locator_window::set_locator_fullname): Moved to
2776 tui/tui-location.h and renamed to
2777 tui_location_tracker::set_fullname.
2778 (tui_locator_window::full_name): Delete.
2779 (tui_locator_window::proc_name): Delete.
2780 (tui_locator_window::line_no): Delete.
2781 (tui_locator_window::addr): Delete.
2782 (tui_locator_window::gdbarch): Delete.
2783 (tui_update_locator_fullname): Delete declaration.
2784 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2785 for locator window.
2786 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2787 (tui_display_main): Call function on tui_location directly.
2788 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2789 * tui/tui-location.c: New file.
2790 * tui/tui-location.h: New file.
2791
8ee511af
SM
27922021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2793
2794 * gdbtypes.h (get_type_arch): Rename to...
2795 (struct type) <arch>: ... this, update all users.
2796
6ac37371
SM
27972021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2798
2799 * gdbtypes.h (struct type) <arch>: Rename to...
2800 <arch_owner>: ... this, update all users.
2801 <objfile>: Rename to...
2802 <objfile_owner>: ... this, update all users.
2803
24cf6389
AB
28042021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2805
2806 * gdbcmd.h (execute_command_to_string): Update comment.
2807 * top.c (execute_command_to_string): Update header comment.
2808
2a7f6487
TV
28092021-01-28 Tom de Vries <tdevries@suse.de>
2810
2811 PR breakpoints/27205
2812 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2813 (create_longjmp_master_breakpoint_names): New function, factored out
2814 of ...
2815 (create_longjmp_master_breakpoint): ... here. Only try to install
2816 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2817 breakpoint in libc.so failed.
2818
59b59f08
LS
28192021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2820
2821 PR gdb/27133
2822 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2823 unique_ptr is released when the wrapped pointer is kept for later
2824 use.
2825
807f647c
MM
28262021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2827
2828 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2829 BLR and BR instructions.
2830 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2831 (enum aarch64_masks): New.
2832
4ef367bf
TT
28332021-01-26 Tom Tromey <tromey@adacore.com>
2834
2835 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2836 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2837 (windows_init_thread_list, windows_nat::handle_load_dll)
2838 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2839 (windows_nat_target::resume)
2840 (windows_nat_target::get_windows_debug_event)
2841 (windows_nat_target::interrupt, windows_xfer_memory)
2842 (windows_nat_target::close): Update.
2843 * nat/windows-nat.c (DEBUG_EVENTS): Use
2844 debug_prefixed_printf_cond.
2845 (matching_pending_stop, fetch_pending_stop)
2846 (continue_last_debug_event): Update.
2847
4cb1265b
MS
28482020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2849
2850 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2851 elfcore_write_file_note.
2852
d0cc52bd
SV
28532021-01-26 Shahab Vahedi <shahab@synopsys.com>
2854
2855 * arc-tdep.c (arc_add_reggroups): New function.
2856 (arc_gdbarch_init): Call arc_add_reggroups.
2857
ac3571d9 28582021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
2859
2860 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2861
9f6c202e
TV
28622021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2863 Simon Marchi <simon.marchi@polymtl.ca>
2864 Tom de Vries <tdevries@suse.de>
2865
2866 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2867 DW_AT_ranges.
2868
a625a8c9
TT
28692021-01-25 Tom Tromey <tromey@adacore.com>
2870
2871 * dwarf2/read.c (get_mpz): New function.
2872 (get_dwarf2_rational_constant): Use it.
2873
19184910
TT
28742021-01-25 Tom Tromey <tromey@adacore.com>
2875
2876 * ada-lang.c (resolve_subexp): Handle array context.
2877
b10bae18
TT
28782021-01-23 Tom Tromey <tom@tromey.com>
2879
2880 PR compile/25575
2881 * compile/compile-loc2c.c (note_register): New function.
2882 (pushf_register_address, pushf_register): Use it.
2883
3637a558
TT
28842021-01-23 Tom Tromey <tom@tromey.com>
2885
2886 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2887 Change type of "registers_used".
2888 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2889 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2890 (locexpr_generate_c_location, loclist_generate_c_location): Change
2891 type of "registers_used".
2892 * compile/compile.h (compile_dwarf_expr_to_c)
2893 (compile_dwarf_bounds_to_c): Update.
2894 * compile/compile-loc2c.c (pushf_register_address)
2895 (pushf_register, do_compile_dwarf_expr_to_c)
2896 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2897 of "registers_used".
2898 * compile/compile-c.h (generate_c_for_variable_locations):
2899 Update.
2900 * compile/compile-c-symbols.c (generate_vla_size)
2901 (generate_c_for_for_one_variable): Change type of
2902 "registers_used".
2903 (generate_c_for_variable_locations): Return std::vector.
2904 * compile/compile-c-support.c (generate_register_struct): Change
2905 type of "registers_used".
2906 (compute): Update.
2907
9f7f6cb8
TT
29082021-01-23 Tom Tromey <tom@tromey.com>
2909
2910 * compile/compile-internal.h (class compile_instance)
2911 <set_arguments>: Change return type.
2912 * compile/compile.c (compile_to_object): Remove call to reset.
2913 (compile_instance::set_arguments): Change return type.
2914
dd5ca05f
SM
29152021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2916
2917 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2918 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2919
d3ee35db
LS
29202021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2921
2922 * Makefile.in (SELFTESTS_SRCS): Add
2923 unittests/gdb_tilde_expand-selftests.c.
2924 * unittests/gdb_tilde_expand-selftests.c: New file.
2925
9d2d8a16
AB
29262021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2927
2928 PR cli/25956
2929 * NEWS: Mention new command.
2930 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2931 (version_style): Define.
2932 (cli_style_option::cli_style_option): Add intensity parameter, and
2933 use as appropriate.
2934 (_initialize_cli_style): Register version style set/show commands.
2935 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2936 (version_style): Declare.
2937 * top.c (print_gdb_version): Use version_stype, and styled_string
2938 to print the GDB version string.
2939
e7b43072
AB
29402021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2941
2942 * utils.c (emit_style_escape): Only emit an escape sequence if the
2943 requested style is different than the current applied style.
2944 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2945 current applied_style.
2946 (fputs_styled): Remove is_default check.
2947 (fputs_styled_unfiltered): Likewise.
2948 (vfprintf_styled_no_gdbfmt): Likewise.
2949
2189c312
SM
29502021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2951
2952 * remote.h (remote_debug_printf): New.
2953 (remote_debug_printf_nofunc): New.
2954 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2955 * remote.c: Use above macros throughout file.
2956
02349803
SM
29572021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2958
2959 * remote.h (remote_debug): Change to bool.
2960 * remote.c (remote_debug): Change to bool.
2961 (_initialize_remote): Adjust.
2962
cda09ec9
SM
29632021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2964
2965 * target.h (remote_debug): Move to...
2966 * remote.h (remote_debug): ... here.
2967 * top.c (remote_debug): Move to...
2968 * remote.c (remote_debug): ... here.
2969 * remote-sim.c: Include remote.h.
2970
baf2b57f
SM
29712021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2972
2973 * cli/cli-cmds.c (show_remote_debug): Remove.
2974 (show_remote_timeout): Remove.
2975 (_initialize_cli_cmds): Don't register commands.
2976 * remote.c (show_remote_debug): Move here.
2977 (show_remote_timeout): Move here.
2978 (_initialize_remote): Register commands.
2979
344e9841
SM
29802021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2981
2982 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2983 type::objfile method instead.
2984
30625020
SM
29852021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2986
2987 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2988 use the type::is_objfile_owned method.
2989
5b7d941b
SM
29902021-01-22 Simon Marchi <simon.marchi@efficios.com>
2991
2992 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2993 (TYPE_OWNER): Remove.
2994 (TYPE_OBJFILE): Adjust.
2995 (struct main_type) <flag_objfile_owned>: Rename to...
2996 <m_flag_objfile_owned>: ... this.
2997 <owner>: Rename to...
2998 <m_owner>: ... this.
2999 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
3000 methods.
3001 (TYPE_ALLOC): Adjust.
3002 * gdbtypes.c (alloc_type): Adjust.
3003 (alloc_type_arch): Adjust.
3004 (alloc_type_copy): Adjust.
3005 (get_type_arch): Adjust.
3006 (smash_type): Adjust.
3007 (lookup_array_range_type): Adjust.
3008 (recursive_dump_type): Adjust.
3009 (copy_type_recursive): Adjust.
3010 * compile/compile-c-types.c (convert_func): Adjust.
3011 (convert_type_basic): Adjust.
3012 * compile/compile-cplus-types.c (compile_cplus_convert_func):
3013 Adjust.
3014 * language.c
3015 (language_arch_info::type_and_symbol::alloc_type_symbol):
3016 Adjust.
3017
d5d24e12
LM
30182021-01-21 Luis Machado <luis.machado@linaro.org>
3019
3020 * coffread.c (enter_linenos): Passing string to complaint.
3021 * valops.c (value_assign): Make array view.
3022
a59902a7
SM
30232021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3024
3025 * auto-load.h (debug_auto_load): Move here.
3026 (auto_load_debug_printf): New.
3027 * auto-load.c: Use auto_load_debug_printf.
3028 (debug_auto_load): Move to header.
3029 * linux-thread-db.c (try_thread_db_load): Use
3030 auto_load_debug_printf.
3031 * main.c (captured_main_1): Likewise.
3032
d3abc0ce
SM
30332021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3034
3035 * f-valprint.c (f77_array_offset_tbl): Remove.
3036
1e15fcac
SM
30372021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3038
3039 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3040
439706e6
SM
30412021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3042
3043 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3044 of gdb_select.
3045
325d39e4
HD
30462021-01-21 Hannes Domani <ssbssa@yahoo.de>
3047
3048 PR python/19151
3049 * python/py-breakpoint.c (bppy_get_location): Handle
3050 bp_hardware_breakpoint.
3051 (bppy_init): Likewise.
3052 (gdbpy_breakpoint_created): Likewise.
3053
7cb6d92a
SM
30542021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3055
3056 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3057
d4dd4fca
SM
30582021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3059
3060 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3061 (_initialize_gdb_bfd): Adjust.
3062
de53369b
SM
30632021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3064
3065 PR gdb/26828
3066 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3067
17e593e9
SM
30682021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3069
3070 * dwarf2/read.c (follow_die_offset): Add logging.
3071 (dwarf2_per_objfile::age_comp_units): Add logging.
3072
6bd434d6
SM
30732021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3074
3075 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3076 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3077 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3078 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3079 * arm-tdep.c (struct frame_unwind): Make static.
3080 * auto-load.c (auto_load_safe_path_vec): Make static.
3081 * csky-tdep.c (csky_stub_unwind): Make static.
3082 * gdbarch.c (gdbarch_data_registry): Make static.
3083 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3084 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3085 * i386-tdep.c (i386_frame_setup_skip_insns,
3086 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3087 Make static.
3088 * infrun.c (observer_mode): Make static.
3089 * linux-nat.c (sigchld_action): Make static.
3090 * linux-thread-db.c (thread_db_list): Make static.
3091 * maint-test-options.c (maintenance_test_options_list):
3092 * mep-tdep.c (mep_csr_registers): Make static.
3093 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3094 (stats): Make static.
3095 * nat/linux-osdata.c (struct osdata_type): Make static.
3096 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3097 * progspace.c (last_program_space_num): Make static.
3098 * python/py-param.c (struct parm_constant): Remove struct type
3099 name.
3100 (parm_constants): Make static.
3101 * python/py-record-btrace.c (btpy_list_methods): Make static.
3102 * python/py-record.c (recpy_gap_type): Make static.
3103 * record.c (record_goto_cmdlist): Make static.
3104 * regcache.c (regcache_descr_handle): Make static.
3105 * registry.h (DEFINE_REGISTRY): Make definition static.
3106 * symmisc.c (std_in, std_out, std_err): Make static.
3107 * top.c (previous_saved_command_line): Make static.
3108 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3109 static.
3110 * unittests/command-def-selftests.c (nr_duplicates,
3111 nr_invalid_prefixcmd, lists): Make static.
3112 * unittests/observable-selftests.c (test_notification): Make
3113 static.
3114 * unittests/optional/assignment/1.cc (counter): Make static.
3115 * unittests/optional/assignment/2.cc (counter): Make static.
3116 * unittests/optional/assignment/3.cc (counter): Make static.
3117 * unittests/optional/assignment/4.cc (counter): Make static.
3118 * unittests/optional/assignment/5.cc (counter): Make static.
3119 * unittests/optional/assignment/6.cc (counter): Make static.
3120
a6c11cbb
JS
31212021-01-20 Joel Sherrill <joel@rtems.org>
3122
3123 PR gdb/27219
3124 * remote.c (struct remote_thread_info) <resume_state>: Rename
3125 to...
3126 <get_resume_state>: ... this.
3127 (remote_target::resume): Adjust.
3128 (remote_target::commit_resume): Adjust.
3129 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3130
6f52fdf4
SDJ
31312021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3132 Tom Tromey <tom@tromey.com>
3133
3134 * stap-probe.c (stap_parse_single_operand): Handle '!'
3135 operator.
3136 (stap_parse_argument_conditionally): Likewise.
3137 Skip spaces after processing open-parenthesis sub-expression.
3138 (stap_parse_argument_1): Skip spaces after call to
3139 stap_parse_argument_conditionally.
3140 Handle case when right-side expression is a parenthesized
3141 sub-expression.
3142 Skip spaces after call to stap_parse_argument_1.
3143
1c3b85ad
LS
31442021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3145
3146 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3147
a9a87d35
LM
31482021-01-19 Luis Machado <luis.machado@linaro.org>
3149
3150 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3151 memory and save data.
3152 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3153 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3154 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3155 (trad_frame_value_bytes_p): Remove.
3156 (trad_frame_reset_saved_regs): Adjust documentation.
3157 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3158 constructor and reset the state of the registers.
3159 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3160 (trad_frame_value_bytes_p, trad_frame_set_value)
3161 (trad_frame_set_realreg, trad_frame_set_addr)
3162 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3163 (trad_frame_set_reg_realreg): Update to call member function.
3164 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3165 (trad_frame_get_prev_register): Likewise.
3166
3167 * aarch64-tdep.c (aarch64_analyze_prologue)
3168 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3169 (aarch64_prologue_prev_register): Update to use member functions.
3170 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3171 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3172 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3173 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3174 (arm_make_epilogue_frame_cache): Likewise.
3175 * avr-tdep.c (avr_frame_unwind_cache)
3176 (avr_frame_prev_register): Likewise.
3177 * cris-tdep.c (cris_scan_prologue): Likewise.
3178 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3179 * frv-tdep.c (frv_analyze_prologue): Likewise.
3180 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3181 * lm32-tdep.c (lm32_frame_cache): Likewise.
3182 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3183 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3184 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3185 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3186 (reset_saved_regs): Adjust to set realreg.
3187 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3188 call member functions.
3189 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3190 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3191 (s390_backchain_frame_unwind_cache): Likewise.
3192 * score-tdep.c (score7_analyze_prologue)
3193 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3194 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3195 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3196 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3197 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3198 * tilegx-tdep.c (tilegx_analyze_prologue)
3199 (tilegx_frame_cache): Likewise.
3200 * v850-tdep.c (v850_frame_cache): Likewise.
3201 * vax-tdep.c (vax_frame_cache): Likewise.
3202
bdec2917
LM
32032021-01-19 Luis Machado <luis.machado@linaro.org>
3204
3205 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3206 of buffer + length.
3207 (put_frame_register_bytes): Likewise.
3208 Adjust documentation.
3209 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3210 (safe_frame_unwind_memory): Likewise.
3211 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3212 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3213 gdb::array_view.
3214 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3215 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3216 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3217 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3218 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3219 * dwarf2/loc.c (rw_pieced_value): Likewise.
3220 * hppa-tdep.c (hppa_frame_cache): Likewise.
3221 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3222 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3223 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3224 (i386_linux_rt_sigtramp_start): Likewise.
3225 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3226 * i386-tdep.c (i386_register_to_value): Likewise.
3227 * i387-tdep.c (i387_register_to_value): Likewise.
3228 * ia64-tdep.c (ia64_register_to_value): Likewise.
3229 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3230 (m32r_linux_rt_sigtramp_start): Likewise.
3231 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3232 * m68k-tdep.c (m68k_register_to_value): Likewise.
3233 * mips-tdep.c (mips_register_to_value)
3234 (mips_value_to_register): Likewise.
3235 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3236 (ppcfbsd_sigtramp_frame_cache): Likewise.
3237 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3238 (ppcobsd_sigtramp_frame_cache): Likewise.
3239 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3240 (rs6000_register_to_value): Likewise.
3241 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3242 * tramp-frame.c (tramp_frame_start): Likewise.
3243 * valops.c (value_assign): Likewise.
3244
ccbe4c82
LM
32452021-01-19 Luis Machado <luis.machado@linaro.org>
3246
3247 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3248 array_view.
3249 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3250 instead of buffer and size.
3251 (trad_frame_set_reg_value_bytes): Likewise.
3252 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3253 (trad_frame_set_value_bytes): Likewise.
3254
0e7620dc
MF
32552021-01-18 Mike Frysinger <vapier@gentoo.org>
3256
3257 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3258
6a9ad81c
AB
32592021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3260
3261 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3262 (riscv_fbsd_gregset): Use riscv_supply_regset.
3263 (riscv_fbsd_fpregset): Likewise.
3264 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3265 (riscv_linux_fregset): Likewise.
3266 * riscv-tdep.c (riscv_supply_regset): Define new function.
3267 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3268
d3d7d1ba
TV
32692021-01-18 Tom de Vries <tdevries@suse.de>
3270
3271 PR tdep/27172
3272 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3273 New macro.
3274 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3275 for SEGV_BNDERR.
3276
aa2838cc
SM
32772021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3278
3279 * remote.c (class remote_target) <remote_hostio_send_command,
3280 remote_hostio_parse_result>: Constify parameter.
3281 (remote_hostio_parse_result): Likewise.
3282 (remote_target::remote_hostio_send_command): Adjust.
3283 (remote_target::remote_hostio_pread_vFile): Adjust.
3284 (remote_target::fileio_readlink): Adjust.
3285 (remote_target::fileio_fstat): Adjust.
3286
b5c8f22d
SM
32872021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3288
3289 * remote.c (remote_target::start_remote): Move wait_status to
3290 narrower scope.
3291
e3b2741b
SM
32922021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3293
3294 * remote.c (class remote_target):
3295 <add_current_inferior_and_thread>: Constify parameter.
3296 (stop_reply_extract_thread): Likewise.
3297 (remote_target::get_current_thread): Likewise.
3298 (remote_target::add_current_inferior_and_thread): Likewise.
3299
cecb1912
SM
33002021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3301
3302 * remote.c (class remote_target)
3303 <remote_unpack_thread_info_response,
3304 parse_threadlist_response>: Constify parameter and/or return
3305 value and or local variable.
3306 (stub_unpack_int): Likewise.
3307 (unpack_nibble): Likewise.
3308 (unpack_byte): Likewise.
3309 (unpack_int): Likewise.
3310 (unpack_string): Likewise.
3311 (unpack_threadid): Likewise.
3312 (remote_target::remote_unpack_thread_info_response): Likewise.
3313 (remote_target::parse_threadlist_response): Likewise.
3314
5a11fff0
AB
33152021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3316
3317 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3318
17e89137
LS
33192021-01-14 Lancelot Six <lsix@lancelotsix.com>
3320
3321 * MAINTAINERS (Write After Approval): Add myself.
3322
58eadc4b
BE
33232021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3324
3325 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3326 because is_trivially_default_constructible was first implemented with
3327 gcc-5.
3328
5fae2a2c
TV
33292021-01-14 Tom de Vries <tdevries@suse.de>
3330
3331 PR breakpoints/27151
3332 * objfiles.h (in_plt_section): Handle .plt.sec.
3333
8f66807b
AB
33342021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3335
3336 PR gdb/26819
3337 * remote.c
3338 (remote_target::select_thread_for_ambiguous_stop_reply): New
3339 member function.
3340 (remote_target::process_stop_reply): Call
3341 select_thread_for_ambiguous_stop_reply.
3342
bd497355
SM
33432021-01-13 Simon Marchi <simon.marchi@efficios.com>
3344
3345 * record-btrace.c (class record_btrace_target): Remove.
3346 (record_btrace_target::commit_resume): Remove.
3347 * record-full.c (class record_full_target): Remove.
3348 (record_full_target::commit_resume): Remove.
3349
c9d22089
SM
33502021-01-13 Simon Marchi <simon.marchi@efficios.com>
3351
3352 * remote.c (enum class resume_state): New.
3353 (struct resumed_pending_vcont_info): New.
3354 (struct remote_thread_info) <resume_state, set_not_resumed,
3355 set_resumed_pending_vcont, resumed_pending_vcont_info,
3356 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3357 New.
3358 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3359 (remote_target::remote_add_thread): Adjust.
3360 (remote_target::process_initial_stop_replies): Adjust.
3361 (remote_target::resume): Adjust.
3362 (remote_target::commit_resume): Rely on state in
3363 remote_thread_info and not on tp->executing.
3364 (remote_target::process_stop_reply): Adjust.
3365
d8d1feb4
SM
33662021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3367
3368 * arc-tdep.h (arc_debug_printf): New.
3369 * arc-tdep.c: Use arc_debug_printf.
3370 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3371 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3372 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3373
fb0f5031
SM
33742021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3375
3376 * arc-tdep.h (arc_debug): Change type to bool.
3377 * arc-tdep.c (arc_debug): Change type to bool.
3378 (arc_analyze_prologue): Adjust.
3379 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3380 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3381
5bf7e91b
SM
33822021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3383
3384 * auto-load.c (auto_load_objfile_script_1): Use bool.
3385 (execute_script_contents): Use bool.
3386
db972fce
SM
33872021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3388
3389 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3390 comment here.
3391 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3392 comment to header.
3393 * extension-priv.h (struct extension_language_script_ops)
3394 <auto_load_enabled>: Return bool.
3395 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3396 comment here.
3397 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3398 comment to header.
3399 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3400 move comment here.
3401 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3402 move comment to header.
3403 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3404 move comment here.
3405 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3406 move comment to header.
3407
5e12f48f
SM
34082021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3409
3410 * auto-load.h (file_is_auto_load_safe): Change return type to
3411 bool, move comment here.
3412 * auto-load.c (file_is_auto_load_safe): Change return type and
3413 advice_printed to bool. Move comment to header.
3414
54ca9002
SM
34152021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3416
3417 * jit.c (jit_debug_printf): New, use throughout file.
3418
24a7f1b5
SM
34192021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3420
3421 * infrun.c (normal_stop): Fix indentation.
3422
fe7a351a
SM
34232021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3424
3425 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3426 declarations to ...
3427 * symfile.h: ... here.
3428 * symfile.c: Update doc.
3429
16e9019e
SM
34302021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3431
3432 * target.h (baud_rate, serial_parity): Move declarations...
3433 * serial.h: ... here.
3434 * main.c: Include serial.h.
3435 * serial.c (baud_rate, serial_parity): Update doc.
3436
b2f2ae0d
SM
34372021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3438
3439 * top.c (pre_init_ui_hook): Remove.
3440
5291fe3c
SP
34412021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3442
3443 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3444 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3445 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3446 * features/aarch64-fpu.xml: Add bfloat16 type.
3447
ce38f5ed
AB
34482021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3449
3450 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3451
7c654b71
AB
34522021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3453
3454 * f-exp.y (dot_ops): Rename to...
3455 (fortran_operators): ...this. Add a header comment. Add symbol
3456 based operators.
3457 (yylex): Update to use fortran_operators not dot_ops. Remove
3458 special handling for '**', this is now included in
3459 fortran_operators.
3460
c6185dce
SM
34612021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3462
3463 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3464 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3465 * aarch64-tdep.c: Use aarch64_debug_printf.
3466
eef401dc
SM
34672021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3468
3469 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3470 file.
3471
062eaacb
SM
34722021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3473
3474 * jit.c (jit_debug): Change type to bool.
3475 (_initialize_jit): Adjust.
3476
54585eee
TT
34772021-01-09 Tom Tromey <tom@tromey.com>
3478
3479 PR compile/23672
3480 * compile/compile.c (compile_to_object): Avoid crash when
3481 osabi_triplet_regexp returns NULL.
3482
bc167b6b
TT
34832021-01-09 Tom Tromey <tom@tromey.com>
3484
3485 * tracepoint.h (class collection_list) <append_exp>: Take a
3486 std::string.
3487 * tracepoint.c (collection_list::append_exp): Take a std::string.
3488 (encode_actions_1): Update.
3489
8fc48b79
TT
34902021-01-08 Tom Tromey <tromey@adacore.com>
3491
3492 * parse.c (parse_expression): Add void_context_p parameter. Use
3493 parse_exp_in_context.
3494 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3495 parse_expression.
3496 (print_command, call_command): Update.
3497 * expression.h (parse_expression): Add void_context_p parameter.
3498
3c8c6de2
AB
34992021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3500
3501 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3502 for internalvar components that have a dynamic location.
3503
1940319c
TV
35042021-01-08 Tom de Vries <tdevries@suse.de>
3505
3506 PR gdb/26881
3507 * breakpoint.c (create_exception_master_breakpoint_probe)
3508 (create_exception_master_breakpoint_hook): Factor out
3509 of ...
3510 (create_exception_master_breakpoint): ... here. Only try to install
3511 the master exception breakpoint in objfile.debug using the
3512 _Unwind_DebugHook method, if the install using probes in objfile
3513 failed.
3514
e3436813
AB
35152021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3516
3517 * f-lang.c (fortran_value_subarray): Call value_from_component.
3518
e904f56d
MF
35192021-01-07 Mike Frysinger <vapier@gentoo.org>
3520
3521 * remote-sim.c: Include memory-map.h.
3522 (gdbsim_target): Define memory_map override.
3523 (gdbsim_target::memory_map): Define.
3524
959d6a67
TT
35252021-01-07 Tom Tromey <tromey@adacore.com>
3526
3527 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3528
d4813f10
TT
35292021-01-07 Tom Tromey <tromey@adacore.com>
3530
3531 * ada-lang.c (add_component_interval): Start loop using vector's
3532 updated size.
3533
b49180ac
TT
35342021-01-06 Tom Tromey <tromey@adacore.com>
3535
3536 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3537 Do not cast result.
3538 * valarith.c (fixed_point_binop): Handle multiplication
3539 and division specially.
3540 * valops.c (value_to_gdb_mpq): New function.
3541 (value_cast_to_fixed_point): Use it.
3542
55195361
HD
35432021-01-05 Hannes Domani <ssbssa@yahoo.de>
3544
3545 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3546 Call wnoutrefresh instead of tui_win_info::refresh_window.
3547
1b6d4bb2
HD
35482021-01-05 Hannes Domani <ssbssa@yahoo.de>
3549
3550 * tui/tui-source.c (tui_source_window::show_line_number):
3551 Redraw second space after line number.
3552
b5ff370e
HD
35532021-01-05 Hannes Domani <ssbssa@yahoo.de>
3554
3555 PR tui/26927
3556 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3557 Fix source pad size in prefresh.
3558 (tui_source_window_base::show_source_content): Grow source pad
3559 if necessary.
3560
c68ea49f
MF
35612021-01-04 Mike Frysinger <vapier@gentoo.org>
3562
3563 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3564 (bfin_frame_align): Use align_down.
3565
e4ad960a
TV
35662021-01-04 Tom de Vries <tdevries@suse.de>
3567
3568 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3569 terminators that do not terminate anything.
3570
3ec3145c
SM
35712021-01-04 Simon Marchi <simon.marchi@efficios.com>
3572
3573 * debug.c (debug_print_depth): New.
3574 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3575 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3576 * infrun.c (start_step_over): Use
3577 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3578 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3579 INFRUN_SCOPED_DEBUG_START_END.
3580 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3581
e71daf80
SM
35822021-01-04 Simon Marchi <simon.marchi@efficios.com>
3583
3584 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3585
335709bc
SM
35862021-01-04 Simon Marchi <simon.marchi@efficios.com>
3587
3588 * utils.c (vfprintf_unfiltered): Print timestamp only when
3589 previous debug output ended with a newline.
3590
098caef4
LM
35912021-01-04 Luis Machado <luis.machado@linaro.org>
3592
3593 Update all users of trad_frame_saved_reg to use the new member
3594 functions.
3595
3596 Remote all struct keywords from declarations of trad_frame_saved_reg
3597 types, except on forward declarations.
3598
3599 * aarch64-tdep.c: Update.
3600 * alpha-mdebug-tdep.c: Update.
3601 * alpha-tdep.c: Update.
3602 * arc-tdep.c: Update.
3603 * arm-tdep.c: Update.
3604 * avr-tdep.c: Update.
3605 * cris-tdep.c: Update.
3606 * csky-tdep.c: Update.
3607 * frv-tdep.c: Update.
3608 * hppa-linux-tdep.c: Update.
3609 * hppa-tdep.c: Update.
3610 * hppa-tdep.h: Update.
3611 * lm32-tdep.c: Update.
3612 * m32r-linux-tdep.c: Update.
3613 * m32r-tdep.c: Update.
3614 * m68hc11-tdep.c: Update.
3615 * mips-tdep.c: Update.
3616 * moxie-tdep.c: Update.
3617 * riscv-tdep.c: Update.
3618 * rs6000-tdep.c: Update.
3619 * s390-linux-tdep.c: Update.
3620 * s390-tdep.c: Update.
3621 * score-tdep.c: Update.
3622 * sparc-netbsd-tdep.c: Update.
3623 * sparc-sol2-tdep.c: Update.
3624 * sparc64-fbsd-tdep.c: Update.
3625 * sparc64-netbsd-tdep.c: Update.
3626 * sparc64-obsd-tdep.c: Update.
3627 * sparc64-sol2-tdep.c: Update.
3628 * tilegx-tdep.c: Update.
3629 * v850-tdep.c: Update.
3630 * vax-tdep.c: Update.
3631
3632 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3633 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3634
3635 * trad-frame.c: Update.
3636 Remove TF_REG_* enum.
3637 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3638 a trivially-constructible struct.
3639 (trad_frame_reset_saved_regs): Adjust to use member function.
3640 (trad_frame_value_p): Likewise.
3641 (trad_frame_addr_p): Likewise.
3642 (trad_frame_realreg_p): Likewise.
3643 (trad_frame_value_bytes_p): Likewise.
3644 (trad_frame_set_value): Likewise.
3645 (trad_frame_set_realreg): Likewise.
3646 (trad_frame_set_addr): Likewise.
3647 (trad_frame_set_unknown): Likewise.
3648 (trad_frame_set_value_bytes): Likewise.
3649 (trad_frame_get_prev_register): Likewise.
3650 * trad-frame.h: Update.
3651 (trad_frame_saved_reg_kind): New enum.
3652 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3653 <m_kind, m_reg>: New member fields.
3654 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3655 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3656 <is_addr, is_unknown, is_value_bytes>: New member functions.
3657
9898e882
SM
36582021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3659
3660 * target-float.c: Fix typos.
3661
b66b4e65
HD
36622021-01-02 Hannes Domani <ssbssa@yahoo.de>
3663
3664 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3665
b5b5650a
JB
36662021-01-01 Joel Brobecker <brobecker@adacore.com>
3667
3668 * gdbarch.sh: Update copyright year range.
3669
3666a048
JB
36702021-01-01 Joel Brobecker <brobecker@adacore.com>
3671
3672 Update copyright year range in copyright header of all GDB files.
3673
ff7e39b6
JB
36742021-01-01 Joel Brobecker <brobecker@adacore.com>
3675
3676 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3677 to the list of directories to update.
3678
2b47c078
JB
36792021-01-01 Joel Brobecker <brobecker@adacore.com>
3680
3681 * top.c (print_gdb_version): Update copyright year.
3682
476923f1 36832021-01-01 Joel Brobecker <brobecker@adacore.com>
c8f02daa 3684
476923f1 3685 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 3686
476923f1 3687For older changes see ChangeLog-2020.
c906108c
SS
3688\f
3689Local Variables:
3690mode: change-log
3691left-margin: 8
3692fill-column: 74
3693version-control: never
57da7796 3694coding: utf-8
c906108c 3695End:
This page took 2.806589 seconds and 4 git commands to generate.