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