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