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