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