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