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