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