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