]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
gdb/python: fix FrameDecorator regression on Python 2
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
4 well as PyLong_Check for Python 2.
5
6 2021-03-15 Tom Tromey <tromey@adacore.com>
7
8 PR build/27579:
9 * rust-exp.y (maker_map): Use gdb::hash_enum.
10 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
11
12 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
13
14 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
15 end of debug print.
16
17 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
18
19 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
20 parameter, adjust caller.
21
22 2021-03-15 Tom Tromey <tromey@adacore.com>
23
24 * ada-exp.y (simple_exp): Always push a result for unary '+'.
25
26 2021-03-15 Tom Tromey <tromey@adacore.com>
27
28 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
29 ada_ensure_varsize_limit.
30
31 2021-03-15 Tom Tromey <tromey@adacore.com>
32
33 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
34 fixed-point.
35 * ada-exp.y (maybe_overload): New function.
36 (ada_wrap_overload): New function.
37 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
38 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
39 (or_else_exp, xor_exp, primary): Update.
40
41 2021-03-15 Tom Tromey <tromey@adacore.com>
42
43 PR ada/27545:
44 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
45 call for tagged type.
46
47 2021-03-15 Tom Tromey <tromey@adacore.com>
48
49 * ada-exp.y (exp1): Handle resolution of the right hand side of an
50 assignment.
51
52 2021-03-15 Tom Tromey <tromey@adacore.com>
53
54 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
55 container.
56 (ada_assign_operation::evaluate): Update.
57 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
58 Change return type.
59
60 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
61
62 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
63
64 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
65
66 * python/python.c (gdbpy_source_objfile_script): Use
67 make_scoped_restore to restore gdbpy_current_objfile.
68 (gdbpy_execute_objfile_script): Likewise.
69
70 2021-03-14 Tom Tromey <tom@tromey.com>
71
72 * dwarf2/read.c (read_attribute_value): Use cu_header
73 consistently.
74
75 2021-03-14 Tom Tromey <tom@tromey.com>
76
77 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
78 (peek_die_abbrev): Use reader.abfd.
79
80 2021-03-14 Tom Tromey <tom@tromey.com>
81
82 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
83 m_header_read_in.
84
85 2021-03-13 Tom Tromey <tom@tromey.com>
86
87 * dwarf2/read.c (struct partial_die_info): Update.
88 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
89 (load_partial_dies, partial_die_info::partial_die_info): Update.
90 * dwarf2/abbrev.h (lookup_abbrev): Constify.
91
92 2021-03-13 Tom Tromey <tom@tromey.com>
93
94 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
95
96 2021-03-12 Christian Biesinger <cbiesinger@google.com>
97
98 PR threads/27239
99 * cp-support.c: Use scoped_segv_handler_restore.
100 * event-top.c (thread_local_segv_handler): Made static.
101 (scoped_segv_handler_restore::scoped_segv_handler_restore):
102 New function.
103 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
104 function.
105 * event-top.h (class scoped_segv_handler_restore): New class.
106 (thread_local_segv_handler): Removed.
107
108 2021-03-10 Tom Tromey <tromey@adacore.com>
109
110 * parser-defs.h (parser_state): Change completion to bool.
111 <parse_completion>: Likewise.
112 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
113 (ada_resolve_variable, ada_resolve_function): Update.
114 * ada-lang.c (ada_find_operator_symbol): Change
115 parse_completion to bool.
116 (ada_resolve_funcall, ada_resolve_variable)
117 (ada_resolve_function): Likewise.
118
119 2021-03-09 Tom Tromey <tromey@adacore.com>
120
121 * eval.c (operation::evaluate_funcall): Use function formal
122 parameter types when evaluating.
123
124 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
125
126 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
127 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
128 and owner to m_owner.
129
130 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
131
132 * f-exp.h (eval_op_f_loc): Declare.
133 (expr::fortran_loc_operation): New typedef.
134 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
135 UNOP_INTRINSIC.
136 (f77_keywords): Add LOC keyword.
137 * f-lang.c (eval_op_f_loc): New function.
138 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
139
140 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
141
142 * f-exp.h (eval_op_f_array_shape): Declare.
143 (fortran_array_shape_operation): New type.
144 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
145 UNOP_INTRINSIC.
146 (f77_keywords): Add "shape" keyword.
147 * f-lang.c (fortran_array_shape): New function.
148 (eval_op_f_array_shape): New function.
149 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
150
151 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
152
153 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
154 of this function.
155 (expr::fortran_array_size_1arg): New type.
156 (expr::fortran_array_size_2arg): Likewise.
157 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
158 UNOP_OR_BINOP_INTRINSIC.
159 (f77_keywords): Add "size" keyword.
160 * f-lang.c (fortran_array_size): New function.
161 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
162 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
163
164 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
165
166 * f-exp.h (eval_op_f_rank): Declare.
167 (expr::fortran_rank_operation): New typedef.
168 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
169 UNOP_INTRINSIC.
170 (f77_keywords): Add "rank" keyword.
171 * f-lang.c (eval_op_f_rank): New function.
172 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
173
174 2021-03-08 Tom Tromey <tom@tromey.com>
175
176 * printcmd.c (set_command): Remove null check.
177 * value.c (init_if_undefined_command): Remove null check.
178
179 2021-03-08 Tom Tromey <tom@tromey.com>
180
181 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
182 Update.
183 * p-exp.y (variable): Update.
184 * go-exp.y (variable): Update.
185 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
186 Remove overload for objfile.
187 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
188 parameter.
189 (check_objfile): Likewise.
190 (dump_for_expression): Likewise. Remove overload for objfile.
191 (class var_msym_value_operation): Use bound_minimal_symbol.
192 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
193 parameter.
194 (var_msym_value_operation::evaluate_for_address)
195 (var_msym_value_operation::evaluate_for_sizeof)
196 (var_msym_value_operation::evaluate_for_cast): Update.
197 * d-exp.y (PrimaryExpression): Update.
198 * c-exp.y (variable): Update.
199 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
200 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
201 Update.
202 * ada-exp.y (write_var_or_type): Update.
203
204 2021-03-08 Tom Tromey <tom@tromey.com>
205
206 * parser-defs.h (exp_uses_objfile): Return bool.
207 * parse.c (exp_uses_objfile): Return bool.
208
209 2021-03-08 Tom Tromey <tom@tromey.com>
210
211 * value.h (eval_skip_value): Don't declare.
212 * opencl-lang.c (eval_opencl_assign): Update.
213 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
214 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
215 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
216 * expression.h (enum noside) <EVAL_SKIP>: Remove.
217 * expop.h (typeof_operation::evaluate)
218 (decltype_operation::evaluate, unop_addr_operation::evaluate)
219 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
220 (cxx_cast_operation::evaluate): Update.
221 * eval.c (eval_skip_value): Remove.
222 (eval_op_scope, eval_op_var_entry_value)
223 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
224 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
225 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
226 (eval_op_binary, eval_op_subscript, eval_op_equal)
227 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
228 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
229 (eval_op_complement, eval_op_lognot, eval_op_ind)
230 (eval_op_memval, eval_op_preinc, eval_op_predec)
231 (eval_op_postinc, eval_op_postdec, eval_op_type)
232 (eval_binop_assign_modify, eval_op_objc_msgcall)
233 (eval_multi_subscript, logical_and_operation::evaluate)
234 (logical_or_operation::evaluate, array_operation::evaluate)
235 (operation::evaluate_for_cast)
236 (var_msym_value_operation::evaluate_for_cast)
237 (var_value_operation::evaluate_for_cast): Update.
238 * c-lang.c (c_string_operation::evaluate): Update.
239 * c-exp.h (objc_nsstring_operation::evaluate)
240 (objc_selector_operation::evaluate): Update.
241 * ada-lang.c (ada_assign_operation::evaluate)
242 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
243 (ada_atr_size): Update.
244
245 2021-03-08 Tom Tromey <tom@tromey.com>
246
247 * eval.c: Merge "namespace" scopes.
248
249 2021-03-08 Tom Tromey <tom@tromey.com>
250
251 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
252 <release>: Inline.
253 * parse.c (expr_builder::expr_builder, expr_builder::release):
254 Remove.
255
256 2021-03-08 Tom Tromey <tom@tromey.com>
257
258 * parse.c (expression::expression, expression::~expression):
259 Remove.
260 * expression.h (struct expression): Inline constructor. Remove
261 destructor.
262
263 2021-03-08 Tom Tromey <tom@tromey.com>
264
265 * std-operator.def (BINOP_END): Remove.
266 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
267 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
268 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
269 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
270 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
271 BINOP_END.
272
273 2021-03-08 Tom Tromey <tom@tromey.com>
274
275 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
276
277 2021-03-08 Tom Tromey <tom@tromey.com>
278
279 * std-operator.def (OP_EXTENDED0): Remove.
280
281 2021-03-08 Tom Tromey <tom@tromey.com>
282
283 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
284 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
285 Remove.
286
287 2021-03-08 Tom Tromey <tom@tromey.com>
288
289 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
290 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
291
292 2021-03-08 Tom Tromey <tom@tromey.com>
293
294 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
295 * ada-lang.c (ada_binop_minmax): Update.
296 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
297 Use BINOP_MIN and BINOP_MAX.
298
299 2021-03-08 Tom Tromey <tom@tromey.com>
300
301 * value.h (evaluate_subexp_with_coercion): Don't declare.
302 * parse.c (exp_descriptor_standard): Remove.
303 (expr_builder::expr_builder, expr_builder::release): Update.
304 (expression::expression): Remove size_t parameter.
305 (expression::~expression): Simplify.
306 (expression::resize): Remove.
307 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
308 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
309 (write_exp_elt_longcst, write_exp_elt_floatcst)
310 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
311 (write_exp_string_vector, write_exp_bitstring): Remove.
312 * p-lang.h (class pascal_language) <opcode_print_table,
313 op_print_tab>: Remove.
314 * p-lang.c (pascal_language::op_print_tab): Remove.
315 * opencl-lang.c (class opencl_language) <opcode_print_table>:
316 Remove.
317 * objc-lang.c (objc_op_print_tab): Remove.
318 (class objc_language) <opcode_print_table>: Remove.
319 * m2-lang.h (class m2_language) <opcode_print_table,
320 op_print_tab>: Remove.
321 * m2-lang.c (m2_language::op_print_tab): Remove.
322 * language.h (struct language_defn) <post_parser, expression_ops,
323 opcode_print_table>: Remove.
324 * language.c (language_defn::expression_ops)
325 (auto_or_unknown_language::opcode_print_table): Remove.
326 * go-lang.h (class go_language) <opcode_print_table,
327 op_print_tab>: Remove.
328 * go-lang.c (go_language::op_print_tab): Remove.
329 * f-lang.h (class f_language) <opcode_print_table>: Remove
330 <op_print_tab>: Remove.
331 * f-lang.c (f_language::op_print_tab): Remove.
332 * expression.h (union exp_element): Remove.
333 (struct expression): Remove size_t parameter from constructor.
334 <resize>: Remove.
335 <first_opcode>: Update.
336 <nelts, elts>: Remove.
337 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
338 (evaluate_subexp_standard, print_expression, op_string)
339 (dump_raw_expression): Don't declare.
340 * expprint.c (print_expression, print_subexp)
341 (print_subexp_funcall, print_subexp_standard, op_string)
342 (dump_raw_expression, dump_subexp, dump_subexp_body)
343 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
344 (dump_prefix_expression): Update.
345 * eval.c (evaluate_subexp): Remove.
346 (evaluate_expression, evaluate_type): Update.
347 (evaluate_subexpression_type): Remove.
348 (fetch_subexp_value): Remove "pc" parameter. Update.
349 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
350 (evaluate_subexp_standard, evaluate_subexp_for_address)
351 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
352 (evaluate_subexp_for_cast): Remove.
353 (parse_and_eval_type): Update.
354 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
355 * d-lang.c (d_op_print_tab): Remove.
356 (class d_language) <opcode_print_table>: Remove.
357 * c-lang.h (c_op_print_tab): Don't declare.
358 * c-lang.c (c_op_print_tab): Remove.
359 (class c_language, class cplus_language, class asm_language, class
360 minimal_language) <opcode_print_table>: Remove.
361 * breakpoint.c (update_watchpoint, watchpoint_check)
362 (watchpoint_exp_is_const, watch_command_1): Update.
363 * ax-gdb.h (union exp_element): Don't declare.
364 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
365 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
366 (gen_expr_binop_rest): Remove.
367 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
368 * ada-lang.c (ada_op_print_tab): Remove.
369 (class ada_language) <post_parser, opcode_print_table>: Remove.
370
371 2021-03-08 Tom Tromey <tom@tromey.com>
372
373 * go-lang.c (go_language::expression_ops): Don't declare.
374 * go-lang.h (class go_language) <expression_ops>: Remove.
375 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
376 Remove.
377 (class opencl_language) <expression_ops>: Remove.
378 * d-lang.c (class d_language) <expression_ops>: Remove.
379 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
380 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
381 (class c_language, class cplus_language, class asm_language)
382 (class minimal_language) <expression_ops>: Remove.
383
384 2021-03-08 Tom Tromey <tom@tromey.com>
385
386 * ada-lang.c (resolve_subexp, replace_operator_with_call)
387 (evaluate_subexp_type, assign_aggregate)
388 (aggregate_assign_positional, aggregate_assign_from_choices)
389 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
390 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
391 (ada_operator_check, ada_forward_operator_length)
392 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
393 Remove.
394 (post_parser): Update.
395 (class ada_language) <expresssion_ops>: Remove.
396
397 2021-03-08 Tom Tromey <tom@tromey.com>
398
399 * m2-lang.h (class m2_language) <expresssion_ops,
400 exp_descriptor_modula2>: Remove.
401 * m2-lang.c (evaluate_subexp_modula2)
402 (m2_language::exp_descriptor_modula2): Remove.
403
404 2021-03-08 Tom Tromey <tom@tromey.com>
405
406 * f-lang.h (class f_language) <expresssion_ops>: Remove.
407 <exp_descriptor_tab>: Remove.
408 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
409 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
410 (print_subexp_f, dump_subexp_body_f, operator_check_f)
411 (f_language::exp_descriptor_tab, fortran_prepare_argument):
412 Remove.
413
414 2021-03-08 Tom Tromey <tom@tromey.com>
415
416 * rust-lang.h (class rust_language) <expression_ops,
417 exp_descriptor_tab>: Remove.
418 * rust-lang.c (rust_evaluate_funcall): Remove.
419 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
420 EVAL_SKIP.
421 (rust_evaluate_subexp): Remove.
422 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
423 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
424 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
425
426 2021-03-08 Tom Tromey <tom@tromey.com>
427
428 * ada-exp.y: Create operations.
429 (empty_stoken): Remove.
430 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
431 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
432 (components): New global.
433 (push_component, choice_component, pop_component, pop_components):
434 New functions.
435 (associations): New global
436 (push_association, pop_association, pop_associations): New
437 functions.
438 (ada_parse): Update.
439 (write_var_from_sym, write_int): Create operations.
440 (write_exp_op_with_string): Remove.
441 (write_object_renaming, write_selectors, write_ambiguous_var)
442 (write_var_or_type, write_name_assoc): Create operations.
443 * ada-lang.h (ada_index_type): Declare.
444 * ada-lang.c (ada_index_type): No longer static.
445
446 2021-03-08 Tom Tromey <tom@tromey.com>
447
448 * f-exp.y: Create operations.
449 (f_language::parser): Update.
450
451 2021-03-08 Tom Tromey <tom@tromey.com>
452
453 * m2-exp.y: Create operations.
454 (m2_language::parser): Update.
455
456 2021-03-08 Tom Tromey <tom@tromey.com>
457
458 * p-exp.y: Create operations.
459 (pascal_language::parser): Update.
460
461 2021-03-08 Tom Tromey <tom@tromey.com>
462
463 * d-exp.y: Create operations.
464 (d_parse): Update.
465
466 2021-03-08 Tom Tromey <tom@tromey.com>
467
468 * go-exp.y: Create operations.
469 (go_language::parser): Update.
470
471 2021-03-08 Tom Tromey <tom@tromey.com>
472
473 * objc-lang.c (end_msglist): Create operations.
474 * c-exp.y: Change parser to create operations.
475 (write_destructor_name): Remove.
476 (c_parse): Update.
477
478 2021-03-08 Tom Tromey <tom@tromey.com>
479
480 * rust-exp.y: Create operations.
481 (rust_parser::convert_params_to_expression): Change return type.
482 (binop_maker_ftype): New typedef.
483 (maker_map): New global.
484 (rust_parser::convert_ast_to_expression): Change return type.
485 (rust_language::parser): Update.
486 (_initialize_rust_exp): Initialize maker_map.
487
488 2021-03-08 Tom Tromey <tom@tromey.com>
489
490 * stap-probe.c (binop_maker_ftype): New typedef.
491 (stap_maker_map): New global.
492 (stap_make_binop): New function.
493 (stap_parse_register_operand): Return operation_up.
494 (stap_parse_single_operand, stap_parse_argument_conditionally)
495 (stap_parse_argument_1): Likewise.
496 (stap_parse_argument): Create operations.
497 (stap_probe::parse_arguments): Update.
498 (_initialize_stap_probe): Initialize stap_maker_map.
499 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
500 type.
501 * i386-tdep.h (i386_stap_parse_special_token): Change return
502 type.
503 * i386-tdep.c (i386_stap_parse_special_token_triplet)
504 (i386_stap_parse_special_token_three_arg_disp)
505 (i386_stap_parse_special_token): Change return type.
506 * gdbarch.sh (stap_parse_special_token): Change return type.
507 * gdbarch.c: Rebuild.
508 * gdbarch.h: Rebuild.
509 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
510 type.
511 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
512 return type.
513
514 2021-03-08 Tom Tromey <tom@tromey.com>
515
516 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
517 * gdbarch.h: Rebuild.
518 * gdbarch.c: Rebuild.
519 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
520 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
521 return type.
522 (amd64_dtrace_parse_probe_argument): Update.
523
524 2021-03-08 Tom Tromey <tom@tromey.com>
525
526 * parser-defs.h (struct parser_state) <push, push_new,
527 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
528 wrap2>: New methods.
529 <m_operations>: New member.
530 * parse.c (parser_state::push_c_string)
531 (parser_state::push_symbol, parser_state::push_dollar): New
532 methods.
533
534 2021-03-08 Tom Tromey <tom@tromey.com>
535
536 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
537 New member.
538 (struct parser_state) <mark_struct_expression>: New method.
539 * parse.c (parser_state::mark_struct_expression): Update assert.
540 (parser_state::mark_struct_expression): New method.
541 (parser_state::mark_completion_tag): Update assert.
542 (parse_expression_for_completion): Handle expout_last_op.
543
544 2021-03-08 Tom Tromey <tom@tromey.com>
545
546 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
547 now in superclass.
548 * value.h (fetch_subexp_value): Add "op" parameter.
549 * value.c (init_if_undefined_command): Update.
550 * tracepoint.c (validate_actionline, encode_actions_1): Update.
551 * stap-probe.c (stap_probe::compile_to_ax): Update.
552 * printcmd.c (set_command): Update.
553 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
554 Update.
555 * parser-defs.h (struct expr_builder) <set_operation>: New
556 method.
557 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
558 * expression.h (struct expression) <first_opcode>: Update.
559 <op>: New member.
560 * expprint.c (dump_raw_expression, dump_prefix_expression):
561 Update.
562 * expop.h (class var_value_operation) <get_symbol>: New method.
563 (class register_operation) <get_name>: New method.
564 (class equal_operation): No longer a typedef, now a subclass.
565 (class unop_memval_operation) <get_type>: New method.
566 (class assign_operation) <get_lhs>: New method.
567 (class unop_cast_operation) <get_type>: New method.
568 * eval.c (evaluate_expression, evaluate_type)
569 (evaluate_subexpression_type): Update.
570 (fetch_subexp_value): Add "op" parameter.
571 (parse_and_eval_type): Update.
572 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
573 * breakpoint.c (update_watchpoint, watchpoint_check)
574 (watchpoint_exp_is_const, watch_command_1): Update.
575 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
576 Update.
577
578 2021-03-08 Tom Tromey <tom@tromey.com>
579
580 * ada-lang.c (ada_value_binop): Do not use op_string.
581
582 2021-03-08 Tom Tromey <tom@tromey.com>
583
584 * expprint.c (dump_for_expression): New overload.
585 * expop.h (check_objfile, dump_for_expression): Declare new
586 overloads.
587 * ada-lang.c (check_objfile): New overload.
588 (assign_component, ada_aggregate_component::uses_objfile)
589 (ada_aggregate_component::dump, ada_aggregate_component::assign)
590 (ada_aggregate_component::assign_aggregate)
591 (ada_positional_component::uses_objfile)
592 (ada_positional_component::dump, ada_positional_component::assign)
593 (ada_discrete_range_association::uses_objfile)
594 (ada_discrete_range_association::dump)
595 (ada_discrete_range_association::assign)
596 (ada_name_association::uses_objfile, ada_name_association::dump)
597 (ada_name_association::assign)
598 (ada_choices_component::uses_objfile, ada_choices_component::dump)
599 (ada_choices_component::assign)
600 (ada_others_component::uses_objfile, ada_others_component::dump)
601 (ada_others_component::assign, ada_assign_operation::evaluate):
602 New methods.
603 * ada-exp.h (ada_string_operation) <get_name>: New method.
604 (class ada_assign_operation): New.
605 (class ada_component): New.
606 (ada_component_up): New typedef.
607 (class ada_aggregate_operation, class ada_aggregate_component)
608 (class ada_positional_component, class ada_others_component)
609 (class ada_association): New.
610 (ada_association_up): New typedef.
611 (class ada_choices_component)
612 (class ada_discrete_range_association)
613 (class ada_name_association): New.
614
615 2021-03-08 Tom Tromey <tom@tromey.com>
616
617 * ada-lang.c (ada_var_value_operation::resolve)
618 (ada_funcall_operation::resolve)
619 (ada_ternop_slice_operation::resolve): New methods.
620 * ada-exp.h (struct ada_resolvable): New.
621 (class ada_var_value_operation): Derive from ada_resolvable.
622 <get_block, resolve>: New methods.
623 (class ada_funcall_operation): Derive from ada_resolvable.
624 <resolve>: New method.
625 (class ada_ternop_slice_operation): Derive from ada_resolvable.
626 <resolve>: New method.
627
628 2021-03-08 Tom Tromey <tom@tromey.com>
629
630 * ada-lang.c (ada_funcall_operation::evaluate): New method.
631 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
632 method.
633 (class ada_funcall_operation): New.
634
635 2021-03-08 Tom Tromey <tom@tromey.com>
636
637 * ada-lang.c (ada_structop_operation::evaluate): New method.
638 * ada-exp.h (class ada_structop_operation): New.
639
640 2021-03-08 Tom Tromey <tom@tromey.com>
641
642 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
643 * ada-exp.h (class ada_unop_ind_operation): New.
644
645 2021-03-08 Tom Tromey <tom@tromey.com>
646
647 * ada-lang.c (ada_binop_exp): No longer static.
648 * ada-exp.h (ada_binop_exp_operation): New typedef.
649
650 2021-03-08 Tom Tromey <tom@tromey.com>
651
652 * ada-lang.c (ada_val_atr): No longer static.
653 (ada_atr_val_operation::evaluate): New method.
654 * ada-exp.h (class ada_atr_val_operation): New.
655
656 2021-03-08 Tom Tromey <tom@tromey.com>
657
658 * ada-lang.c (ada_pos_atr): No longer static.
659 * ada-exp.h (ada_pos_operation): New typedef.
660
661 2021-03-08 Tom Tromey <tom@tromey.com>
662
663 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
664 parameters.
665 (ada_evaluate_subexp): Use it.
666
667 2021-03-08 Tom Tromey <tom@tromey.com>
668
669 * ada-lang.c (ada_binop_minmax): No longer static.
670 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
671 New typedefs.
672
673 2021-03-08 Tom Tromey <tom@tromey.com>
674
675 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
676 New method.
677 * ada-exp.h (class ada_var_msym_value_operation): New.
678
679 2021-03-08 Tom Tromey <tom@tromey.com>
680
681 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
682 (ada_var_value_operation::evaluate): New methods.
683 * ada-exp.h (class ada_var_value_operation): New.
684
685 2021-03-08 Tom Tromey <tom@tromey.com>
686
687 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
688 * ada-exp.h (class ada_unop_atr_operation): New.
689
690 2021-03-08 Tom Tromey <tom@tromey.com>
691
692 * ada-lang.c (ada_binop_in_bounds): No longer static.
693 * ada-exp.h (class ada_binop_in_bounds_operation): New.
694
695 2021-03-08 Tom Tromey <tom@tromey.com>
696
697 * ada-lang.c (ada_ternop_slice): No longer static.
698 * ada-exp.h (class ada_ternop_slice_operation): New.
699
700 2021-03-08 Tom Tromey <tom@tromey.com>
701
702 * ada-exp.h (ada_bitwise_operation): New template class.
703 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
704 (ada_bitwise_xor_operation): New typedefs.
705
706 2021-03-08 Tom Tromey <tom@tromey.com>
707
708 * ada-lang.c (ada_equal_binop): No longer static.
709 * ada-exp.h (class ada_binop_equal_operation): New.
710
711 2021-03-08 Tom Tromey <tom@tromey.com>
712
713 * ada-lang.c (ada_mult_binop): No longer static.
714 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
715 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
716
717 2021-03-08 Tom Tromey <tom@tromey.com>
718
719 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
720 * ada-exp.h (class ada_binop_addsub_operation): New.
721
722 2021-03-08 Tom Tromey <tom@tromey.com>
723
724 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
725 (ada_resolve_variable): Declare.
726 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
727 (ada_resolve_variable): New functions.
728 (resolve_subexp): Update.
729
730 2021-03-08 Tom Tromey <tom@tromey.com>
731
732 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
733 method.
734 * c-exp.h (class opencl_ternop_cond_operation): New.
735
736 2021-03-08 Tom Tromey <tom@tromey.com>
737
738 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
739 method.
740 * c-exp.h (class opencl_logical_binop_operation): New.
741
742 2021-03-08 Tom Tromey <tom@tromey.com>
743
744 * opencl-lang.c (opencl_structop_operation::evaluate): New
745 method.
746 * c-exp.h (class opencl_structop_operation): New.
747
748 2021-03-08 Tom Tromey <tom@tromey.com>
749
750 * opencl-lang.c (opencl_logical_not): No longer static. Change
751 parameters.
752 (evaluate_subexp_opencl): Update.
753 * c-exp.h (opencl_notequal_operation): New typedef.
754
755 2021-03-08 Tom Tromey <tom@tromey.com>
756
757 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
758 static. Change parameters.
759 (eval_opencl_assign): No longer static. Add "op" parameter.
760 (evaluate_subexp_opencl): Update.
761 * c-exp.h (opencl_binop_operation): New template class.
762 (opencl_assign_operation, opencl_equal_operation)
763 (opencl_notequal_operation, opencl_less_operation)
764 (opencl_gtr_operation, opencl_geq_operation)
765 (opencl_leq_operation): New typedefs.
766
767 2021-03-08 Tom Tromey <tom@tromey.com>
768
769 * opencl-lang.c (opencl_value_cast): No longer static.
770 * c-exp.h (opencl_cast_type_operation): New typedef.
771
772 2021-03-08 Tom Tromey <tom@tromey.com>
773
774 * f-exp.h (eval_op_f_allocated): Declare.
775 (fortran_allocated_operation): New typedef.
776 * f-lang.c (eval_op_f_allocated): No longer static.
777
778 2021-03-08 Tom Tromey <tom@tromey.com>
779
780 * f-lang.c (eval_op_f_associated): New functions.
781 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
782 typedefs.
783
784 2021-03-08 Tom Tromey <tom@tromey.com>
785
786 * f-lang.c (fortran_bound_1arg::evaluate)
787 (fortran_bound_2arg::evaluate): New methods.
788 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
789 New.
790
791 2021-03-08 Tom Tromey <tom@tromey.com>
792
793 * expop.h (class unop_addr_operation) <get_expression>: New
794 method.
795 * f-lang.c (fortran_undetermined::value_subarray)
796 (fortran_undetermined::evaluate): New methods.
797 (fortran_prepare_argument): New overload.
798 * f-exp.h (class fortran_range_operation)
799 (class fortran_undetermined): New classes.
800
801 2021-03-08 Tom Tromey <tom@tromey.com>
802
803 * rust-lang.c (rust_structop::evaluate_funcall): New method.
804 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
805 method.
806
807 2021-03-08 Tom Tromey <tom@tromey.com>
808
809 * expression.h (class operation) <evaluate_funcall>: New methods.
810 * expop.h (class scope_operation) <evaluate_funcall>: New method.
811 (class var_value_operation) <evaluate_funcall>: New method.
812 (class structop_base_operation) <evaluate_funcall>: New method.
813 (class var_msym_value_operation) <evaluate_funcall>: New method.
814 (class structop_member_base): New class.
815 (class structop_member_operation): Derive from
816 structop_member_base.
817 (class structop_mptr_operation): Derive from
818 structop_member_base.
819 (class funcall_operation): New class.
820 * eval.c (operation::evaluate_funcall)
821 (var_value_operation::evaluate_funcall)
822 (scope_operation::evaluate_funcall)
823 (structop_member_base::evaluate_funcall)
824 (structop_base_operation::evaluate_funcall): New methods.
825
826 2021-03-08 Tom Tromey <tom@tromey.com>
827
828 * expop.h (class array_operation): New.
829 * eval.c (array_operation::evaluate_struct_tuple)
830 (array_operation::evaluate): New methods.
831
832 2021-03-08 Tom Tromey <tom@tromey.com>
833
834 * expop.h (class adl_func_operation): New.
835 * eval.c (adl_func_operation::evaluate): New method.
836
837 2021-03-08 Tom Tromey <tom@tromey.com>
838
839 * ada-lang.c (ada_unop_in_range): No longer static.
840 * ada-exp.h (class ada_unop_range_operation): New.
841
842 2021-03-08 Tom Tromey <tom@tromey.com>
843
844 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
845 No longer static.
846 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
847 (ada_atr_size_operation, ada_abs_operation): New typedefs.
848
849 2021-03-08 Tom Tromey <tom@tromey.com>
850
851 * expop.h (class logical_and_operation)
852 (class logical_or_operation): New.
853 * eval.c (logical_and_operation::evaluate)
854 (logical_or_operation::evaluate): New methods.
855 * ax-gdb.c (logical_and_operation::do_generate_ax)
856 (logical_or_operation::do_generate_ax): New methods.
857
858 2021-03-08 Tom Tromey <tom@tromey.com>
859
860 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
861 static.
862 * m2-exp.h: New file.
863
864 2021-03-08 Tom Tromey <tom@tromey.com>
865
866 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
867 * rust-exp.h (class rust_aggregate_operation): New.
868
869 2021-03-08 Tom Tromey <tom@tromey.com>
870
871 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
872 No longer static.
873 * rust-exp.h (class rust_struct_anon): New.
874 (class rust_structop): New.
875
876 2021-03-08 Tom Tromey <tom@tromey.com>
877
878 * rust-lang.c (rust_range): No longer static.
879 * rust-exp.h (class rust_range_operation): New.
880
881 2021-03-08 Tom Tromey <tom@tromey.com>
882
883 * rust-lang.c (rust_subscript): No longer static.
884 * rust-exp.h (class rust_subscript_operation): New.
885
886 2021-03-08 Tom Tromey <tom@tromey.com>
887
888 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
889 parameter.
890 (rust_evaluate_subexp): Update.
891 * rust-exp.h (class rust_unop_ind_operation): New.
892
893 2021-03-08 Tom Tromey <tom@tromey.com>
894
895 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
896 longer static. Add "opcode" parameter.
897 (rust_evaluate_subexp): Update.
898 * rust-exp.h: New file.
899
900 2021-03-08 Tom Tromey <tom@tromey.com>
901
902 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
903 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
904 (eval_op_f_kind): No longer static. Add "opcode" parameter.
905 (evaluate_subexp_f): Update.
906 * f-exp.h: New file.
907
908 2021-03-08 Tom Tromey <tom@tromey.com>
909
910 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
911 * ada-exp.h (class ada_ternop_range_operation): New.
912
913 2021-03-08 Tom Tromey <tom@tromey.com>
914
915 * ada-lang.c (ada_qual_operation::evaluate): New method.
916 * ada-exp.h (class ada_qual_operation): New.
917
918 2021-03-08 Tom Tromey <tom@tromey.com>
919
920 * ada-lang.c (ada_string_operation::evaluate): New method.
921 * ada-exp.h (class ada_string_operation): New.
922
923 2021-03-08 Tom Tromey <tom@tromey.com>
924
925 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
926 * ada-exp.h: New file.
927
928 2021-03-08 Tom Tromey <tom@tromey.com>
929
930 * expop.h (class multi_subscript_operation): New.
931 * eval.c (multi_subscript_operation::evaluate): New method.
932
933 2021-03-08 Tom Tromey <tom@tromey.com>
934
935 * eval.c (objc_msgcall_operation::evaluate): New method.
936 * c-exp.h (class objc_msgcall_operation): New.
937
938 2021-03-08 Tom Tromey <tom@tromey.com>
939
940 * expop.h (class var_value_operation): New.
941 * eval.c (var_value_operation::evaluate)
942 (var_value_operation::evaluate_for_address)
943 (var_value_operation::evaluate_with_coercion)
944 (var_value_operation::evaluate_for_sizeof)
945 (var_value_operation::evaluate_for_cast): New methods.
946 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
947
948 2021-03-08 Tom Tromey <tom@tromey.com>
949
950 * expop.h (cxx_cast_ftype): New typedef.
951 (cxx_cast_operation): New template.
952 (dynamic_cast_operation, reinterpret_cast_operation): New
953 typedefs.
954
955 2021-03-08 Tom Tromey <tom@tromey.com>
956
957 * expop.h (class unop_cast_type_operation): New.
958 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
959 method.
960
961 2021-03-08 Tom Tromey <tom@tromey.com>
962
963 * expop.h (class unop_cast_operation): New.
964 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
965
966 2021-03-08 Tom Tromey <tom@tromey.com>
967
968 * expop.h (class assign_modify_operation): New.
969 * eval.c (eval_binop_assign_modify): No longer static.
970 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
971
972 2021-03-08 Tom Tromey <tom@tromey.com>
973
974 * expop.h (class assign_operation): New.
975 * ax-gdb.c (assign_operation::do_generate_ax): New method.
976
977 2021-03-08 Tom Tromey <tom@tromey.com>
978
979 * expop.h (class type_instance_operation): New.
980 * eval.c (type_instance_operation::evaluate): New method.
981
982 2021-03-08 Tom Tromey <tom@tromey.com>
983
984 * expop.h (class op_this_operation): New.
985 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
986
987 2021-03-08 Tom Tromey <tom@tromey.com>
988
989 * expop.h (class unop_memval_operation)
990 (class unop_memval_type_operation): New.
991 * eval.c (eval_op_memval): No longer static.
992 (unop_memval_operation::evaluate_for_address)
993 (unop_memval_type_operation::evaluate_for_address)
994 (unop_memval_operation::evaluate_for_sizeof)
995 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
996 * ax-gdb.c (unop_memval_operation::do_generate_ax)
997 (unop_memval_type_operation::do_generate_ax): New methods.
998
999 2021-03-08 Tom Tromey <tom@tromey.com>
1000
1001 * expop.h (class unop_alignof_operation): New.
1002 * eval.c (eval_op_alignof): No longer static.
1003
1004 2021-03-08 Tom Tromey <tom@tromey.com>
1005
1006 * expop.h (class unop_sizeof_operation): New.
1007 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
1008
1009 2021-03-08 Tom Tromey <tom@tromey.com>
1010
1011 * expop.h (class unop_addr_operation): New.
1012 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
1013
1014 2021-03-08 Tom Tromey <tom@tromey.com>
1015
1016 * expop.h (class typeid_operation): New.
1017
1018 2021-03-08 Tom Tromey <tom@tromey.com>
1019
1020 * expop.h (class decltype_operation): New.
1021
1022 2021-03-08 Tom Tromey <tom@tromey.com>
1023
1024 * expop.h (class typeof_operation): New.
1025
1026 2021-03-08 Tom Tromey <tom@tromey.com>
1027
1028 * expop.h (class type_operation): New.
1029 * eval.c (eval_op_type): No longer static.
1030
1031 2021-03-08 Tom Tromey <tom@tromey.com>
1032
1033 * expop.h (class unop_ind_base_operation)
1034 (class unop_ind_operation): New.
1035 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
1036 (unop_ind_base_operation::evaluate_for_address)
1037 (unop_ind_base_operation::evaluate_for_sizeof): New method.
1038 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
1039
1040 2021-03-08 Tom Tromey <tom@tromey.com>
1041
1042 * expop.h (unop_incr_operation): New template.
1043 (preinc_operation, predec_operation, postinc_operation)
1044 (postdec_operation): New typedefs.
1045 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
1046 (eval_op_postdec): No longer static.
1047
1048 2021-03-08 Tom Tromey <tom@tromey.com>
1049
1050 * expop.h (unary_ftype): New typedef.
1051 (unop_operation, usual_ax_binop_operation): New templates.
1052 (unary_plus_operation, unary_neg_operation)
1053 (unary_complement_operation, unary_logical_not_operation): New
1054 typedefs.
1055 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
1056 (eval_op_lognot): No longer static.
1057 * ax-gdb.c (gen_expr_unop): New function.
1058
1059 2021-03-08 Tom Tromey <tom@tromey.com>
1060
1061 * ax-gdb.c (comma_operation::do_generate_ax): New method.
1062
1063 2021-03-08 Tom Tromey <tom@tromey.com>
1064
1065 * expop.h (class repeat_operation): New.
1066 * eval.c (eval_op_repeat): No longer static. Remove "op"
1067 parameter.
1068 (evaluate_subexp_standard): Update.
1069 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
1070
1071 2021-03-08 Tom Tromey <tom@tromey.com>
1072
1073 * expop.h (class comparison_operation): New.
1074 (equal_operation, notequal_operation, less_operation)
1075 (gtr_operation, geq_operation, leq_operation): New typedefs.
1076 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
1077 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
1078
1079 2021-03-08 Tom Tromey <tom@tromey.com>
1080
1081 * expop.h (class subscript_operation): New.
1082 * eval.c (eval_op_subscript): No longer static.
1083
1084 2021-03-08 Tom Tromey <tom@tromey.com>
1085
1086 * expop.h (class binop_operation, class usual_ax_binop_operation):
1087 New.
1088 (exp_operation, intdiv_operation, mod_operation, mul_operation)
1089 (div_operation, rem_operation, lsh_operation, rsh_operation)
1090 (bitwise_and_operation, bitwise_ior_operation)
1091 (bitwise_xor_operation): New typedefs.
1092 * eval.c (eval_op_binary): No longer static.
1093
1094 2021-03-08 Tom Tromey <tom@tromey.com>
1095
1096 * expop.h (class sub_operation): New.
1097 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
1098 (evaluate_subexp_standard): Update.
1099
1100 2021-03-08 Tom Tromey <tom@tromey.com>
1101
1102 * expop.h (class add_operation): New.
1103 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
1104 (evaluate_subexp_standard): Update.
1105
1106 2021-03-08 Tom Tromey <tom@tromey.com>
1107
1108 * expop.h (class concat_operation): New.
1109 * eval.c (eval_op_concat): No longer static. Remove "op"
1110 parameter.
1111 (evaluate_subexp_standard): Update.
1112
1113 2021-03-08 Tom Tromey <tom@tromey.com>
1114
1115 * expop.h (class structop_member_operation)
1116 (class structop_mptr_operation): New.
1117 * eval.c (eval_op_member): No longer static.
1118
1119 2021-03-08 Tom Tromey <tom@tromey.com>
1120
1121 * expop.h (class structop_ptr_operation): New.
1122 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
1123 parameter.
1124
1125 2021-03-08 Tom Tromey <tom@tromey.com>
1126
1127 * expop.h (class structop_base_operation)
1128 (class structop_operation): New.
1129 * eval.c (eval_op_structop_struct): No longer static.
1130
1131 2021-03-08 Tom Tromey <tom@tromey.com>
1132
1133 * expop.h (class complex_operation): New.
1134
1135 2021-03-08 Tom Tromey <tom@tromey.com>
1136
1137 * eval.c (eval_op_objc_selector): No longer static.
1138 * c-exp.h (class objc_selector_operation): New.
1139
1140 2021-03-08 Tom Tromey <tom@tromey.com>
1141
1142 * eval.c: Include c-exp.h.
1143 * c-exp.h (class objc_nsstring_operation): New.
1144
1145 2021-03-08 Tom Tromey <tom@tromey.com>
1146
1147 * c-lang.c (c_string_operation::evaluate): New method.
1148 * c-exp.h: New file.
1149
1150 2021-03-08 Tom Tromey <tom@tromey.com>
1151
1152 * expop.h (class ternop_cond_operation): New.
1153 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
1154
1155 2021-03-08 Tom Tromey <tom@tromey.com>
1156
1157 * expop.h (class ternop_slice_operation): New.
1158 * eval.c (eval_op_ternop): No longer static.
1159
1160 2021-03-08 Tom Tromey <tom@tromey.com>
1161
1162 * expop.h (class string_operation): New.
1163 * eval.c (eval_op_string): No longer static.
1164
1165 2021-03-08 Tom Tromey <tom@tromey.com>
1166
1167 * expop.h (class internalvar_operation): New.
1168 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
1169
1170 2021-03-08 Tom Tromey <tom@tromey.com>
1171
1172 * expop.h (class bool_operation): New.
1173
1174 2021-03-08 Tom Tromey <tom@tromey.com>
1175
1176 * expop.h (class register_operation): New.
1177 * eval.c (eval_op_register): No longer static.
1178 * ax-gdb.c (register_operation::do_generate_ax): New method.
1179
1180 2021-03-08 Tom Tromey <tom@tromey.com>
1181
1182 * expop.h (class last_operation): New.
1183
1184 2021-03-08 Tom Tromey <tom@tromey.com>
1185
1186 * expop.h (class func_static_var_operation): New.
1187 * eval.c (eval_op_func_static_var): No longer static.
1188
1189 2021-03-08 Tom Tromey <tom@tromey.com>
1190
1191 * expop.h (class var_entry_value_operation): New.
1192 * eval.c (eval_op_var_entry_value): No longer static.
1193
1194 2021-03-08 Tom Tromey <tom@tromey.com>
1195
1196 * expression.h (class operation) <set_outermost>: New method.
1197 * expop.h (class var_msym_value_operation): New.
1198 * eval.c (eval_op_var_msym_value): No longer static.
1199 (var_msym_value_operation::evaluate_for_address)
1200 (var_msym_value_operation::evaluate_for_sizeof)
1201 (var_msym_value_operation::evaluate_for_cast): New methods.
1202 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
1203 method.
1204
1205 2021-03-08 Tom Tromey <tom@tromey.com>
1206
1207 * expop.h (class long_const_operation): New.
1208 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
1209
1210 2021-03-08 Tom Tromey <tom@tromey.com>
1211
1212 * expop.h (class scope_operation): New.
1213 * eval.c (eval_op_scope): No longer static.
1214 (scope_operation::evaluate_for_address): New method.
1215 * ax-gdb.c (scope_operation::do_generate_ax): New method.
1216
1217 2021-03-08 Tom Tromey <tom@tromey.com>
1218
1219 * expprint.c (float_const_operation::dump): New method.
1220 * expop.h (float_data): New typedef.
1221 (class float_const_operation): New.
1222
1223 2021-03-08 Tom Tromey <tom@tromey.com>
1224
1225 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
1226 * ax-gdb.c (gen_expr_binop): New function.
1227 (gen_expr_structop): Likewise.
1228
1229 2021-03-08 Tom Tromey <tom@tromey.com>
1230
1231 * expprint.c (expr::dump_for_expression): New functions.
1232 * expop.h (dump_for_expression): New overloads.
1233 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
1234 Update.
1235
1236 2021-03-08 Tom Tromey <tom@tromey.com>
1237
1238 * expression.h (expr::operation): New class.
1239 (expr::make_operation): New function.
1240 (expr::operation_up): New typedef.
1241 * expop.h: New file.
1242 * eval.c (operation::evaluate_for_cast)
1243 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
1244 New methods.
1245 * ax-gdb.c (operation::generate_ax): New method.
1246
1247 2021-03-08 Tom Tromey <tom@tromey.com>
1248
1249 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
1250 (gen_expr_binop_rest): New overload.
1251
1252 2021-03-08 Tom Tromey <tom@tromey.com>
1253
1254 * eval.c (eval_multi_subscript): New function.
1255 (evaluate_subexp_standard): Use it.
1256
1257 2021-03-08 Tom Tromey <tom@tromey.com>
1258
1259 * ada-lang.c (ada_binop_exp): New function.
1260 (ada_evaluate_subexp): Use it.
1261
1262 2021-03-08 Tom Tromey <tom@tromey.com>
1263
1264 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
1265 parameters.
1266 (ada_evaluate_subexp): Use it.
1267
1268 2021-03-08 Tom Tromey <tom@tromey.com>
1269
1270 * ada-lang.c (ada_binop_minmax): New function.
1271 (ada_evaluate_subexp): Use it.
1272
1273 2021-03-08 Tom Tromey <tom@tromey.com>
1274
1275 * ada-lang.c (ada_unop_atr): New function.
1276 (ada_evaluate_subexp): Use it.
1277
1278 2021-03-08 Tom Tromey <tom@tromey.com>
1279
1280 * ada-lang.c (ada_binop_in_bounds): New function.
1281 (ada_evaluate_subexp): Use it.
1282
1283 2021-03-08 Tom Tromey <tom@tromey.com>
1284
1285 * ada-lang.c (ada_ternop_slice): New function.
1286 (ada_evaluate_subexp): Use it.
1287
1288 2021-03-08 Tom Tromey <tom@tromey.com>
1289
1290 * ada-lang.c (ada_equal_binop): New function.
1291 (ada_evaluate_subexp): Use it.
1292
1293 2021-03-08 Tom Tromey <tom@tromey.com>
1294
1295 * ada-lang.c (ada_mult_binop): New function.
1296 (ada_evaluate_subexp): Use it.
1297
1298 2021-03-08 Tom Tromey <tom@tromey.com>
1299
1300 * ada-lang.c (ada_abs): New function.
1301 (ada_evaluate_subexp): Use it.
1302
1303 2021-03-08 Tom Tromey <tom@tromey.com>
1304
1305 * ada-lang.c (ada_atr_size): New function.
1306 (ada_evaluate_subexp): Use it.
1307
1308 2021-03-08 Tom Tromey <tom@tromey.com>
1309
1310 * ada-lang.c (ada_atr_tag): New function.
1311 (ada_evaluate_subexp): Use it.
1312
1313 2021-03-08 Tom Tromey <tom@tromey.com>
1314
1315 * ada-lang.c (ada_unop_in_range): New function.
1316 (ada_evaluate_subexp): Use it.
1317
1318 2021-03-08 Tom Tromey <tom@tromey.com>
1319
1320 * ada-lang.c (ada_unop_neg): New function.
1321 (ada_evaluate_subexp): Use it.
1322
1323 2021-03-08 Tom Tromey <tom@tromey.com>
1324
1325 * ada-lang.c (eval_ternop_in_range): New function.
1326 (ada_evaluate_subexp): Use it.
1327
1328 2021-03-08 Tom Tromey <tom@tromey.com>
1329
1330 * opencl-lang.c (eval_opencl_assign): New function.
1331 (evaluate_subexp_opencl): Use it.
1332
1333 2021-03-08 Tom Tromey <tom@tromey.com>
1334
1335 * eval.c (eval_op_objc_msgcall): New function.
1336 (evaluate_subexp_standard): Use it.
1337
1338 2021-03-08 Tom Tromey <tom@tromey.com>
1339
1340 * eval.c (eval_binop_assign_modify): New function.
1341 (evaluate_subexp_standard): Use it.
1342
1343 2021-03-08 Tom Tromey <tom@tromey.com>
1344
1345 * m2-lang.c (eval_op_m2_subscript): New function.
1346 (evaluate_subexp_modula2): Use it.
1347
1348 2021-03-08 Tom Tromey <tom@tromey.com>
1349
1350 * m2-lang.c (eval_op_m2_high): New function.
1351 (evaluate_subexp_modula2): Use it.
1352
1353 2021-03-08 Tom Tromey <tom@tromey.com>
1354
1355 * eval.c (evaluate_subexp_for_address_base): New function.
1356 (evaluate_subexp_for_address): Use it.
1357 (evaluate_subexp_for_sizeof_base): New function.
1358 (evaluate_subexp_for_sizeof): Use it.
1359
1360 2021-03-08 Tom Tromey <tom@tromey.com>
1361
1362 * rust-lang.c (eval_op_rust_structop): New function.
1363 (rust_evaluate_subexp): Use it.
1364
1365 2021-03-08 Tom Tromey <tom@tromey.com>
1366
1367 * rust-lang.c (eval_op_rust_struct_anon): New function.
1368 (rust_evaluate_subexp): Use it.
1369
1370 2021-03-08 Tom Tromey <tom@tromey.com>
1371
1372 * rust-lang.c (eval_op_rust_array): New function.
1373 (rust_evaluate_subexp): Use it.
1374
1375 2021-03-08 Tom Tromey <tom@tromey.com>
1376
1377 * rust-lang.c (eval_op_rust_complement): New function.
1378 (rust_evaluate_subexp): Use it.
1379
1380 2021-03-08 Tom Tromey <tom@tromey.com>
1381
1382 * rust-lang.c (eval_op_rust_ind): New function.
1383 (rust_evaluate_subexp): Use it.
1384
1385 2021-03-08 Tom Tromey <tom@tromey.com>
1386
1387 * rust-lang.c (rust_subscript): Change parameters.
1388 (rust_evaluate_subexp): Update.
1389
1390 2021-03-08 Tom Tromey <tom@tromey.com>
1391
1392 * rust-lang.c (rust_range): Change parameters.
1393 (rust_evaluate_subexp): Update.
1394
1395 2021-03-08 Tom Tromey <tom@tromey.com>
1396
1397 * f-lang.c (eval_op_f_allocated): New function.
1398 (evaluate_subexp_f): Use it.
1399
1400 2021-03-08 Tom Tromey <tom@tromey.com>
1401
1402 * f-lang.c (fortran_require_array): New function.
1403 (evaluate_subexp_f): Use it.
1404
1405 2021-03-08 Tom Tromey <tom@tromey.com>
1406
1407 * f-lang.c (eval_op_f_kind): New function.
1408 (evaluate_subexp_f): Use it.
1409
1410 2021-03-08 Tom Tromey <tom@tromey.com>
1411
1412 * f-lang.c (eval_op_f_cmplx): New function.
1413 (evaluate_subexp_f): Use it.
1414
1415 2021-03-08 Tom Tromey <tom@tromey.com>
1416
1417 * f-lang.c (eval_op_f_modulo): New function.
1418 (evaluate_subexp_f): Use it.
1419
1420 2021-03-08 Tom Tromey <tom@tromey.com>
1421
1422 * f-lang.c (eval_op_f_floor): New function.
1423 (evaluate_subexp_f): Use it.
1424
1425 2021-03-08 Tom Tromey <tom@tromey.com>
1426
1427 * f-lang.c (eval_op_f_ceil): New function.
1428 (evaluate_subexp_f): Use it.
1429
1430 2021-03-08 Tom Tromey <tom@tromey.com>
1431
1432 * f-lang.c (eval_op_f_mod): New function.
1433 (evaluate_subexp_f): Use it.
1434
1435 2021-03-08 Tom Tromey <tom@tromey.com>
1436
1437 * f-lang.c (eval_op_f_abs): New function.
1438 (evaluate_subexp_f): Use it.
1439
1440 2021-03-08 Tom Tromey <tom@tromey.com>
1441
1442 * eval.c (eval_op_type): New function.
1443 (evaluate_subexp_standard): Use it.
1444
1445 2021-03-08 Tom Tromey <tom@tromey.com>
1446
1447 * eval.c (eval_op_postdec): New function.
1448 (evaluate_subexp_standard): Use it.
1449
1450 2021-03-08 Tom Tromey <tom@tromey.com>
1451
1452 * eval.c (eval_op_postinc): New function.
1453 (evaluate_subexp_standard): Use it.
1454
1455 2021-03-08 Tom Tromey <tom@tromey.com>
1456
1457 * eval.c (eval_op_predec): New file.
1458 (evaluate_subexp_standard): Use it.
1459
1460 2021-03-08 Tom Tromey <tom@tromey.com>
1461
1462 * eval.c (eval_op_preinc): New function.
1463 (evaluate_subexp_standard): Use it.
1464
1465 2021-03-08 Tom Tromey <tom@tromey.com>
1466
1467 * eval.c (eval_op_memval): New function.
1468 (evaluate_subexp_standard): Use it.
1469
1470 2021-03-08 Tom Tromey <tom@tromey.com>
1471
1472 * eval.c (eval_op_alignof): New function.
1473 (evaluate_subexp_standard): Use it.
1474
1475 2021-03-08 Tom Tromey <tom@tromey.com>
1476
1477 * eval.c (eval_op_ind): New function.
1478 (evaluate_subexp_standard): Use it.
1479
1480 2021-03-08 Tom Tromey <tom@tromey.com>
1481
1482 * eval.c (eval_op_lognot): New function.
1483 (evaluate_subexp_standard): Use it.
1484
1485 2021-03-08 Tom Tromey <tom@tromey.com>
1486
1487 * eval.c (eval_op_complement): New function.
1488 (evaluate_subexp_standard): Use it.
1489
1490 2021-03-08 Tom Tromey <tom@tromey.com>
1491
1492 * eval.c (eval_op_neg): New function.
1493 (evaluate_subexp_standard): Use it.
1494
1495 2021-03-08 Tom Tromey <tom@tromey.com>
1496
1497 * eval.c (eval_op_plus): New function.
1498 (evaluate_subexp_standard): Use it.
1499
1500 2021-03-08 Tom Tromey <tom@tromey.com>
1501
1502 * eval.c (eval_op_repeat): New function.
1503 (evaluate_subexp_standard): Use it.
1504
1505 2021-03-08 Tom Tromey <tom@tromey.com>
1506
1507 * eval.c (eval_op_leq): New function.
1508 (evaluate_subexp_standard): Use it.
1509
1510 2021-03-08 Tom Tromey <tom@tromey.com>
1511
1512 * eval.c (eval_op_geq): New function.
1513 (evaluate_subexp_standard): Use it.
1514
1515 2021-03-08 Tom Tromey <tom@tromey.com>
1516
1517 * eval.c (eval_op_gtr): New function.
1518 (evaluate_subexp_standard): Use it.
1519
1520 2021-03-08 Tom Tromey <tom@tromey.com>
1521
1522 * eval.c (eval_op_less): New function.
1523 (evaluate_subexp_standard): Use it.
1524
1525 2021-03-08 Tom Tromey <tom@tromey.com>
1526
1527 * eval.c (eval_op_notequal): New function.
1528 (evaluate_subexp_standard): Use it.
1529
1530 2021-03-08 Tom Tromey <tom@tromey.com>
1531
1532 * eval.c (eval_op_equal): New function.
1533 (evaluate_subexp_standard): Use it.
1534
1535 2021-03-08 Tom Tromey <tom@tromey.com>
1536
1537 * eval.c (eval_op_subscript): New function.
1538 (evaluate_subexp_standard): Use it.
1539
1540 2021-03-08 Tom Tromey <tom@tromey.com>
1541
1542 * eval.c (eval_op_binary): New function.
1543 (evaluate_subexp_standard): Use it.
1544
1545 2021-03-08 Tom Tromey <tom@tromey.com>
1546
1547 * eval.c (eval_op_sub): New function.
1548 (evaluate_subexp_standard): Use it.
1549
1550 2021-03-08 Tom Tromey <tom@tromey.com>
1551
1552 * eval.c (eval_op_add): New function.
1553 (evaluate_subexp_standard): Use it.
1554
1555 2021-03-08 Tom Tromey <tom@tromey.com>
1556
1557 * eval.c (eval_op_member): New function.
1558 (evaluate_subexp_standard): Use it.
1559
1560 2021-03-08 Tom Tromey <tom@tromey.com>
1561
1562 * eval.c (eval_op_structop_ptr): New function.
1563 (evaluate_subexp_standard): Use it.
1564
1565 2021-03-08 Tom Tromey <tom@tromey.com>
1566
1567 * eval.c (eval_op_structop_struct): New function.
1568 (evaluate_subexp_standard): Use it.
1569
1570 2021-03-08 Tom Tromey <tom@tromey.com>
1571
1572 * eval.c (eval_op_ternop): New function.
1573 (evaluate_subexp_standard): Use it.
1574
1575 2021-03-08 Tom Tromey <tom@tromey.com>
1576
1577 * eval.c (eval_op_concat): New function.
1578 (evaluate_subexp_standard): Use it.
1579
1580 2021-03-08 Tom Tromey <tom@tromey.com>
1581
1582 * eval.c (eval_op_objc_selector): New function.
1583 (evaluate_subexp_standard): Use it.
1584
1585 2021-03-08 Tom Tromey <tom@tromey.com>
1586
1587 * eval.c (eval_op_string): New function.
1588 (evaluate_subexp_standard): Use it.
1589
1590 2021-03-08 Tom Tromey <tom@tromey.com>
1591
1592 * eval.c (eval_op_register): New function.
1593 (evaluate_subexp_standard): Use it.
1594
1595 2021-03-08 Tom Tromey <tom@tromey.com>
1596
1597 * eval.c (eval_op_func_static_var): New function.
1598 (evaluate_subexp_standard): Use it.
1599
1600 2021-03-08 Tom Tromey <tom@tromey.com>
1601
1602 * eval.c (eval_op_var_msym_value): New function.
1603 (evaluate_subexp_standard): Use it.
1604
1605 2021-03-08 Tom Tromey <tom@tromey.com>
1606
1607 * eval.c (eval_op_var_entry_value): New function.
1608 (evaluate_subexp_standard): Use it.
1609
1610 2021-03-08 Tom Tromey <tom@tromey.com>
1611
1612 * eval.c (eval_op_scope): New function.
1613 (evaluate_subexp_standard): Use it.
1614
1615 2021-03-06 Chernov Sergey <klen_s@mail.ru>
1616
1617 PR gdb/27528:
1618 * ada-lang.c (ada_fold_name): Use gdb::to_string.
1619
1620 2021-03-06 Tom Tromey <tom@tromey.com>
1621
1622 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
1623 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
1624 * dwarf2/read.c (dwarf2_elf_names): No longer static.
1625 (locate_dwz_sections, dwz_search_other_debugdirs)
1626 (dwarf2_get_dwz_file): Move to dwz.c.
1627 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
1628 read.h.
1629 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
1630 (dwarf2_get_dwz_file): Move from read.c.
1631
1632 2021-03-06 Tom Tromey <tom@tromey.com>
1633
1634 * debuginfod-support.h: Include scoped_fd.h.
1635
1636 2021-03-06 Tom Tromey <tom@tromey.com>
1637
1638 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
1639 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
1640 (get_abbrev_section_for_cu, read_attribute_value)
1641 (get_debug_line_section): Update.
1642 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
1643
1644 2021-03-06 Tom Tromey <tom@tromey.com>
1645
1646 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
1647 method.
1648 * dwarf2/read.c (section_is_p): Remove.
1649 (dwarf2_per_bfd::locate_sections)
1650 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
1651 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
1652 (dwarf2_locate_common_dwp_sections)
1653 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
1654 Update.
1655
1656 2021-03-06 Tom Tromey <tom@tromey.com>
1657
1658 * xcoffread.c: Include sect-names.h.
1659 * symfile.h (struct dwarf2_section_names, struct
1660 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
1661 * dwarf2/sect-names.h: New file, from symfile.h.
1662 * dwarf2/read.c: Include sect-names.h.
1663
1664 2021-03-06 Tom Tromey <tom@tromey.com>
1665
1666 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
1667 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
1668 (abbrev_table::read): Update.
1669 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
1670 (struct abbrev_info): Reformat.
1671 <attrs>: Now an array.
1672 (struct abbrev_table) <alloc_abbrev>: Remove.
1673
1674 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1675
1676 * ctfread.c (ctf_psymtab_add_enums): New function.
1677 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
1678
1679 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
1680
1681 * ctfread.c (read_func_kind_type): Set up function arguments.
1682
1683 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1684 Andrew Burgess <andrew.burgess@embecosm.com>
1685
1686 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
1687 includes.
1688 (riscv_csrset): New static global.
1689 (riscv_update_csrmap): New function.
1690 (riscv_iterate_over_regset_sections): Process CSRs.
1691
1692 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1693
1694 * riscv-tdep.c (riscv_feature_name_csr): Define.
1695 (riscv_feature_name_cpu): Define.
1696 (riscv_feature_name_fpu): Define.
1697 (riscv_feature_name_virtual): Define.
1698 (riscv_xreg_feature): Use riscv_feature_name_cpu.
1699 (riscv_freg_feature): Use riscv_feature_name_fpu.
1700 (riscv_virtual_feature): Use riscv_feature_name_virtual.
1701 (riscv_csr_feature): Use riscv_feature_name_csr.
1702 * riscv-tdep.h (riscv_feature_name_csr): Declare.
1703
1704 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1705 Craig Blackmore <craig.blackmore@embecosm.com>
1706
1707 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
1708 (ALLDEPFILES): Add riscv-none-tdep.c.
1709 * configure: Regenerate.
1710 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
1711 support.
1712 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
1713 * elf-none-tdep.c: New file.
1714 * elf-none-tdep.h: New file.
1715 * riscv-none-tdep.c: New file.
1716
1717 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
1718 Andrew Burgess <andrew.burgess@embecosm.com>
1719
1720 * corelow.c: Add 'xml-tdesc.h' include.
1721 (core_target::read_description): Load the target description from
1722 the core file when possible.
1723 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
1724 note.
1725 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
1726 (gcore_elf_make_tdesc_note): New function.
1727 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
1728 * linux-tdep.c (linux_make_corefile_notes): Add target description
1729 note.
1730
1731 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
1732
1733 * Makefile.in (SFILES): Add gcore-elf.c.
1734 (HFILES_NO_SRCDIR): Add gcore-elf.h
1735 * configure: Regenerate.
1736 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
1737 support.
1738 * fbsd-tdep.c: Add 'gcore-elf.h' include.
1739 (struct fbsd_collect_regset_section_cb_data): Delete.
1740 (fbsd_collect_regset_section_cb): Delete.
1741 (fbsd_collect_thread_registers): Delete.
1742 (struct fbsd_corefile_thread_data): Delete.
1743 (fbsd_corefile_thread): Delete.
1744 (fbsd_make_corefile_notes): Call
1745 gcore_elf_build_thread_register_notes instead of the now deleted
1746 FreeBSD code.
1747 * gcore-elf.c: New file, the content was moved here from
1748 linux-tdep.c, functions were renamed and given minor cleanup.
1749 * gcore-elf.h: New file.
1750 * gcore.c (gcore_find_signalled_thread): Moved here from
1751 linux-tdep.c and given a new name. Minor cleanups.
1752 * gcore.h (gcore_find_signalled_thread): Declare.
1753 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
1754 (struct linux_collect_regset_section_cb_data): Delete.
1755 (linux_collect_regset_section_cb): Delete.
1756 (linux_collect_thread_registers): Delete.
1757 (linux_corefile_thread): Call
1758 gcore_elf_build_thread_register_notes.
1759 (find_signalled_thread): Delete.
1760 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
1761
1762 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
1763
1764 PR gdb/27147
1765 * sparc-nat.h (sparc_fetch_inferior_registers): Add
1766 process_stratum_target parameter,
1767 sparc_store_inferior_registers): update callers.
1768 * sparc-nat.c (sparc_fetch_inferior_registers,
1769 sparc_store_inferior_registers): Add process_stratum_target
1770 parameter. Switch current thread before calling
1771 sparc_supply_gregset / sparc_collect_rwindow.
1772 (sparc_store_inferior_registers): Likewise.
1773 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
1774 (sparc32obsd_collect_uthread): Likewise.
1775 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
1776 Add assertion.
1777 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
1778 sparc64obsd_supply_uthread): Add assertion.
1779
1780 2021-03-04 Tom Tromey <tromey@adacore.com>
1781
1782 * ada-lang.c (struct match_data) <found_sym>: Now bool.
1783 (aux_add_nonlocal_symbols): Update.
1784 (ada_add_block_symbols): Change "found_sym" to bool.
1785
1786 2021-03-03 Tom Tromey <tromey@adacore.com>
1787
1788 * ada-lang.c (ada_resolve_function): Update comment.
1789 (is_nonfunction, add_symbols_from_enclosing_procs)
1790 (remove_extra_symbols): Likewise.
1791 (struct match_data): Add constructor, initializers.
1792 (add_nonlocal_symbols): Remove memset.
1793 (aux_add_nonlocal_symbols): Update comment.
1794 (ada_add_block_renamings, add_nonlocal_symbols)
1795 (ada_add_all_symbols): Likewise.
1796 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
1797
1798 2021-03-02 Tom Tromey <tromey@adacore.com>
1799
1800 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
1801 (cast_to_gnat_encoded_fixed_point_type): Remove.
1802 (ada_value_cast, ada_evaluate_subexp): Update.
1803 (gnat_encoded_fixed_point_type_info)
1804 (ada_is_gnat_encoded_fixed_point_type)
1805 (gnat_encoded_fixed_point_delta)
1806 (gnat_encoded_fixed_point_scaling_factor): Remove.
1807 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
1808 (gnat_encoded_fixed_point_delta)
1809 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
1810 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
1811 (ada_print_type): Update.
1812 * ada-valprint.c (ada_value_print_num): Update.
1813 * dwarf2/read.c (ada_get_gnat_encoded_number)
1814 (ada_get_gnat_encoded_ratio): New functions.
1815 (finish_fixed_point_type): Use them. Add parameters.
1816 (GNAT_FIXED_POINT_SUFFIX): New define.
1817 (gnat_encoded_fixed_point_type_info): New function.
1818 (read_base_type): Handle gnat encodings.
1819
1820 2021-03-02 Tom Tromey <tromey@adacore.com>
1821
1822 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
1823 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
1824 std::string.
1825 (GROW_VECT): Remove.
1826 (grow_vect): Remove.
1827
1828 2021-03-02 Tom Tromey <tromey@adacore.com>
1829
1830 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
1831 * ada-lang.c (resolve_subexp): Update.
1832 (ada_resolve_function): Accept a vector.
1833 (is_nonfunction, add_defn_to_vec)
1834 (add_symbols_from_enclosing_procs): Likewise.
1835 (num_defns_collected, defns_collected): Remove.
1836 (remove_extra_symbols): Return a vector.
1837 (remove_irrelevant_renamings): Return void.
1838 (ada_add_local_symbols): Accept a vector.
1839 (struct match_data) <obstackp>: Remove.
1840 <resultp>: New member.
1841 (aux_add_nonlocal_symbols): Update.
1842 (ada_add_block_renamings, add_nonlocal_symbols)
1843 (ada_add_all_symbols): Accept a vector.
1844 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
1845 vector.
1846 (ada_lookup_symbol): Update.
1847 (ada_add_block_symbols): Accept a vector.
1848 (get_var_value, iterate_over_symbols): Update.
1849 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
1850 Update.
1851
1852 2021-03-02 Tom Tromey <tromey@adacore.com>
1853
1854 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
1855
1856 2021-03-02 Tom Tromey <tromey@adacore.com>
1857
1858 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
1859 auto_obstack.
1860 <root>: Initialize.
1861 (ada_pspace_data): Remove destructor.
1862 <sym_cache>: Now a unique_ptr.
1863 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
1864 (ada_get_symbol_cache): Use 'new'.
1865 (ada_clear_symbol_cache): Rewrite.
1866
1867 2021-03-02 Tom Tromey <tromey@adacore.com>
1868
1869 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
1870 is null.
1871
1872 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
1873
1874 PR gdb/27393
1875 * source.c (add_path): Skip empty dirnames.
1876
1877 2021-02-25 Kevin Buettner <kevinb@redhat.com>
1878
1879 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
1880 include order for <sys/ptrace.h> and <asm/ptrace.h>.
1881
1882 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
1883
1884 PR gdb/26861
1885 * target.c (target_mourn_inferior): Only compare pids in
1886 target_mourn_inferior.
1887
1888 2021-02-25 Jan Matyas <jmatyas@codasip.com>
1889
1890 PR gdb/26819
1891 * remote.c (remote_target::start_remote): Ensure the single
1892 thread, automatically added for remote targets without the
1893 concept of threading, is initially in set to the "resumed"
1894 state.
1895 * remote.c (remote_target::add_current_inferior_and_thread):
1896 Add return value - return the main thread.
1897
1898 2021-02-25 Jan Vrany <jan.vrany@labware.com>
1899
1900 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
1901 (mi_tsv_created): Likewise.
1902 (mi_tsv_deleted): Likewise.
1903
1904 2021-02-25 Tom de Vries <tdevries@suse.de>
1905
1906 PR symtab/27354
1907 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
1908 section_kind for &dwo_file->sections.info.
1909
1910 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1911
1912 PR fortran/26155
1913 * f-lang.c (fortran_argument_convert): Delete declaration.
1914 (fortran_prepare_argument): New function.
1915 (evaluate_subexp_f): Move logic to new function
1916 fortran_prepare_argument.
1917
1918 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1919
1920 * f-exp.y (f77_keywords): Add 'associated'.
1921 * f-lang.c (fortran_associated): New function.
1922 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
1923 (operator_length_f): Likewise.
1924 (print_unop_or_binop_subexp_f): New function.
1925 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
1926 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
1927 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
1928 (operator_check_f): Likewise.
1929 * std-operator.def: Add FORTRAN_ASSOCIATED.
1930
1931 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
1932
1933 * f-exp.y (fortran_operators): Add ".xor.".
1934
1935 2021-02-24 Tom de Vries <tdevries@suse.de>
1936
1937 PR symtab/27336
1938 * dwarf2/attribute.c (attribute::form_is_signed): New function
1939 factored out of ...
1940 * dwarf2/attribute.h (attribute::as_signed): ... here.
1941 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
1942 (attribute::form_is_signed): Declare.
1943 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
1944 for DW_AT_decl_file.
1945
1946 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1947
1948 * nat/aarch64-linux-hw-point.c: Add comment regarding include
1949 order for <sys/ptrace.h> and <asm/ptrace.h>.
1950
1951 2021-02-24 Kevin Buettner <kevinb@redhat.com>
1952
1953 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
1954 <sys/ptrace.h>.
1955
1956 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1957
1958 * exec.c (set_section_command): Move variable declarations into
1959 the function body, and use std::string instead of a fixed size
1960 buffer.
1961
1962 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1963
1964 * exec.c (exec_target::get_section_table): Delete member function.
1965 (section_table_read_available_memory): Use current_top_target, not
1966 just the exec_ops target.
1967 * target-delegates.c: Regenerate.
1968 * target.c (default_get_section_table): New function.
1969 * target.h (target_ops::get_section_table): Change default
1970 behaviour to call default_get_section_table.
1971 (default_get_section_table): Declare.
1972
1973 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1974
1975 * exec.c (exec_target::close): Call new clear_target_sections
1976 function.
1977 (program_space::add_target_sections): Update name of member
1978 variable.
1979 (program_space::add_target_sections): Update name of member
1980 variable.
1981 (program_space::remove_target_sections): Likewise.
1982 (exec_one_fork): Use new target_sections member function.
1983 (exec_target::get_section_table): Likewise.
1984 (exec_target::files_info): Likewise.
1985 (set_section_command): Likewise.
1986 (exec_set_section_address): Likewise.
1987 (exec_target::has_memory): Use new target_sections member
1988 function.
1989 * progspace.h (program_space::clear_target_sections): New member
1990 function.
1991 (program_space::target_sections): Rename member variable to
1992 m_target_sections, replace with a new member function.
1993 (program_space::m_target_sections): New member variable.
1994 * solib-dsbt.c (scan_dyntag): Use new member function.
1995 * solib-svr4.c (scan_dyntag): Likewise.
1996
1997 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
1998
1999 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
2000 return type const.
2001 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
2002 (section_table_read_available_memory): Make local const.
2003 (exec_target::xfer_partial): Make local const.
2004 (print_section_info): Make parameter const.
2005 * gdb/exec.h (print_section_info): Likewise.
2006 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
2007 const.
2008 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
2009 Likewise.
2010 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
2011 Likewise.
2012 * gdb/s390-tdep.c (s390_load): Likewise.
2013 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
2014 * gdb/solib-svr4.c (scan_dyntag): Likewise.
2015 * gdb/target-debug.h (target_debug_print_target_section_table_p):
2016 Rename to...
2017 (target_debug_print_const_target_section_table_p): ...this.
2018 * gdb/target-delegates.c: Regenerate.
2019 * gdb/target.c (target_get_section_table): Make return type const.
2020 (target_section_by_addr): Likewise. Also make some locals const.
2021 (memory_xfer_partial_1): Make some locals const.
2022 * gdb/target.h (struct target_ops) <get_section_table>: Make
2023 return type const.
2024 (target_section_by_addr): Likewise.
2025 (target_get_section_table): Likewise.
2026
2027 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2028
2029 * NEWS: Mention new 'maint info target-sections' command.
2030 * maint.c (maintenance_info_target_sections): New function.
2031 (_initialize_maint_cmds): Register new command.
2032
2033 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2034
2035 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
2036 (riscv_features_from_bfd): ...this. Change parameter type to
2037 'bfd*', and update as required.
2038 (riscv_find_default_target_description): Update call to
2039 riscv_features_from_bfd. Select a default xlen based on
2040 info.bfd_arch_info.
2041 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
2042
2043 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
2044
2045 * eval.c (evaluate_subexp_standard): Call value_ind for points to
2046 dynamic types in UNOP_IND.
2047
2048 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2049
2050 PR gdb/26828
2051 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
2052 Instantiate queue.
2053 (~dwarf2_queue_guard): Clear queue.
2054 (queue_comp_unit): Assert that queue is
2055 instantiated.
2056 (process_queue): Adjust.
2057 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
2058
2059 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2060
2061 PR gdb/26828
2062 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
2063 to decide whether or not to enqueue it for expansion.
2064 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
2065 after calling maybe_queue_comp_unit.
2066
2067 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
2068
2069 * linux-nat.c (linux_nat_filter_event): Return void.
2070
2071 2021-02-22 Tom Tromey <tromey@adacore.com>
2072
2073 * solib-svr4.c (enable_break): Update.
2074 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
2075 type.
2076 (target_bfd_reopen): Change parameter type.
2077 * bfd-target.h (target_bfd_reopen): Change parameter type.
2078
2079 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2080
2081 * thread.c (add_thread_silent): Add assert.
2082 (find_thread_ptid): Add assert.
2083
2084 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
2085
2086 PR gdb/27435
2087 * inf-ptrace.c (struct target_unpusher): Move to target.h.
2088 (target_unpush_up): Likewise.
2089 * procfs.c (procfs_target::attach): Push target early. Use
2090 target_unpush_up to unpush target in case of error.
2091 * target.h (struct target_unpusher): Move here.
2092 (target_unpush_up): Likewise.
2093
2094 2021-02-19 Kevin Buettner <kevinb@redhat.com>
2095
2096 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
2097 (which in turn includes <gnulib/config.h>) before include
2098 of <signal.h>.
2099
2100 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
2101
2102 PR 27158
2103 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
2104 (decode_j_type_insn): Likewise.
2105 (decode_cj_type_insn): Likewise.
2106 (decode_b_type_insn): Likewise.
2107 (decode): Likewise.
2108
2109 2021-02-18 Tom Tromey <tom@tromey.com>
2110
2111 * expression.h (struct expression) <evaluate>: Declare method.
2112 * eval.c (evaluate_subexp): Simplify.
2113 (expression::evaluate): New method.
2114 (evaluate_expression, evaluate_type): Use expression::evaluate.
2115
2116 2021-02-17 Kevin Buettner <kevinb@redhat.com>
2117
2118 * ada-lang.c (ada_fold_name): Check for non-empty string prior
2119 to accessing it.
2120 (ada_lookup_name_info): Likewise.
2121
2122 2021-02-13 Mike Frysinger <vapier@gentoo.org>
2123
2124 * aclocal.m4: Regenerate.
2125
2126 2021-02-12 Tom de Vries <tdevries@suse.de>
2127
2128 PR threads/26228
2129 * linux-nat.c (lin_thread_get_thread_signals): Remove.
2130 (lin_thread_signals): New static var.
2131 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2132 New function.
2133 * linux-nat.h (lin_thread_get_thread_signals): Remove.
2134 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
2135 Declare.
2136 * linux-thread-db.c (check_thread_signals): Use
2137 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
2138
2139 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
2140
2141 * f-exp.y (f77_keywords): Add allocated.
2142 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
2143 (operator_length_f): Likewise.
2144 (print_subexp_f): Likewise.
2145 (dump_subexp_body_f): Likewise.
2146 (operator_check_f): Likewise.
2147 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
2148
2149 2021-02-11 Tom de Vries <tdevries@suse.de>
2150
2151 PR symtab/27353
2152 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
2153 Return true for DW_FORM_strx.
2154
2155 2021-02-11 Tom Tromey <tromey@adacore.com>
2156
2157 PR gdb/27383:
2158 * parse.c (write_exp_symbol_reference): Write sym.block.
2159
2160 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2161
2162 * NEWS: Mention changes to 'maint info sections'.
2163 * maint.c (match_substring): Return a bool, fix whitespace issue.
2164 (struct single_bfd_flag_info): New struct.
2165 (bfd_flag_info): New static global.
2166 (match_bfd_flags): Return a bool, use bfd_flag_info.
2167 (print_bfd_flags): Use bfd_flag_info.
2168 (maint_print_section_info): Delete trailing whitespace.
2169 (struct maint_info_sections_opts): New struct.
2170 (maint_info_sections_option_defs): New static global.
2171 (maint_info_sections_completer): New function.
2172 (maintenance_info_sections): Use option parsing mechanism.
2173 (_initialize_maint_cmds): Update command help text for 'maint info
2174 sections' and register a command completer.
2175
2176 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2177
2178 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
2179 functionality merged into...
2180 (maint_print_all_sections): ...this new function.
2181 (maintenance_info_sections): Make use of maint_print_all_sections,
2182 allow all objects to be printed even where there's no executable.
2183
2184 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
2185
2186 * breakpoint.c (resolve_sal_pc): Make use of
2187 bound_minimal_symbol::obj_section.
2188 * maint.c (maintenance_translate_address): Likewise.
2189 * minsyms.c (minimal_symbol_upper_bound): Likewise.
2190 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
2191 member function.
2192 * printcmd.c (info_address_command): Make use of
2193 bound_minimal_symbol::obj_section.
2194
2195 2021-02-11 Alan Modra <amodra@gmail.com>
2196
2197 * arm-symbian-tdep.c: Delete.
2198 * NEWS: Mention arm-symbian removal.
2199 * Makefile.in: Remove arm-symbian-tdep entries.
2200 * configure.tgt: Remove arm*-*-symbianelf*.
2201 * doc/gdb.texinfo: Remove mention of SymbianOS.
2202 * osabi.c (gdb_osabi_names): Remove "Symbian".
2203 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
2204 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
2205 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
2206 handling.
2207 * testsuite/gdb.base/dup-sect.exp: Likewise.
2208 * testsuite/gdb.base/long_long.exp: Likewise.
2209 * testsuite/gdb.base/solib-weak.exp: Likewise.
2210 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
2211 * testsuite/gdb.python/py-section-script.exp: Likewise.
2212 * testsuite/lib/dwarf.exp: Likewise.
2213 * testsuite/lib/gdb.exp: Likewise.
2214
2215 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2216
2217 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
2218 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
2219 (one_or_two_args): New pattern.
2220 (f77_keywords): Add lbound and ubound.
2221 * f-lang.c (fortran_bounds_all_dims): New function.
2222 (fortran_bounds_for_dimension): New function.
2223 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
2224 (operator_length_f): Likewise.
2225 (print_subexp_f): Likewise.
2226 (dump_subexp_body_f): Likewise.
2227 (operator_check_f): Likewise.
2228 * std-operator.def (FORTRAN_LBOUND): Define.
2229 (FORTRAN_UBOUND): Define.
2230
2231 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2232
2233 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
2234 and set_section_index member functions where appropriate.
2235 * coffread.c (coff_symtab_read): Likewise.
2236 (process_coff_symbol): Likewise.
2237 * ctfread.c (set_symbol_address): Likewise.
2238 * dwarf2/read.c (add_partial_symbol): Likewise.
2239 (var_decode_location): Likewise.
2240 * language.c: Likewise.
2241 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
2242 (compact_minimal_symbols): Likewise.
2243 (minimal_symbol_upper_bound): Likewise.
2244 * objfiles.c (relocate_one_symbol): Likewise.
2245 * psympriv.h (partial_symbol::obj_section): Likewise.
2246 (partial_symbol::address): Likewise.
2247 * psymtab.c (partial_symtab::add_psymbol): Likewise.
2248 * stabsread.c (scan_file_globals): Likewise.
2249 * symmisc.c (dump_msymbols): Likewise.
2250 * symtab.c (general_symbol_info::obj_section): Likewise.
2251 (fixup_section): Likewise.
2252 (get_msymbol_address): Likewise.
2253 * symtab.h (general_symbol_info::section): Rename to...
2254 (general_symbol_info::m_section): ...this.
2255 (general_symbol_info::set_section_index): New member function.
2256 (general_symbol_info::section_index): Likewise.
2257 (SYMBOL_SECTION): Delete.
2258 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
2259 set_section_index member functions where appropriate.
2260 (MSYMBOL_SECTION): Delete.
2261 (symbol::symbol): Update to initialize 'm_section'.
2262 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
2263 (process_xcoff_symbol): Likewise.
2264
2265 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
2266
2267 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
2268 MSYMBOL_OBJ_SECTION.
2269 * findvar.c (language_defn::read_var_value): Likewise.
2270 * infcmd.c (jump_command): Likewise.
2271 * linespec.c (minsym_found): Likewise.
2272 * maint.c (maintenance_translate_address): Likewise.
2273 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
2274 (minimal_symbol_upper_bound): Likewise.
2275 * parse.c (find_minsym_type_and_address): Likewise.
2276 (operator_check_standard): Likewise.
2277 * printcmd.c (info_address_command): Likewise.
2278 * symmisc.c (dump_msymbols): Likewise.
2279 (print_symbol): Likewise.
2280 * symtab.c (general_symbol_info::obj_section): Define new
2281 function.
2282 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
2283 (find_pc_sect_compunit_symtab): Likewise.
2284 (find_function_start_sal): Likewise.
2285 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
2286 MSYMBOL_OBJ_SECTION.
2287 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
2288 function.
2289 (SYMBOL_OBJ_SECTION): Delete.
2290 (MSYMBOL_OBJ_SECTION): Delete.
2291
2292 2021-02-09 Tom Tromey <tom@tromey.com>
2293
2294 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
2295
2296 2021-02-09 Tom de Vries <tdevries@suse.de>
2297
2298 PR symtab/27341
2299 * dwarf2/read.c (read_array_type): Return NULL when not being able to
2300 construct an array type. Add assert to ensure that element_type is
2301 not being modified.
2302
2303 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
2304
2305 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
2306 (gcore_collect_regset_section_cb): Delete.
2307 (gcore_collect_thread_registers): Delete.
2308 (gcore_build_thread_register_notes): Delete.
2309 (gcore_find_signalled_thread): Delete.
2310 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
2311 'gdbarch' and 'thread_info' declarations.
2312 (gcore_build_thread_register_notes): Delete declaration.
2313 (gcore_find_signalled_thread): Likewise.
2314 * fbsd-tdep.c: Remove 'gcore.h' include.
2315 (struct fbsd_collect_regset_section_cb_data): New struct.
2316 (fbsd_collect_regset_section_cb): New function.
2317 (fbsd_collect_thread_registers): New function.
2318 (struct fbsd_corefile_thread_data): New struct.
2319 (fbsd_corefile_thread): New function.
2320 (fbsd_make_corefile_notes): Call FreeBSD specific code.
2321 * linux-tdep.c: Remove 'gcore.h' include.
2322 (struct linux_collect_regset_section_cb_data): New struct.
2323 (linux_collect_regset_section_cb): New function.
2324 (linux_collect_thread_registers): New function.
2325 (linux_corefile_thread): Call Linux specific code.
2326 (find_signalled_thread): New function.
2327 (linux_make_corefile_notes): Call find_signalled_thread.
2328
2329 2021-02-09 Tom Tromey <tromey@adacore.com>
2330
2331 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
2332 not_lval value.
2333 * value.c (value_contents_copy_raw): Now static.
2334 * value.h (value_contents_copy_raw): Don't declare.
2335
2336 2021-02-09 Tom Tromey <tromey@adacore.com>
2337
2338 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
2339 fields.
2340
2341 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
2342
2343 PR tdep/27369
2344 * arc-linux-tdep.c (handle_atomic_sequence): New.
2345 (arc_linux_software_single_step): Call handle_atomic_sequence().
2346
2347 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2348
2349 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
2350 function.
2351 (REQUIRE_WINDOW): Call is_valid member function.
2352 (REQUIRE_WINDOW_FOR_SETTER): New define.
2353 (gdbpy_tui_is_valid): Call is_valid member function.
2354 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
2355 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
2356 tui_active too.
2357 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
2358 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
2359 the function.
2360
2361 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2362
2363 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
2364 for the title is not nullptr.
2365
2366 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2367
2368 * tui-layout.c (saved_tui_windows): Delete.
2369 (tui_apply_current_layout): Don't make use of saved_tui_windows,
2370 call new get_windows member function instead.
2371 (tui_get_window_by_name): Check in tui_windows.
2372 (tui_layout_window::apply): Don't add to tui_windows.
2373 * tui-layout.h (tui_layout_base::get_windows): New member function.
2374 (tui_layout_window::get_windows): Likewise.
2375 (tui_layout_split::get_windows): Likewise.
2376
2377 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2378
2379 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
2380 of the window objects.
2381
2382 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2383
2384 * python/python.c (gdbpy_print_stack): Reformat an error message.
2385
2386 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
2387
2388 * tui/tui-interp.c (tui_command_line_handler): New function.
2389 (tui_interp::resume): Register tui_command_line_handler as the
2390 input_handler.
2391 * tui/tui-io.c (tui_inject_newline_into_command_window): New
2392 function.
2393 (tui_getc_1): Delete handling of '\n' and '\r'.
2394 * tui-io.h (tui_inject_newline_into_command_window): Declare.
2395
2396 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2397
2398 * tui/tui-regs.c (tui_data_window::display_registers_from):
2399 Mark invisible register sub windows.
2400 (tui_data_window::check_register_values): Ignore invisible
2401 register sub windows.
2402
2403 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2404
2405 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
2406 n_spaces with a negative value.
2407
2408 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2409
2410 * tui/tui-regs.c (tui_data_window::display_registers_from):
2411 Add refresh_window call.
2412
2413 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
2414
2415 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
2416
2417 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
2418
2419 * symmisc.c (std_in, std_out, std_err): Remove.
2420 (_initialize_symmisc): Don't set std_in, std_out and std_err.
2421
2422 2021-02-05 Tom de Vries <tdevries@suse.de>
2423
2424 PR breakpoints/27330
2425 * breakpoint.c (create_exception_master_breakpoint): Handle case that
2426 glibc object file has debug info.
2427
2428 2021-02-05 Tom de Vries <tdevries@suse.de>
2429
2430 PR symtab/27333
2431 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
2432
2433 2021-02-05 Tom de Vries <tdevries@suse.de>
2434
2435 PR breakpoints/27313
2436 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
2437 syscall numbers.
2438
2439 2021-02-05 Tom Tromey <tom@tromey.com>
2440
2441 * compile/compile-c-support.c (get_compile_context)
2442 (c_get_compile_context, cplus_get_compile_context): Change return
2443 type.
2444 * language.c (language_defn::get_compile_instance): New method.
2445 * language.h (language_defn::get_compile_instance): Change return
2446 type. No longer inline.
2447 * c-lang.c (c_language::get_compile_instance): Change return type.
2448 (cplus_language::get_compile_instance): Change return type.
2449 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
2450 Change return type.
2451 * compile/compile.c (compile_to_object): Update.
2452
2453 2021-02-05 Tom Tromey <tom@tromey.com>
2454
2455 * parser-defs.h (write_exp_symbol_reference): Declare.
2456 * parse.c (write_exp_symbol_reference): New function.
2457 * p-exp.y (variable): Use write_exp_symbol_reference.
2458 * m2-exp.y (variable): Use write_exp_symbol_reference.
2459 * f-exp.y (variable): Use write_exp_symbol_reference.
2460 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
2461 * c-exp.y (variable): Use write_exp_symbol_reference.
2462
2463 2021-02-05 Tom de Vries <tdevries@suse.de>
2464
2465 PR exp/27265
2466 * valarith.c (complex_binop): Throw an error if complex type can't
2467 be created.
2468
2469 2021-02-05 Tom de Vries <tdevries@suse.de>
2470
2471 PR symtab/27307
2472 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
2473 return.
2474
2475 2021-02-05 Tom de Vries <tdevries@suse.de>
2476
2477 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
2478
2479 2021-02-04 Mike Frysinger <vapier@gentoo.org>
2480
2481 * configure.tgt (riscv*-*-*): Set gdb_sim.
2482
2483 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
2484
2485 * target.c (target_is_non_stop_p): Return bool.
2486 * target.h (target_is_non_stop_p): Return bool.
2487
2488 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2489
2490 * record-full.c (record_full_async_inferior_event_handler):
2491 Don't clear async event handler.
2492 (record_full_base_target::wait): Clear async event handler at
2493 beginning.
2494
2495 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2496
2497 * record-btrace.c (record_btrace_handle_async_inferior_event):
2498 Don't clear async event handler.
2499 (record_btrace_target::wait): Clear async event handler at
2500 beginning.
2501
2502 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2503
2504 * remote.c (remote_target::wait): Clear async event handler at
2505 beginning, mark if needed at the end.
2506 (remote_async_inferior_event_handler): Don't set or clear async
2507 event handler.
2508
2509 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
2510
2511 * async-event.h (async_event_handler_func): Add documentation.
2512 * async-event.c (check_async_event_handlers): Don't clear
2513 async_event_handler ready flag.
2514 * infrun.c (infrun_async_inferior_event_handler): Clear ready
2515 flag.
2516 * record-btrace.c (record_btrace_handle_async_inferior_event):
2517 Likewise.
2518 * record-full.c (record_full_async_inferior_event_handler):
2519 Likewise.
2520 * remote-notif.c (remote_async_get_pending_events_handler):
2521 Likewise.
2522 * remote.c (remote_async_inferior_event_handler): Likewise.
2523
2524 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
2525
2526 * infrun.c (handle_inferior_event): Move stop_soon variable to
2527 inner scope.
2528
2529 2021-02-03 Pedro Alves <pedro@palves.net>
2530
2531 * infcmd.c (detach_command): Hold strong reference to target, and
2532 if all-stop on entry, restart threads on exit.
2533 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
2534 (restart_stepped_thread): ... this new function. Also handle
2535 trap_expected.
2536 (restart_after_all_stop_detach): New function.
2537 * infrun.h (restart_after_all_stop_detach): Declare.
2538
2539 2021-02-03 Pedro Alves <pedro@palves.net>
2540
2541 * infrun.c (struct step_over_info): Initialize fields.
2542 (prepare_for_detach): Handle ongoing in-line step over.
2543
2544 2021-02-03 Pedro Alves <pedro@palves.net>
2545
2546 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
2547 here...
2548 * remote.c (remote_target::remote_detach_1): ... and here ...
2549 * target.c (target_detach): ... instead of here.
2550 * target.h (target_ops::detach): Add comment.
2551
2552 2021-02-03 Pedro Alves <pedro@palves.net>
2553
2554 * infrun.c (struct wait_one_event): Move higher up.
2555 (prepare_for_detach): Abort in-progress displaced steps instead of
2556 letting them complete.
2557 (handle_one): If the inferior is detaching, don't add the thread
2558 back to the global step-over chain.
2559 (restart_threads): Don't restart threads if detaching.
2560 (handle_signal_stop): Remove inferior::detaching reference.
2561
2562 2021-02-03 Pedro Alves <pedro@palves.net>
2563
2564 * infrun.c (prepare_for_detach): Don't release scoped_restore
2565 before returning.
2566
2567 2021-02-03 Pedro Alves <pedro@palves.net>
2568
2569 * infrun.c (handle_one): New function, factored out from ...
2570 (stop_all_threads): ... here.
2571
2572 2021-02-03 Pedro Alves <pedro@palves.net>
2573
2574 * remote.c (remote_notif_stop_ack): Don't error out on
2575 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
2576 (remote_target::discard_pending_stop_replies): Don't delete
2577 in-flight notification; instead, clear its contents.
2578
2579 2021-02-03 Pedro Alves <pedro@palves.net>
2580
2581 * remote.c (extended_remote_target::attach): Set target async in
2582 the target-non-stop path too.
2583
2584 2021-02-03 Pedro Alves <pedro@palves.net>
2585
2586 PR gdb/27055
2587 * infrun.c (handle_signal_stop): Move main context_switch call
2588 earlier, before STOP_QUIETLY_NO_SIGSTOP.
2589
2590 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
2591
2592 * NEWS (Changed commands): Add entry for the behavior change of
2593 the inferior command.
2594 * inferior.c (inferior_command): When no argument is given to the
2595 inferior command, display info about the currently selected
2596 inferior.
2597
2598 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2599
2600 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
2601 a sect_offset.
2602 (read_attribute_reprocess): Adjust.
2603
2604 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2605
2606 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
2607 <gnu_ranges_base>: ... this...
2608 <rnglists_base>: ... and this.
2609 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
2610 <gnu_ranges_base>: ... this...
2611 <rnglists_base>: ... and this.
2612 (read_cutu_die_from_dwo): Adjust
2613 (dwarf2_get_pc_bounds): Adjust
2614 (dwarf2_record_block_ranges): Adjust.
2615 (read_full_die_1): Adjust
2616 (partial_die_info::read): Adjust.
2617 (read_rnglist_index): Adjust.
2618
2619 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2620
2621 PR gdb/26813
2622 * dwarf2/read.c (read_loclists_rnglists_header): Add
2623 header_offset parameter and use it.
2624 (read_loclist_index): Read header of the current contribution,
2625 not the one at the beginning of the section.
2626 (read_rnglist_index): Likewise.
2627
2628 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2629
2630 PR gdb/26813
2631 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
2632 requires_reprocessing flag.
2633 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
2634 DW_FORM_loclistx.
2635 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
2636 and DW_FORM_loclistx.
2637 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
2638 instead of set_address for DW_FORM_loclistx and
2639 DW_FORM_rnglistx.
2640
2641 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2642
2643 * dwarf2/read.c (read_loclist_index): Remove bound check for
2644 start of offset.
2645 (read_rnglist_index): Likewise.
2646
2647 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2648
2649 * dwarf2/read.c (read_loclist_index): Add bound check for the end
2650 of the offset.
2651
2652 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2653
2654 * dwarf2/read.c (read_rnglist_index): Fix bound check.
2655
2656 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
2657
2658 * dwarf2/read.c (read_loclist_index): Change complaints into
2659 errors.
2660
2661 2021-02-02 Tom de Vries <tdevries@suse.de>
2662
2663 PR symtab/24620
2664 * dwarf2/index-write.c (write_one_signatured_type): Skip if
2665 psymtab == nullptr.
2666
2667 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
2668
2669 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
2670 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
2671 here from linux-tdep.c and given a new name. Minor cleanups.
2672 (gcore_collect_regset_section_cb): Likewise.
2673 (gcore_collect_thread_registers): Likewise.
2674 (gcore_build_thread_register_notes): Likewise.
2675 (gcore_find_signalled_thread): Likewise.
2676 * gcore.h (gcore_build_thread_register_notes): Declare.
2677 (gcore_find_signalled_thread): Declare.
2678 * fbsd-tdep.c: Add 'gcore.h' include.
2679 (struct fbsd_collect_regset_section_cb_data): Delete.
2680 (fbsd_collect_regset_section_cb): Delete.
2681 (fbsd_collect_thread_registers): Delete.
2682 (struct fbsd_corefile_thread_data): Delete.
2683 (fbsd_corefile_thread): Delete.
2684 (fbsd_make_corefile_notes): Call
2685 gcore_build_thread_register_notes instead of the now deleted
2686 FreeBSD code.
2687 * linux-tdep.c: Add 'gcore.h' include.
2688 (struct linux_collect_regset_section_cb_data): Delete.
2689 (linux_collect_regset_section_cb): Delete.
2690 (linux_collect_thread_registers): Delete.
2691 (linux_corefile_thread): Call
2692 gcore_build_thread_register_notes.
2693 (find_signalled_thread): Delete.
2694 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
2695
2696 2021-01-29 Tom de Vries <tdevries@suse.de>
2697
2698 PR breakpoints/26063
2699 * infrun.c (process_event_stop_test): Reset
2700 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
2701 changed.
2702
2703 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2704
2705 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
2706 assert. Extend the header comment.
2707
2708 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2709
2710 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
2711 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
2712 * tui/tui-data.h (TUI_STATUS_WIN): Define.
2713 (tui_locator_win_info_ptr): Delete declaration.
2714 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
2715 (tui_disasm_window::set_contents): Fetch state from tui_location
2716 global.
2717 (tui_get_begin_asm_address): Likewise.
2718 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
2719 for locator window.
2720 (get_locator_window): Delete.
2721 (initialize_known_windows): Treat locator window just like all the
2722 rest.
2723 * tui/tui-source.c: Add 'tui/tui-location.h' include.
2724 (tui_source_window::set_contents): Fetch state from tui_location
2725 global.
2726 (tui_source_window::showing_source_p): Likewise.
2727 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
2728 (_locator): Delete.
2729 (tui_locator_win_info_ptr): Delete.
2730 (tui_locator_window::make_status_line): Fetch state from
2731 tui_location global.
2732 (tui_locator_window::rerender): Remove check of 'handle',
2733 reindent function body.
2734 (tui_locator_window::set_locator_fullname): Delete.
2735 (tui_locator_window::set_locator_info): Delete.
2736 (tui_update_locator_fullname): Delete.
2737 (tui_show_frame_info): Likewise.
2738 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
2739 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
2740 tui/tui-location.h and renamed to
2741 tui_location_tracker::set_location.
2742 (tui_locator_window::set_locator_fullname): Moved to
2743 tui/tui-location.h and renamed to
2744 tui_location_tracker::set_fullname.
2745 (tui_locator_window::full_name): Delete.
2746 (tui_locator_window::proc_name): Delete.
2747 (tui_locator_window::line_no): Delete.
2748 (tui_locator_window::addr): Delete.
2749 (tui_locator_window::gdbarch): Delete.
2750 (tui_update_locator_fullname): Delete declaration.
2751 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
2752 for locator window.
2753 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
2754 (tui_display_main): Call function on tui_location directly.
2755 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
2756 * tui/tui-location.c: New file.
2757 * tui/tui-location.h: New file.
2758
2759 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2760
2761 * gdbtypes.h (get_type_arch): Rename to...
2762 (struct type) <arch>: ... this, update all users.
2763
2764 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
2765
2766 * gdbtypes.h (struct type) <arch>: Rename to...
2767 <arch_owner>: ... this, update all users.
2768 <objfile>: Rename to...
2769 <objfile_owner>: ... this, update all users.
2770
2771 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
2772
2773 * gdbcmd.h (execute_command_to_string): Update comment.
2774 * top.c (execute_command_to_string): Update header comment.
2775
2776 2021-01-28 Tom de Vries <tdevries@suse.de>
2777
2778 PR breakpoints/27205
2779 * breakpoint.c (create_longjmp_master_breakpoint_probe)
2780 (create_longjmp_master_breakpoint_names): New function, factored out
2781 of ...
2782 (create_longjmp_master_breakpoint): ... here. Only try to install
2783 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
2784 breakpoint in libc.so failed.
2785
2786 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
2787
2788 PR gdb/27133
2789 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
2790 unique_ptr is released when the wrapped pointer is kept for later
2791 use.
2792
2793 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
2794
2795 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
2796 BLR and BR instructions.
2797 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
2798 (enum aarch64_masks): New.
2799
2800 2021-01-26 Tom Tromey <tromey@adacore.com>
2801
2802 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
2803 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
2804 (windows_init_thread_list, windows_nat::handle_load_dll)
2805 (windows_nat::handle_unload_dll, windows_nat_target::resume)
2806 (windows_nat_target::resume)
2807 (windows_nat_target::get_windows_debug_event)
2808 (windows_nat_target::interrupt, windows_xfer_memory)
2809 (windows_nat_target::close): Update.
2810 * nat/windows-nat.c (DEBUG_EVENTS): Use
2811 debug_prefixed_printf_cond.
2812 (matching_pending_stop, fetch_pending_stop)
2813 (continue_last_debug_event): Update.
2814
2815 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
2816
2817 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
2818 elfcore_write_file_note.
2819
2820 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
2821
2822 * arc-tdep.c (arc_add_reggroups): New function.
2823 (arc_gdbarch_init): Call arc_add_reggroups.
2824
2825 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
2826
2827 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
2828
2829 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
2830 Simon Marchi <simon.marchi@polymtl.ca>
2831 Tom de Vries <tdevries@suse.de>
2832
2833 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
2834 DW_AT_ranges.
2835
2836 2021-01-25 Tom Tromey <tromey@adacore.com>
2837
2838 * dwarf2/read.c (get_mpz): New function.
2839 (get_dwarf2_rational_constant): Use it.
2840
2841 2021-01-25 Tom Tromey <tromey@adacore.com>
2842
2843 * ada-lang.c (resolve_subexp): Handle array context.
2844
2845 2021-01-23 Tom Tromey <tom@tromey.com>
2846
2847 PR compile/25575
2848 * compile/compile-loc2c.c (note_register): New function.
2849 (pushf_register_address, pushf_register): Use it.
2850
2851 2021-01-23 Tom Tromey <tom@tromey.com>
2852
2853 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
2854 Change type of "registers_used".
2855 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
2856 * dwarf2/loc.c (dwarf2_compile_property_to_c)
2857 (locexpr_generate_c_location, loclist_generate_c_location): Change
2858 type of "registers_used".
2859 * compile/compile.h (compile_dwarf_expr_to_c)
2860 (compile_dwarf_bounds_to_c): Update.
2861 * compile/compile-loc2c.c (pushf_register_address)
2862 (pushf_register, do_compile_dwarf_expr_to_c)
2863 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
2864 of "registers_used".
2865 * compile/compile-c.h (generate_c_for_variable_locations):
2866 Update.
2867 * compile/compile-c-symbols.c (generate_vla_size)
2868 (generate_c_for_for_one_variable): Change type of
2869 "registers_used".
2870 (generate_c_for_variable_locations): Return std::vector.
2871 * compile/compile-c-support.c (generate_register_struct): Change
2872 type of "registers_used".
2873 (compute): Update.
2874
2875 2021-01-23 Tom Tromey <tom@tromey.com>
2876
2877 * compile/compile-internal.h (class compile_instance)
2878 <set_arguments>: Change return type.
2879 * compile/compile.c (compile_to_object): Remove call to reset.
2880 (compile_instance::set_arguments): Change return type.
2881
2882 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2883
2884 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
2885 * gdbtypes.h (struct type) <set_owner>: Add asserts.
2886
2887 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
2888
2889 * Makefile.in (SELFTESTS_SRCS): Add
2890 unittests/gdb_tilde_expand-selftests.c.
2891 * unittests/gdb_tilde_expand-selftests.c: New file.
2892
2893 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2894
2895 PR cli/25956
2896 * NEWS: Mention new command.
2897 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
2898 (version_style): Define.
2899 (cli_style_option::cli_style_option): Add intensity parameter, and
2900 use as appropriate.
2901 (_initialize_cli_style): Register version style set/show commands.
2902 * cli/cli-style.h (cli_style_option): Add intensity parameter.
2903 (version_style): Declare.
2904 * top.c (print_gdb_version): Use version_stype, and styled_string
2905 to print the GDB version string.
2906
2907 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
2908
2909 * utils.c (emit_style_escape): Only emit an escape sequence if the
2910 requested style is different than the current applied style.
2911 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
2912 current applied_style.
2913 (fputs_styled): Remove is_default check.
2914 (fputs_styled_unfiltered): Likewise.
2915 (vfprintf_styled_no_gdbfmt): Likewise.
2916
2917 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2918
2919 * remote.h (remote_debug_printf): New.
2920 (remote_debug_printf_nofunc): New.
2921 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
2922 * remote.c: Use above macros throughout file.
2923
2924 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2925
2926 * remote.h (remote_debug): Change to bool.
2927 * remote.c (remote_debug): Change to bool.
2928 (_initialize_remote): Adjust.
2929
2930 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2931
2932 * target.h (remote_debug): Move to...
2933 * remote.h (remote_debug): ... here.
2934 * top.c (remote_debug): Move to...
2935 * remote.c (remote_debug): ... here.
2936 * remote-sim.c: Include remote.h.
2937
2938 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2939
2940 * cli/cli-cmds.c (show_remote_debug): Remove.
2941 (show_remote_timeout): Remove.
2942 (_initialize_cli_cmds): Don't register commands.
2943 * remote.c (show_remote_debug): Move here.
2944 (show_remote_timeout): Move here.
2945 (_initialize_remote): Register commands.
2946
2947 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2948
2949 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
2950 type::objfile method instead.
2951
2952 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
2953
2954 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
2955 use the type::is_objfile_owned method.
2956
2957 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
2958
2959 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
2960 (TYPE_OWNER): Remove.
2961 (TYPE_OBJFILE): Adjust.
2962 (struct main_type) <flag_objfile_owned>: Rename to...
2963 <m_flag_objfile_owned>: ... this.
2964 <owner>: Rename to...
2965 <m_owner>: ... this.
2966 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
2967 methods.
2968 (TYPE_ALLOC): Adjust.
2969 * gdbtypes.c (alloc_type): Adjust.
2970 (alloc_type_arch): Adjust.
2971 (alloc_type_copy): Adjust.
2972 (get_type_arch): Adjust.
2973 (smash_type): Adjust.
2974 (lookup_array_range_type): Adjust.
2975 (recursive_dump_type): Adjust.
2976 (copy_type_recursive): Adjust.
2977 * compile/compile-c-types.c (convert_func): Adjust.
2978 (convert_type_basic): Adjust.
2979 * compile/compile-cplus-types.c (compile_cplus_convert_func):
2980 Adjust.
2981 * language.c
2982 (language_arch_info::type_and_symbol::alloc_type_symbol):
2983 Adjust.
2984
2985 2021-01-21 Luis Machado <luis.machado@linaro.org>
2986
2987 * coffread.c (enter_linenos): Passing string to complaint.
2988 * valops.c (value_assign): Make array view.
2989
2990 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
2991
2992 * auto-load.h (debug_auto_load): Move here.
2993 (auto_load_debug_printf): New.
2994 * auto-load.c: Use auto_load_debug_printf.
2995 (debug_auto_load): Move to header.
2996 * linux-thread-db.c (try_thread_db_load): Use
2997 auto_load_debug_printf.
2998 * main.c (captured_main_1): Likewise.
2999
3000 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3001
3002 * f-valprint.c (f77_array_offset_tbl): Remove.
3003
3004 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3005
3006 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
3007
3008 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3009
3010 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
3011 of gdb_select.
3012
3013 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
3014
3015 PR python/19151
3016 * python/py-breakpoint.c (bppy_get_location): Handle
3017 bp_hardware_breakpoint.
3018 (bppy_init): Likewise.
3019 (gdbpy_breakpoint_created): Likewise.
3020
3021 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
3022
3023 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
3024
3025 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3026
3027 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
3028 (_initialize_gdb_bfd): Adjust.
3029
3030 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3031
3032 PR gdb/26828
3033 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
3034
3035 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3036
3037 * dwarf2/read.c (follow_die_offset): Add logging.
3038 (dwarf2_per_objfile::age_comp_units): Add logging.
3039
3040 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
3041
3042 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
3043 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
3044 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
3045 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
3046 * arm-tdep.c (struct frame_unwind): Make static.
3047 * auto-load.c (auto_load_safe_path_vec): Make static.
3048 * csky-tdep.c (csky_stub_unwind): Make static.
3049 * gdbarch.c (gdbarch_data_registry): Make static.
3050 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
3051 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
3052 * i386-tdep.c (i386_frame_setup_skip_insns,
3053 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
3054 Make static.
3055 * infrun.c (observer_mode): Make static.
3056 * linux-nat.c (sigchld_action): Make static.
3057 * linux-thread-db.c (thread_db_list): Make static.
3058 * maint-test-options.c (maintenance_test_options_list):
3059 * mep-tdep.c (mep_csr_registers): Make static.
3060 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
3061 (stats): Make static.
3062 * nat/linux-osdata.c (struct osdata_type): Make static.
3063 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
3064 * progspace.c (last_program_space_num): Make static.
3065 * python/py-param.c (struct parm_constant): Remove struct type
3066 name.
3067 (parm_constants): Make static.
3068 * python/py-record-btrace.c (btpy_list_methods): Make static.
3069 * python/py-record.c (recpy_gap_type): Make static.
3070 * record.c (record_goto_cmdlist): Make static.
3071 * regcache.c (regcache_descr_handle): Make static.
3072 * registry.h (DEFINE_REGISTRY): Make definition static.
3073 * symmisc.c (std_in, std_out, std_err): Make static.
3074 * top.c (previous_saved_command_line): Make static.
3075 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
3076 static.
3077 * unittests/command-def-selftests.c (nr_duplicates,
3078 nr_invalid_prefixcmd, lists): Make static.
3079 * unittests/observable-selftests.c (test_notification): Make
3080 static.
3081 * unittests/optional/assignment/1.cc (counter): Make static.
3082 * unittests/optional/assignment/2.cc (counter): Make static.
3083 * unittests/optional/assignment/3.cc (counter): Make static.
3084 * unittests/optional/assignment/4.cc (counter): Make static.
3085 * unittests/optional/assignment/5.cc (counter): Make static.
3086 * unittests/optional/assignment/6.cc (counter): Make static.
3087
3088 2021-01-20 Joel Sherrill <joel@rtems.org>
3089
3090 PR gdb/27219
3091 * remote.c (struct remote_thread_info) <resume_state>: Rename
3092 to...
3093 <get_resume_state>: ... this.
3094 (remote_target::resume): Adjust.
3095 (remote_target::commit_resume): Adjust.
3096 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
3097
3098 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
3099 Tom Tromey <tom@tromey.com>
3100
3101 * stap-probe.c (stap_parse_single_operand): Handle '!'
3102 operator.
3103 (stap_parse_argument_conditionally): Likewise.
3104 Skip spaces after processing open-parenthesis sub-expression.
3105 (stap_parse_argument_1): Skip spaces after call to
3106 stap_parse_argument_conditionally.
3107 Handle case when right-side expression is a parenthesized
3108 sub-expression.
3109 Skip spaces after call to stap_parse_argument_1.
3110
3111 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
3112
3113 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
3114
3115 2021-01-19 Luis Machado <luis.machado@linaro.org>
3116
3117 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
3118 memory and save data.
3119 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
3120 (trad_frame_set_unknown, trad_frame_set_value_bytes)
3121 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3122 (trad_frame_value_bytes_p): Remove.
3123 (trad_frame_reset_saved_regs): Adjust documentation.
3124 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
3125 constructor and reset the state of the registers.
3126 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
3127 (trad_frame_value_bytes_p, trad_frame_set_value)
3128 (trad_frame_set_realreg, trad_frame_set_addr)
3129 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
3130 (trad_frame_set_reg_realreg): Update to call member function.
3131 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
3132 (trad_frame_get_prev_register): Likewise.
3133
3134 * aarch64-tdep.c (aarch64_analyze_prologue)
3135 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
3136 (aarch64_prologue_prev_register): Update to use member functions.
3137 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
3138 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
3139 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
3140 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
3141 (arm_make_epilogue_frame_cache): Likewise.
3142 * avr-tdep.c (avr_frame_unwind_cache)
3143 (avr_frame_prev_register): Likewise.
3144 * cris-tdep.c (cris_scan_prologue): Likewise.
3145 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
3146 * frv-tdep.c (frv_analyze_prologue): Likewise.
3147 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
3148 * lm32-tdep.c (lm32_frame_cache): Likewise.
3149 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3150 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3151 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
3152 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
3153 (reset_saved_regs): Adjust to set realreg.
3154 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
3155 call member functions.
3156 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
3157 * s390-tdep.c (s390_prologue_frame_unwind_cache)
3158 (s390_backchain_frame_unwind_cache): Likewise.
3159 * score-tdep.c (score7_analyze_prologue)
3160 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
3161 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
3162 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
3163 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
3164 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
3165 * tilegx-tdep.c (tilegx_analyze_prologue)
3166 (tilegx_frame_cache): Likewise.
3167 * v850-tdep.c (v850_frame_cache): Likewise.
3168 * vax-tdep.c (vax_frame_cache): Likewise.
3169
3170 2021-01-19 Luis Machado <luis.machado@linaro.org>
3171
3172 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
3173 of buffer + length.
3174 (put_frame_register_bytes): Likewise.
3175 Adjust documentation.
3176 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
3177 (safe_frame_unwind_memory): Likewise.
3178 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
3179 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
3180 gdb::array_view.
3181 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
3182 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
3183 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
3184 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
3185 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
3186 * dwarf2/loc.c (rw_pieced_value): Likewise.
3187 * hppa-tdep.c (hppa_frame_cache): Likewise.
3188 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
3189 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
3190 * i386-linux-tdep.c (i386_linux_sigtramp_start)
3191 (i386_linux_rt_sigtramp_start): Likewise.
3192 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
3193 * i386-tdep.c (i386_register_to_value): Likewise.
3194 * i387-tdep.c (i387_register_to_value): Likewise.
3195 * ia64-tdep.c (ia64_register_to_value): Likewise.
3196 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
3197 (m32r_linux_rt_sigtramp_start): Likewise.
3198 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
3199 * m68k-tdep.c (m68k_register_to_value): Likewise.
3200 * mips-tdep.c (mips_register_to_value)
3201 (mips_value_to_register): Likewise.
3202 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
3203 (ppcfbsd_sigtramp_frame_cache): Likewise.
3204 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
3205 (ppcobsd_sigtramp_frame_cache): Likewise.
3206 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
3207 (rs6000_register_to_value): Likewise.
3208 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3209 * tramp-frame.c (tramp_frame_start): Likewise.
3210 * valops.c (value_assign): Likewise.
3211
3212 2021-01-19 Luis Machado <luis.machado@linaro.org>
3213
3214 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
3215 array_view.
3216 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
3217 instead of buffer and size.
3218 (trad_frame_set_reg_value_bytes): Likewise.
3219 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
3220 (trad_frame_set_value_bytes): Likewise.
3221
3222 2021-01-18 Mike Frysinger <vapier@gentoo.org>
3223
3224 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
3225
3226 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
3227
3228 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
3229 (riscv_fbsd_gregset): Use riscv_supply_regset.
3230 (riscv_fbsd_fpregset): Likewise.
3231 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
3232 (riscv_linux_fregset): Likewise.
3233 * riscv-tdep.c (riscv_supply_regset): Define new function.
3234 * riscv-tdep.h (riscv_supply_regset): Declare new function.
3235
3236 2021-01-18 Tom de Vries <tdevries@suse.de>
3237
3238 PR tdep/27172
3239 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
3240 New macro.
3241 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
3242 for SEGV_BNDERR.
3243
3244 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3245
3246 * remote.c (class remote_target) <remote_hostio_send_command,
3247 remote_hostio_parse_result>: Constify parameter.
3248 (remote_hostio_parse_result): Likewise.
3249 (remote_target::remote_hostio_send_command): Adjust.
3250 (remote_target::remote_hostio_pread_vFile): Adjust.
3251 (remote_target::fileio_readlink): Adjust.
3252 (remote_target::fileio_fstat): Adjust.
3253
3254 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3255
3256 * remote.c (remote_target::start_remote): Move wait_status to
3257 narrower scope.
3258
3259 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3260
3261 * remote.c (class remote_target):
3262 <add_current_inferior_and_thread>: Constify parameter.
3263 (stop_reply_extract_thread): Likewise.
3264 (remote_target::get_current_thread): Likewise.
3265 (remote_target::add_current_inferior_and_thread): Likewise.
3266
3267 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
3268
3269 * remote.c (class remote_target)
3270 <remote_unpack_thread_info_response,
3271 parse_threadlist_response>: Constify parameter and/or return
3272 value and or local variable.
3273 (stub_unpack_int): Likewise.
3274 (unpack_nibble): Likewise.
3275 (unpack_byte): Likewise.
3276 (unpack_int): Likewise.
3277 (unpack_string): Likewise.
3278 (unpack_threadid): Likewise.
3279 (remote_target::remote_unpack_thread_info_response): Likewise.
3280 (remote_target::parse_threadlist_response): Likewise.
3281
3282 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
3283
3284 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
3285
3286 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
3287
3288 * MAINTAINERS (Write After Approval): Add myself.
3289
3290 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3291
3292 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
3293 because is_trivially_default_constructible was first implemented with
3294 gcc-5.
3295
3296 2021-01-14 Tom de Vries <tdevries@suse.de>
3297
3298 PR breakpoints/27151
3299 * objfiles.h (in_plt_section): Handle .plt.sec.
3300
3301 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3302
3303 PR gdb/26819
3304 * remote.c
3305 (remote_target::select_thread_for_ambiguous_stop_reply): New
3306 member function.
3307 (remote_target::process_stop_reply): Call
3308 select_thread_for_ambiguous_stop_reply.
3309
3310 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3311
3312 * record-btrace.c (class record_btrace_target): Remove.
3313 (record_btrace_target::commit_resume): Remove.
3314 * record-full.c (class record_full_target): Remove.
3315 (record_full_target::commit_resume): Remove.
3316
3317 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
3318
3319 * remote.c (enum class resume_state): New.
3320 (struct resumed_pending_vcont_info): New.
3321 (struct remote_thread_info) <resume_state, set_not_resumed,
3322 set_resumed_pending_vcont, resumed_pending_vcont_info,
3323 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
3324 New.
3325 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
3326 (remote_target::remote_add_thread): Adjust.
3327 (remote_target::process_initial_stop_replies): Adjust.
3328 (remote_target::resume): Adjust.
3329 (remote_target::commit_resume): Rely on state in
3330 remote_thread_info and not on tp->executing.
3331 (remote_target::process_stop_reply): Adjust.
3332
3333 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3334
3335 * arc-tdep.h (arc_debug_printf): New.
3336 * arc-tdep.c: Use arc_debug_printf.
3337 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
3338 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
3339 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
3340
3341 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3342
3343 * arc-tdep.h (arc_debug): Change type to bool.
3344 * arc-tdep.c (arc_debug): Change type to bool.
3345 (arc_analyze_prologue): Adjust.
3346 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
3347 * arc-linux-nat.c (ps_get_thread_area): Adjust.
3348
3349 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3350
3351 * auto-load.c (auto_load_objfile_script_1): Use bool.
3352 (execute_script_contents): Use bool.
3353
3354 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3355
3356 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
3357 comment here.
3358 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
3359 comment to header.
3360 * extension-priv.h (struct extension_language_script_ops)
3361 <auto_load_enabled>: Return bool.
3362 * extension.h (ext_lang_auto_load_enabled): Return bool, move
3363 comment here.
3364 * extension.c (ext_lang_auto_load_enabled): Return bool, move
3365 comment to header.
3366 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
3367 move comment here.
3368 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
3369 move comment to header.
3370 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
3371 move comment here.
3372 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
3373 move comment to header.
3374
3375 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3376
3377 * auto-load.h (file_is_auto_load_safe): Change return type to
3378 bool, move comment here.
3379 * auto-load.c (file_is_auto_load_safe): Change return type and
3380 advice_printed to bool. Move comment to header.
3381
3382 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3383
3384 * jit.c (jit_debug_printf): New, use throughout file.
3385
3386 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3387
3388 * infrun.c (normal_stop): Fix indentation.
3389
3390 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3391
3392 * top.h (readnow_symbol_files, readnever_symbol_files): Move
3393 declarations to ...
3394 * symfile.h: ... here.
3395 * symfile.c: Update doc.
3396
3397 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3398
3399 * target.h (baud_rate, serial_parity): Move declarations...
3400 * serial.h: ... here.
3401 * main.c: Include serial.h.
3402 * serial.c (baud_rate, serial_parity): Update doc.
3403
3404 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3405
3406 * top.c (pre_init_ui_hook): Remove.
3407
3408 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3409
3410 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
3411 (aarch64_vnv_type): Add "bf" type in h field of v registers.
3412 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
3413 * features/aarch64-fpu.xml: Add bfloat16 type.
3414
3415 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3416
3417 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
3418
3419 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
3420
3421 * f-exp.y (dot_ops): Rename to...
3422 (fortran_operators): ...this. Add a header comment. Add symbol
3423 based operators.
3424 (yylex): Update to use fortran_operators not dot_ops. Remove
3425 special handling for '**', this is now included in
3426 fortran_operators.
3427
3428 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3429
3430 * arch/aarch64-insn.h (aarch64_debug_printf): New.
3431 * arch/aarch64-insn.c: Use aarch64_debug_printf.
3432 * aarch64-tdep.c: Use aarch64_debug_printf.
3433
3434 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3435
3436 * solib-aix.c (solib_aix_debug_printf): New, use throughout
3437 file.
3438
3439 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
3440
3441 * jit.c (jit_debug): Change type to bool.
3442 (_initialize_jit): Adjust.
3443
3444 2021-01-09 Tom Tromey <tom@tromey.com>
3445
3446 PR compile/23672
3447 * compile/compile.c (compile_to_object): Avoid crash when
3448 osabi_triplet_regexp returns NULL.
3449
3450 2021-01-09 Tom Tromey <tom@tromey.com>
3451
3452 * tracepoint.h (class collection_list) <append_exp>: Take a
3453 std::string.
3454 * tracepoint.c (collection_list::append_exp): Take a std::string.
3455 (encode_actions_1): Update.
3456
3457 2021-01-08 Tom Tromey <tromey@adacore.com>
3458
3459 * parse.c (parse_expression): Add void_context_p parameter. Use
3460 parse_exp_in_context.
3461 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
3462 parse_expression.
3463 (print_command, call_command): Update.
3464 * expression.h (parse_expression): Add void_context_p parameter.
3465
3466 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3467
3468 * value.c (set_value_component_location): Adjust the VALUE_LVAL
3469 for internalvar components that have a dynamic location.
3470
3471 2021-01-08 Tom de Vries <tdevries@suse.de>
3472
3473 PR gdb/26881
3474 * breakpoint.c (create_exception_master_breakpoint_probe)
3475 (create_exception_master_breakpoint_hook): Factor out
3476 of ...
3477 (create_exception_master_breakpoint): ... here. Only try to install
3478 the master exception breakpoint in objfile.debug using the
3479 _Unwind_DebugHook method, if the install using probes in objfile
3480 failed.
3481
3482 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3483
3484 * f-lang.c (fortran_value_subarray): Call value_from_component.
3485
3486 2021-01-07 Mike Frysinger <vapier@gentoo.org>
3487
3488 * remote-sim.c: Include memory-map.h.
3489 (gdbsim_target): Define memory_map override.
3490 (gdbsim_target::memory_map): Define.
3491
3492 2021-01-07 Tom Tromey <tromey@adacore.com>
3493
3494 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
3495
3496 2021-01-07 Tom Tromey <tromey@adacore.com>
3497
3498 * ada-lang.c (add_component_interval): Start loop using vector's
3499 updated size.
3500
3501 2021-01-06 Tom Tromey <tromey@adacore.com>
3502
3503 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
3504 Do not cast result.
3505 * valarith.c (fixed_point_binop): Handle multiplication
3506 and division specially.
3507 * valops.c (value_to_gdb_mpq): New function.
3508 (value_cast_to_fixed_point): Use it.
3509
3510 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3511
3512 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3513 Call wnoutrefresh instead of tui_win_info::refresh_window.
3514
3515 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3516
3517 * tui/tui-source.c (tui_source_window::show_line_number):
3518 Redraw second space after line number.
3519
3520 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
3521
3522 PR tui/26927
3523 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
3524 Fix source pad size in prefresh.
3525 (tui_source_window_base::show_source_content): Grow source pad
3526 if necessary.
3527
3528 2021-01-04 Mike Frysinger <vapier@gentoo.org>
3529
3530 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
3531 (bfin_frame_align): Use align_down.
3532
3533 2021-01-04 Tom de Vries <tdevries@suse.de>
3534
3535 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
3536 terminators that do not terminate anything.
3537
3538 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3539
3540 * debug.c (debug_print_depth): New.
3541 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
3542 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
3543 * infrun.c (start_step_over): Use
3544 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3545 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
3546 INFRUN_SCOPED_DEBUG_START_END.
3547 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
3548
3549 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3550
3551 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
3552
3553 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
3554
3555 * utils.c (vfprintf_unfiltered): Print timestamp only when
3556 previous debug output ended with a newline.
3557
3558 2021-01-04 Luis Machado <luis.machado@linaro.org>
3559
3560 Update all users of trad_frame_saved_reg to use the new member
3561 functions.
3562
3563 Remote all struct keywords from declarations of trad_frame_saved_reg
3564 types, except on forward declarations.
3565
3566 * aarch64-tdep.c: Update.
3567 * alpha-mdebug-tdep.c: Update.
3568 * alpha-tdep.c: Update.
3569 * arc-tdep.c: Update.
3570 * arm-tdep.c: Update.
3571 * avr-tdep.c: Update.
3572 * cris-tdep.c: Update.
3573 * csky-tdep.c: Update.
3574 * frv-tdep.c: Update.
3575 * hppa-linux-tdep.c: Update.
3576 * hppa-tdep.c: Update.
3577 * hppa-tdep.h: Update.
3578 * lm32-tdep.c: Update.
3579 * m32r-linux-tdep.c: Update.
3580 * m32r-tdep.c: Update.
3581 * m68hc11-tdep.c: Update.
3582 * mips-tdep.c: Update.
3583 * moxie-tdep.c: Update.
3584 * riscv-tdep.c: Update.
3585 * rs6000-tdep.c: Update.
3586 * s390-linux-tdep.c: Update.
3587 * s390-tdep.c: Update.
3588 * score-tdep.c: Update.
3589 * sparc-netbsd-tdep.c: Update.
3590 * sparc-sol2-tdep.c: Update.
3591 * sparc64-fbsd-tdep.c: Update.
3592 * sparc64-netbsd-tdep.c: Update.
3593 * sparc64-obsd-tdep.c: Update.
3594 * sparc64-sol2-tdep.c: Update.
3595 * tilegx-tdep.c: Update.
3596 * v850-tdep.c: Update.
3597 * vax-tdep.c: Update.
3598
3599 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
3600 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
3601
3602 * trad-frame.c: Update.
3603 Remove TF_REG_* enum.
3604 (trad_frame_alloc_saved_regs): Add a static assertion to check for
3605 a trivially-constructible struct.
3606 (trad_frame_reset_saved_regs): Adjust to use member function.
3607 (trad_frame_value_p): Likewise.
3608 (trad_frame_addr_p): Likewise.
3609 (trad_frame_realreg_p): Likewise.
3610 (trad_frame_value_bytes_p): Likewise.
3611 (trad_frame_set_value): Likewise.
3612 (trad_frame_set_realreg): Likewise.
3613 (trad_frame_set_addr): Likewise.
3614 (trad_frame_set_unknown): Likewise.
3615 (trad_frame_set_value_bytes): Likewise.
3616 (trad_frame_get_prev_register): Likewise.
3617 * trad-frame.h: Update.
3618 (trad_frame_saved_reg_kind): New enum.
3619 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
3620 <m_kind, m_reg>: New member fields.
3621 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
3622 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
3623 <is_addr, is_unknown, is_value_bytes>: New member functions.
3624
3625 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
3626
3627 * target-float.c: Fix typos.
3628
3629 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
3630
3631 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
3632
3633 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3634
3635 * gdbarch.sh: Update copyright year range.
3636
3637 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3638
3639 Update copyright year range in copyright header of all GDB files.
3640
3641 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3642
3643 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
3644 to the list of directories to update.
3645
3646 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3647
3648 * top.c (print_gdb_version): Update copyright year.
3649
3650 2021-01-01 Joel Brobecker <brobecker@adacore.com>
3651
3652 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
3653
3654 For older changes see ChangeLog-2020.
3655 \f
3656 Local Variables:
3657 mode: change-log
3658 left-margin: 8
3659 fill-column: 74
3660 version-control: never
3661 coding: utf-8
3662 End: