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