]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
m68k: bsd: Change type from char * to gdb_byte *
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bc107784
KR
12020-03-14 Kamil Rytarowski <n54@gmx.com>
2
3 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
4 gdb_byte *.
5 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
6 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
7 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
8
01a80117
KR
92020-03-14 Kamil Rytarowski <n54@gmx.com>
10
11 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12 nbsd_nat_target instead of inf_ptrace_target.
13 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
14 nbsd_nat_target.
15
f90280ca
KR
162020-03-14 Kamil Rytarowski <n54@gmx.com>
17
18 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
19 register_t.
20
6def66f1
KR
212020-03-14 Kamil Rytarowski <n54@gmx.com>
22
23 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
24 it to the ptrace call.
25 * alpha-bsd-nat.c (store_registers): Likewise.
26
66eaca97
KR
272020-03-14 Kamil Rytarowski <n54@gmx.com>
28
29 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
30 includes.
31 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
32 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
33 fill_fpregset): Likewise.
34
4fed520b
KR
352020-03-14 Kamil Rytarowski <n54@gmx.com>
36
37 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
38 nbsd_nat_target instead of inf_ptrace_target.
39 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
40 nbsd_nat_target.
41
2190cf06
KR
422020-03-14 Kamil Rytarowski <n54@gmx.com>
43
44 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
45 register_t.
46
75c56d3d
KR
472020-03-14 Kamil Rytarowski <n54@gmx.com>
48
49 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
50 it to the ptrace call.
51 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
52 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
53 * arm-nbsd-nat.c (store_register): Likewise.
54 * arm-nbsd-nat.c (store_regs): Likewise.
55 * arm-nbsd-nat.c (store_fp_register): Likewise.
56 * arm-nbsd-nat.c (store_fp_regs): Likewise.
57
6018d381
KR
582020-03-14 Kamil Rytarowski <n54@gmx.com>
59
60 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
61 nbsd_nat_target instead of inf_ptrace_target.
62 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
63 nbsd_nat_target.
64
013f99f0
KR
652020-03-14 Kamil Rytarowski <n54@gmx.com>
66
67 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
68 it to the ptrace call.
69 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
70
12753073
KR
712020-03-14 Kamil Rytarowski <n54@gmx.com>
72
6227b330
KR
73 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
74 it to the ptrace call.
75 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
76
772020-03-14 Kamil Rytarowski <n54@gmx.com>
78
79 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
80 gdb_byte *.
12753073
KR
81 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
82
d5be5fa4
KR
832020-03-14 Kamil Rytarowski <n54@gmx.com>
84
85 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
86 instead of inf_ptrace_target.
87 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
88 nbsd_nat_target.
89
8110f842
KR
902020-03-14 Kamil Rytarowski <n54@gmx.com>
91
92 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
93 register_t.
94
52feded7
KR
952020-03-14 Kamil Rytarowski <n54@gmx.com>
96
97 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
98 register_t.
99
25567eee
KR
1002020-03-14 Kamil Rytarowski <n54@gmx.com>
101
102 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
103 register_t.
104
426a9c18
TT
1052020-03-13 Tom Tromey <tom@tromey.com>
106
107 * value.h (val_print): Don't declare.
108 * valprint.h (val_print_array_elements)
109 (val_print_scalar_formatted, generic_val_print): Don't declare.
110 * valprint.c (generic_val_print_array): Take a struct value.
111 (generic_val_print_ptr, generic_val_print_memberptr)
112 (generic_val_print_bool, generic_val_print_int)
113 (generic_val_print_char, generic_val_print_complex)
114 (generic_val_print): Remove.
115 (generic_value_print): Update.
116 (do_val_print): Remove unused parameters. Don't call
117 la_val_print.
118 (val_print): Remove.
119 (common_val_print): Update. Don't call value_check_printable.
120 (val_print_scalar_formatted, val_print_array_elements): Remove.
121 * rust-lang.c (rust_val_print): Remove.
122 (rust_language_defn): Update.
123 * p-valprint.c (pascal_val_print): Remove.
124 (pascal_value_print_inner): Update.
125 (pascal_object_print_val_fields, pascal_object_print_val):
126 Remove.
127 (pascal_object_print_static_field): Update.
128 * p-lang.h (pascal_val_print): Don't declare.
129 * p-lang.c (pascal_language_defn): Update.
130 * opencl-lang.c (opencl_language_defn): Update.
131 * objc-lang.c (objc_language_defn): Update.
132 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
133 * m2-lang.h (m2_val_print): Don't declare.
134 * m2-lang.c (m2_language_defn): Update.
135 * language.h (struct language_defn) <la_val_print>: Remove.
136 * language.c (unk_lang_value_print_inner): Rename. Change
137 argument types.
138 (unknown_language_defn, auto_language_defn): Update.
139 * go-valprint.c (go_val_print): Remove.
140 * go-lang.h (go_val_print): Don't declare.
141 * go-lang.c (go_language_defn): Update.
142 * f-valprint.c (f_val_print): Remove.
143 * f-lang.h (f_value_print): Don't declare.
144 * f-lang.c (f_language_defn): Update.
145 * d-valprint.c (d_val_print): Remove.
146 * d-lang.h (d_value_print): Don't declare.
147 * d-lang.c (d_language_defn): Update.
148 * cp-valprint.c (cp_print_value_fields)
149 (cp_print_value_fields_rtti, cp_print_value): Remove.
150 (cp_print_static_field): Update.
151 * c-valprint.c (c_val_print_array, c_val_print_ptr)
152 (c_val_print_struct, c_val_print_union, c_val_print_int)
153 (c_val_print_memberptr, c_val_print): Remove.
154 * c-lang.h (c_val_print_array, cp_print_value_fields)
155 (cp_print_value_fields_rtti): Don't declare.
156 * c-lang.c (c_language_defn, cplus_language_defn)
157 (asm_language_defn, minimal_language_defn): Update.
158 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
159 (ada_val_print_enum): Take a struct value.
160 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
161 (ada_val_print): Remove.
162 (ada_value_print_1): Update.
163 (printable_val_type): Remove.
164 * ada-lang.h (ada_val_print): Don't declare.
165 * ada-lang.c (ada_language_defn): Update.
166
42331a1e
TT
1672020-03-13 Tom Tromey <tom@tromey.com>
168
169 * valprint.c (do_val_print): Update.
170 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
171 a struct value.
172 (value_to_value_object_no_release): Declare.
173 * python/py-value.c (value_to_value_object_no_release): New
174 function.
175 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
176 struct value.
177 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
178 function.
179 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
180 a struct value.
181 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
182 Declare.
183 (gdbscm_apply_val_pretty_printer): Take a struct value.
184 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
185 value.
186 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
187 value.
188 * extension-priv.h (struct extension_language_ops)
189 <apply_val_pretty_printer>: Take a struct value.
190 * cp-valprint.c (cp_print_value): Create a struct value.
191 (cp_print_value): Update.
192
3a916a97
TT
1932020-03-13 Tom Tromey <tom@tromey.com>
194
195 * ada-valprint.c (print_field_values): Call common_val_print.
196
b59eac37
TT
1972020-03-13 Tom Tromey <tom@tromey.com>
198
199 * ada-valprint.c (val_print_packed_array_elements): Remove
200 bitoffset and val parameters. Call common_val_print.
201 (ada_val_print_string): Remove offset, address, and original_value
202 parameters.
203 (ada_val_print_array): Update.
204 (ada_value_print_array): New function.
205 (ada_value_print_1): Call it.
206
03371129
TT
2072020-03-13 Tom Tromey <tom@tromey.com>
208
209 * ada-valprint.c (ada_value_print): Use common_val_print.
210
2e088f8b
TT
2112020-03-13 Tom Tromey <tom@tromey.com>
212
213 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
214
39ef85a8
TT
2152020-03-13 Tom Tromey <tom@tromey.com>
216
217 * ada-valprint.c (ada_value_print_num): New function.
218 (ada_value_print_1): Use it.
219
b9fa6e07
TT
2202020-03-13 Tom Tromey <tom@tromey.com>
221
222 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
223
416595d6
TT
2242020-03-13 Tom Tromey <tom@tromey.com>
225
226 * ada-valprint.c (ada_value_print_ptr): New function.
227 (ada_value_print_1): Use it.
228
5b5e15ec
TT
2292020-03-13 Tom Tromey <tom@tromey.com>
230
231 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
232 call common_val_print.
233 (ada_val_print_1): Update.
234 (ada_value_print_1): New function.
235 (ada_value_print_inner): Rewrite.
236
fbf54e75
TT
2372020-03-13 Tom Tromey <tom@tromey.com>
238
239 * cp-valprint.c (cp_print_value_fields): Update.
240 (cp_print_value): New function.
241
64b653ca
TT
2422020-03-13 Tom Tromey <tom@tromey.com>
243
244 * m2-valprint.c (m2_value_print_inner): Use
245 cp_print_value_fields.
246 * cp-valprint.c (cp_print_value_fields): New function.
247 * c-valprint.c (c_value_print_struct): New function.
248 (c_value_print_inner): Use c_value_print_struct.
249 * c-lang.h (cp_print_value_fields): Declare.
250
6999f067
TT
2512020-03-13 Tom Tromey <tom@tromey.com>
252
253 * c-valprint.c (c_value_print_array): New function.
254 (c_value_print_inner): Use it.
255
ce80b8bd
TT
2562020-03-13 Tom Tromey <tom@tromey.com>
257
258 * c-valprint.c (c_value_print_memberptr): New function.
259 (c_value_print_inner): Use it.
260
2faac269
TT
2612020-03-13 Tom Tromey <tom@tromey.com>
262
263 * c-valprint.c (c_value_print_int): New function.
264 (c_value_print_inner): Use it.
265
da3e2c29
TT
2662020-03-13 Tom Tromey <tom@tromey.com>
267
268 * c-valprint.c (c_value_print_ptr): New function.
269 (c_value_print_inner): Use it.
270
50836231
TT
2712020-03-13 Tom Tromey <tom@tromey.com>
272
273 * c-valprint.c (c_value_print_inner): Rewrite.
274
4f412b6e
TT
2752020-03-13 Tom Tromey <tom@tromey.com>
276
277 * valprint.c (generic_value_print_complex): New function.
278 (generic_value_print): Use it.
279
f5354008
TT
2802020-03-13 Tom Tromey <tom@tromey.com>
281
282 * valprint.c (generic_val_print_float): Don't call
283 val_print_scalar_formatted.
284 (generic_val_print, generic_value_print): Update.
285
3eec3b05
TT
2862020-03-13 Tom Tromey <tom@tromey.com>
287
288 * valprint.c (generic_value_print_char): New function
289 (generic_value_print): Use it.
290
fdddfccb
TT
2912020-03-13 Tom Tromey <tom@tromey.com>
292
293 * valprint.c (generic_value_print_int): New function.
294 (generic_value_print): Use it.
295
6dde7521
TT
2962020-03-13 Tom Tromey <tom@tromey.com>
297
298 * valprint.c (generic_value_print_bool): New function.
299 (generic_value_print): Use it.
300
4112d2e6
TT
3012020-03-13 Tom Tromey <tom@tromey.com>
302
303 * valprint.c (generic_val_print_func): Simplify.
304 (generic_val_print, generic_value_print): Update.
305
65786af6
TT
3062020-03-13 Tom Tromey <tom@tromey.com>
307
308 * valprint.c (generic_val_print_flags): Remove.
309 (generic_val_print, generic_value_print): Update.
310 (val_print_type_code_flags): Add original_value parameter.
311
40f3ce18
TT
3122020-03-13 Tom Tromey <tom@tromey.com>
313
314 * valprint.c (generic_val_print): Update.
315 (generic_value_print): Update.
316 * valprint.c (generic_val_print_enum): Don't call
317 val_print_scalar_formatted.
318
2a5b130b
TT
3192020-03-13 Tom Tromey <tom@tromey.com>
320
321 * valprint.c (generic_value_print): Call generic_value_print_ptr.
322 * valprint.c (generic_value_print_ptr): New function.
323
abc66ce9
TT
3242020-03-13 Tom Tromey <tom@tromey.com>
325
326 * valprint.c (generic_value_print): Rewrite.
327
07a32858
TT
3282020-03-13 Tom Tromey <tom@tromey.com>
329
330 * p-valprint.c (pascal_object_print_value_fields)
331 (pascal_object_print_value): New functions.
332
64d64d3a
TT
3332020-03-13 Tom Tromey <tom@tromey.com>
334
335 * p-valprint.c (pascal_value_print_inner): Rewrite.
336
6a95a1f5
TT
3372020-03-13 Tom Tromey <tom@tromey.com>
338
339 * f-valprint.c (f_value_print_innner): Rewrite.
340
59fcdac6
TT
3412020-03-13 Tom Tromey <tom@tromey.com>
342
343 * m2-valprint.c (m2_print_unbounded_array): New overload.
344 (m2_print_unbounded_array): Update.
345 (m2_print_array_contents): Take a struct value.
346 (m2_value_print_inner): Rewrite.
347
d133c3e1
TT
3482020-03-13 Tom Tromey <tom@tromey.com>
349
350 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
351 (d_value_print_inner): New function.
352 * d-lang.h (d_value_print_inner): Declare.
353 * d-lang.c (d_language_defn): Use d_value_print_inner.
354
23b0f06b
TT
3552020-03-13 Tom Tromey <tom@tromey.com>
356
357 * go-valprint.c (go_value_print_inner): New function.
358 * go-lang.h (go_value_print_inner): Declare.
359 * go-lang.c (go_language_defn): Use go_value_print_inner.
360
5f56f7cb
TT
3612020-03-13 Tom Tromey <tom@tromey.com>
362
363 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
364 API.
365 (rust_val_print): Rewrite.
366 (rust_value_print_inner): New function, from rust_val_print.
367 (rust_language_defn): Use rust_value_print_inner.
368
26792ee0
TT
3692020-03-13 Tom Tromey <tom@tromey.com>
370
371 * ada-valprint.c (ada_value_print_inner): New function.
372 * ada-lang.h (ada_value_print_inner): Declare.
373 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
374
24051bbe
TT
3752020-03-13 Tom Tromey <tom@tromey.com>
376
377 * f-valprint.c (f_value_print_innner): New function.
378 * f-lang.h (f_value_print_innner): Declare.
379 * f-lang.c (f_language_defn): Use f_value_print_innner.
380
c0941be6
TT
3812020-03-13 Tom Tromey <tom@tromey.com>
382
383 * p-valprint.c (pascal_value_print_inner): New function.
384 * p-lang.h (pascal_value_print_inner): Declare.
385 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
386
62c4663d
TT
3872020-03-13 Tom Tromey <tom@tromey.com>
388
389 * m2-valprint.c (m2_value_print_inner): New function.
390 * m2-lang.h (m2_value_print_inner): Declare.
391 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
392
62182190
TT
3932020-03-13 Tom Tromey <tom@tromey.com>
394
395 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
396 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
397 * c-valprint.c (c_value_print_inner): New function.
398 * c-lang.h (c_value_print_inner): Declare.
399 * c-lang.c (c_language_defn, cplus_language_defn)
400 (asm_language_defn, minimal_language_defn): Use
401 c_value_print_inner.
402
1e592a8a
TT
4032020-03-13 Tom Tromey <tom@tromey.com>
404
405 * p-valprint.c (pascal_object_print_value_fields): Now static.
406 * p-lang.h (pascal_object_print_value_fields): Don't declare.
407
7fe471e9
TT
4082020-03-13 Tom Tromey <tom@tromey.com>
409
410 * c-valprint.c (c_val_print_array): Simplify.
411
d121c6ce
TT
4122020-03-13 Tom Tromey <tom@tromey.com>
413
414 * valprint.c (value_print_array_elements): New function.
415 * valprint.h (value_print_array_elements): Declare.
416
4dba70ee
TT
4172020-03-13 Tom Tromey <tom@tromey.com>
418
419 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
420 * mips-tdep.c (mips_print_register): Use
421 value_print_scalar_formatted.
422
4f9ae810
TT
4232020-03-13 Tom Tromey <tom@tromey.com>
424
425 * valprint.h (value_print_scalar_formatted): Declare.
426 * valprint.c (value_print_scalar_formatted): New function.
427
156bfec9
TT
4282020-03-13 Tom Tromey <tom@tromey.com>
429
430 * valprint.h (generic_value_print): Declare.
431 * valprint.c (generic_value_print): New function.
432
2b4e573d
TT
4332020-03-13 Tom Tromey <tom@tromey.com>
434
435 * valprint.c (do_val_print): Call la_value_print_inner, if
436 available.
437 * rust-lang.c (rust_language_defn): Update.
438 * p-lang.c (pascal_language_defn): Update.
439 * opencl-lang.c (opencl_language_defn): Update.
440 * objc-lang.c (objc_language_defn): Update.
441 * m2-lang.c (m2_language_defn): Update.
442 * language.h (struct language_defn) <la_value_print_inner>: New
443 member.
444 * language.c (unknown_language_defn, auto_language_defn): Update.
445 * go-lang.c (go_language_defn): Update.
446 * f-lang.c (f_language_defn): Update.
447 * d-lang.c (d_language_defn): Update.
448 * c-lang.c (c_language_defn, cplus_language_defn)
449 (asm_language_defn, minimal_language_defn): Update.
450 * ada-lang.c (ada_language_defn): Update.
451
a1f6a07c
TT
4522020-03-13 Tom Tromey <tom@tromey.com>
453
454 * c-valprint.c (c_value_print): Use common_val_print.
455
410cf315
TT
4562020-03-13 Tom Tromey <tom@tromey.com>
457
458 * cp-valprint.c (cp_print_static_field): Use common_val_print.
459
72a45c93
TT
4602020-03-13 Tom Tromey <tom@tromey.com>
461
462 * f-valprint.c (f77_print_array_1, f_val_print): Use
463 common_val_print.
464
040f66bd
TT
4652020-03-13 Tom Tromey <tom@tromey.com>
466
467 * riscv-tdep.c (riscv_print_one_register_info): Use
468 common_val_print.
469
a6e05a6c
TT
4702020-03-13 Tom Tromey <tom@tromey.com>
471
472 * mi/mi-main.c (output_register): Use common_val_print.
473
3444c526
TT
4742020-03-13 Tom Tromey <tom@tromey.com>
475
476 * infcmd.c (default_print_one_register_info): Use
477 common_val_print.
478
c2a44efe
TT
4792020-03-13 Tom Tromey <tom@tromey.com>
480
481 * valprint.h (common_val_print_checked): Declare.
482 * valprint.c (common_val_print_checked): New function.
483 * stack.c (print_frame_arg): Use common_val_print_checked.
484
b0c26e99
TT
4852020-03-13 Tom Tromey <tom@tromey.com>
486
487 * valprint.c (do_val_print): New function, from val_print.
488 (val_print): Use do_val_print.
489 (common_val_print): Use do_val_print.
490
ce3acbe9
TT
4912020-03-13 Tom Tromey <tom@tromey.com>
492
493 * valprint.c (value_print): Use scoped_value_mark.
494
96c7f873
TV
4952020-03-13 Tom de Vries <tdevries@suse.de>
496
497 PR symtab/25646
498 * psymtab.c (partial_symtab::partial_symtab): Don't set
499 globals_offset and statics_offset. Push element onto
500 current_global_psymbols and current_static_psymbols stacks.
501 (concat): New function.
502 (end_psymtab_common): Set globals_offset and statics_offset. Pop
503 element from current_global_psymbols and current_static_psymbols
504 stacks. Concat popped elements to global_psymbols and
505 static_symbols.
506 (add_psymbol_to_list): Use current_global_psymbols and
507 current_static_psymbols stacks.
508 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
509 current_static_psymbols fields.
510
6ba0a321
CB
5112020-03-12 Christian Biesinger <cbiesinger@google.com>
512
513 * corelow.c (sniff_core_bfd): Remove.
514 (class core_target) <m_core_vec>: Remove.
515 (core_target::core_target): Update.
516 (core_file_fns): Remove.
517 (deprecated_add_core_fns): Remove.
518 (default_core_sniffer): Remove.
519 (sniff_core_bfd): Remove.
520 (default_check_format): Remove.
521 (gdb_check_format): Remove.
522 (core_target_open): Update.
523 (core_target::get_core_register_section): Update.
524 (get_core_registers_cb): Update.
525 (core_target::fetch_registers): Update.
526 * gdbcore.h (struct core_fns): Remove.
527 (deprecated_add_core_fns): Remove.
528 (default_core_sniffer): Remove.
529 (default_check_format): Remove.
530
227031b2
TT
5312020-03-12 Tom Tromey <tom@tromey.com>
532
533 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
534 CORE_ADDR.
535 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
536
53807e9f
TT
5372020-03-12 Tom Tromey <tom@tromey.com>
538
539 * remote.c (remote_target::download_tracepoint)
540 (remote_target::enable_tracepoint)
541 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
542 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
543 sprintf_vma.
544
64f25102
TT
5452020-03-12 Tom Tromey <tom@tromey.com>
546
547 * symfile-mem.c: Update CORE_ADDR size assert.
548
272cd5a3
SM
5492020-03-12 Simon Marchi <simon.marchi@efficios.com>
550
551 * selftest.m4: Move to gdbsupport/.
552 * acinclude.m4: Update path to selftest.m4.
553
74cd3f9d
SM
5542020-03-12 Simon Marchi <simon.marchi@efficios.com>
555
556 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
557 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
558 gdbarch-selfselftests.c and selftest-arch.c.
559 (SUBDIR_UNITTESTS_OBS): Rename to...
560 (SELFTESTS_OBS): ... this.
561 (COMMON_SFILES): Remove disasm-selftests.c and
562 gdbarch-selftests.c.
563 * configure.ac: Don't add selftest-arch.{c,o} to
564 CONFIG_{SRCS,OBS}.
565 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
566 preprocessor conditions.
567
db6878ac
SM
5682020-03-12 Simon Marchi <simon.marchi@efficios.com>
569
570 * configure.ac: Don't source bfd/development.sh.
571 * selftest.m4: Modify comment.
572 * configure: Re-generate.
573
4d696a5c
SM
5742020-03-12 Simon Marchi <simon.marchi@efficios.com>
575
576 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
577 not "true" or "false".
578 * configure: Re-generate.
579
8dd8e1c7
CB
5802020-03-12 Christian Biesinger <cbiesinger@google.com>
581
582 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
583 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
584 renamed to arm_nbsd_supply_gregset.
585 (fetch_register): Update to call arm_nbsd_supply_gregset.
586 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
587 (arm_netbsd_nat_target::fetch_registers): Update.
588 (fetch_elfcore_registers): Removed.
589 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
590 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
591 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
592 not require NetBSD system headers.
593 (arm_nbsd_regset): New struct.
594 (arm_nbsd_iterate_over_regset_sections): New function.
595 (arm_netbsd_init_abi_common): Updated to call
596 set_gdbarch_iterate_over_regset_sections.
597 * arm-nbsd-tdep.h: New file.
598
dd69bf7a
KB
5992020-03-11 Kevin Buettner <kevinb@redhat.com>
600
601 * symtab.c (find_pc_sect_line): Add check which prevents infinite
602 recursion.
603
a0761e34
SM
6042020-03-11 Simon Marchi <simon.marchi@efficios.com>
605
606 * configure: Re-generate.
607
e7a82140
TT
6082020-03-11 Tom Tromey <tromey@adacore.com>
609
610 * ada-typeprint.c (print_choices): Fix comment.
611
dcc050c8
AB
6122020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
613
614 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
615 previous item in the list, when the list has no items.
616
1c33af77
TV
6172020-03-11 Tom de Vries <tdevries@suse.de>
618
619 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
620 PROP_LOCLIST handling code.
621
8c95582d
AB
6222020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
623
624 * buildsym-legacy.c (record_line): Pass extra parameter to
625 record_line.
626 * buildsym.c (buildsym_compunit::record_line): Take an extra
627 parameter, reduce duplication in the line table, and record the
628 is_stmt flag in the line table.
629 * buildsym.h (buildsym_compunit::record_line): Add extra
630 parameter.
631 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
632 non-statement lines.
633 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
634 this to the symtab builder.
635 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
636 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
637 through to dwarf_record_line_1.
638 * infrun.c (process_event_stop_test): When stepping, don't stop at
639 a non-statement instruction, and only refresh the step info when
640 we land in the middle of a line's range. Also add an extra
641 comment.
642 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
643 field.
644 * record-btrace.c (btrace_find_line_range): Only record lines
645 marked as is-statement.
646 * stack.c (frame_show_address): Show the frame address if we are
647 in a non-statement sal.
648 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
649 (maintenance_print_one_line_table): Print a header for the is_stmt
650 column, and include is_stmt information in the output.
651 * symtab.c (find_pc_sect_line): Find lines marked as statements in
652 preference to non-statements.
653 (find_pcs_for_symtab_line): Prefer is-statement entries.
654 (find_line_common): Likewise.
655 * symtab.h (struct linetable_entry): Add is_stmt field.
656 (struct symtab_and_line): Likewise.
657 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
658 arranging the line table.
659
e4003a34
TV
6602020-03-07 Tom de Vries <tdevries@suse.de>
661
662 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
663 DIE.
664
e8932576
TT
6652020-03-07 Tom Tromey <tom@tromey.com>
666
667 * valops.c (value_literal_complex): Remove obsolete comment.
668 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
669 comment.
670
29734269
SM
6712020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
672
673 * infrun.h: Forward-declare thread_info.
674 (set_step_info): Add thread_info parameter, add doc.
675 * infrun.c (set_step_info): Add thread_info parameter, move doc
676 to header.
677 * infrun.c (process_event_stop_test): Pass thread to
678 set_step_info call.
679 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
680 set_step_info.
681 (prepare_one_step): Add thread_info parameter, pass it to
682 set_step_frame and prepare_one_step (recursive) call.
683 (step_1): Pass thread to prepare_one_step call.
684 (step_command_fsm::should_stop): Pass thread to
685 prepare_one_step.
686 (until_next_fsm): Pass thread to set_step_frame call.
687 (finish_command): Pass thread to set_step_info call.
688
b7d64b29
HD
6892020-03-06 Hannes Domani <ssbssa@yahoo.de>
690
691 * windows-tdep.c (windows_solib_create_inferior_hook):
692 Check if inferior is running.
693
09f2921c
TV
6942020-03-06 Tom de Vries <tdevries@suse.de>
695
696 * NEWS: Fix "the the".
697 * ctfread.c: Same.
698
fd760e79
TV
6992020-03-06 Tom de Vries <tdevries@suse.de>
700
701 * psymtab.c (psymtab_to_symtab): Don't print "done.".
702
20ea4a60
AB
7032020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * .dir-locals.el: Add a comment referencing the other copies of
706 this file.
707
0afbabf0
JB
7082020-03-05 John Baldwin <jhb@FreeBSD.org>
709
710 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
711 psargs.
712
842806cb
TBA
7132020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
714
715 * .gitattributes: New file.
716
be1e3d3e
TT
7172020-03-04 Tom Tromey <tom@tromey.com>
718
719 * symmisc.c (print_symbol_bcache_statistics)
720 (print_objfile_statistics): Update.
721 * symfile.c (allocate_symtab): Use intern.
722 * psymtab.c (partial_symtab::partial_symtab): Use intern.
723 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
724 macro_cache>: Remove.
725 <string_cache>: New member.
726 (struct objfile) <intern>: New methods.
727 * elfread.c (elf_symtab_read): Use intern.
728 * dwarf2/read.c (fixup_go_packaging): Intern package name.
729 (dwarf2_compute_name, dwarf2_physname)
730 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
731 names.
732 (guess_partial_die_structure_name): Update.
733 (partial_die_info::fixup): Intern name.
734 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
735 name.
736 (dwarf2_name): Intern name. Update.
737 * buildsym.c (buildsym_compunit::get_macro_table): Use
738 string_cache.
739
4e7625fd
TT
7402020-03-04 Tom Tromey <tom@tromey.com>
741
742 * jit.c (bfd_open_from_target_memory): Make "target" const.
743 * corefile.c (gnutarget): Now const.
744 * gdbcore.h (gnutarget): Now const.
745
46f9f931
HD
7462020-03-04 Hannes Domani <ssbssa@yahoo.de>
747
748 * NEWS: Mention support for WOW64 processes.
749 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
750 (amd64_windows_segment_register_p): Remove static.
751 (_initialize_amd64_windows_nat): Update.
752 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
753 * i386-windows-nat.c (context_offset): Update.
754 (i386_mappings): Rename and remove static.
755 (i386_windows_segment_register_p): Remove static.
756 (_initialize_i386_windows_nat): Update.
757 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
758 (STATUS_WX86_SINGLE_STEP): New macro.
759 (EnumProcessModulesEx): New macro.
760 (Wow64SuspendThread): New macro.
761 (Wow64GetThreadContext): New macro.
762 (Wow64SetThreadContext): New macro.
763 (Wow64GetThreadSelectorEntry): New macro.
764 (windows_set_context_register_offsets): Add static.
765 (windows_set_segment_register_p): Likewise.
766 (windows_add_thread): Adapt for WOW64 processes.
767 (windows_fetch_one_register): Likewise.
768 (windows_nat_target::fetch_registers): Likewise.
769 (windows_store_one_register): Likewise.
770 (display_selector): Likewise.
771 (display_selectors): Likewise.
772 (handle_exception): Likewise.
773 (windows_continue): Likewise.
774 (windows_nat_target::resume): Likewise.
775 (windows_add_all_dlls): Likewise.
776 (do_initial_windows_stuff): Likewise.
777 (windows_nat_target::attach): Likewise.
778 (windows_get_exec_module_filename): Likewise.
779 (windows_nat_target::create_inferior): Likewise.
780 (windows_xfer_siginfo): Likewise.
781 (_initialize_loadable): Initialize Wow64SuspendThread,
782 Wow64GetThreadContext, Wow64SetThreadContext,
783 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
784 * windows-nat.h (windows_set_context_register_offsets):
785 Remove declaration.
786 (windows_set_segment_register_p): Likewise.
787 (i386_windows_segment_register_p): Add declaration.
788 (amd64_windows_segment_register_p): Likewise.
789
440cf44e
LM
7902020-03-04 Luis Machado <luis.machado@linaro.org>
791
792 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
793 in "info registers" for AArch64/ARM.
794
795 The change caused "info registers" to not print GPR's.
796
797 gdb/ChangeLog:
798
799 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
800
801 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
802 when reg->group is empty and reggroup is not.
803
1009d92f
TT
8042020-03-03 Tom Tromey <tromey@adacore.com>
805
806 * dwarf2/frame.c (struct dwarf2_frame_cache)
807 <checked_tailcall_bottom, entry_cfa_sp_offset,
808 entry_cfa_sp_offset_p>: Remove members.
809 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
810 (dwarf2_frame_prev_register): Don't call
811 dwarf2_tailcall_sniffer_first.
812 (dwarf2_append_unwinders): Don't append tailcall unwinder.
813 * frame-unwind.c (add_unwinder): New fuction.
814 (frame_unwind_init): Use it. Add tailcall unwinder.
815
5e5d66b6
AB
8162020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
817 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
818
819 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
820 value should be printed as true.
821
584cf46d
HD
8222020-03-03 Hannes Domani <ssbssa@yahoo.de>
823
824 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
825 (windows_init_abi): Set and use windows_so_ops.
826
7b973adc
SDJ
8272020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
828
829 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
830 when verifying if dealing with a convenience variable.
831
bb7b70ab
LM
8322020-03-03 Luis Machado <luis.machado@linaro.org>
833
834 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
835
9822cb57
SM
8362020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
837
838 * infrun.c (gdbarch_supports_displaced_stepping): New.
839 (use_displaced_stepping): Break up conditions in smaller pieces.
840 Use gdbarch_supports_displaced_stepping.
841 (displaced_step_prepare_throw): Use
842 gdbarch_supports_displaced_stepping.
843
63e163f2
AB
8442020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
845
846 * NEWS: Mention new behaviour of the history filename.
847 * top.c (write_history_p): Add comment.
848 (show_write_history_p): Add header comment, give a different
849 message when history writing is on, but the history filename is
850 empty.
851 (history_filename): Add comment.
852 (history_filename_empty): New function.
853 (show_history_filename): Add header comment, give a different
854 message when the filename is empty.
855 (init_history): Compare history_filename against nullptr, and only
856 read history if the filename is not empty.
857 (set_history_filename): Add header comment, and only make
858 non-empty filenames absolute.
859 (init_main): Make the filename argument to 'set history filename'
860 optional.
861
81b86b97
CB
8622020-03-02 Christian Biesinger <cbiesinger@google.com>
863
864 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
865 (arm_supply_vfpregset): ...this, and update to use VFP registers.
866 (fetch_fp_register): Update.
867 (fetch_fp_regs): Update.
868 (store_fp_register): Update.
869 (store_fp_regs): Update.
870 (arm_netbsd_nat_target::read_description): New function.
871 (fetch_elfcore_registers): Update.
872
24ed6739
AB
8732020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
874
875 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
876 general_thread if the stop reply is missing a thread-id.
877 (remote_target::process_stop_reply): Use the first non-exited
878 thread if the target didn't pass a thread-id.
879 * infrun.c (do_target_wait): Move call to
880 switch_to_inferior_no_thread to ....
881 (do_target_wait_1): ... here.
882
a84bb2a0
JT
8832020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
884
885 * debuginfod-support.c: Include defs.h first.
886
658dadf0
TV
8872020-02-28 Tom de Vries <tdevries@suse.de>
888
889 * symfile.c (set_initial_language): Use default language for lookup.
890
4ebe4877
SM
8912020-02-28 Simon Marchi <simon.marchi@efficios.com>
892
893 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
894 reader variable, pass `this` to read_cutu_die_from_dwo.
895
e5da1139
AM
8962020-02-27 Aaron Merey <amerey@redhat.com>
897
898 * source.c (open_source_file): Check for nullptr when computing
899 srcpath.
900
317f7127
TT
9012020-02-27 Tom Tromey <tromey@adacore.com>
902
903 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
904 member.
905 (dwarf2_add_field): Don't update nfields.
906 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
907
3104d9ee
AB
9082020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
909
910 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
911 abs.
912
b83470bf
TT
9132020-02-26 Tom Tromey <tom@tromey.com>
914
915 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
916 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
917 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
918 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
919 per_cu_data.
920
edfe0a0c
TT
9212020-02-26 Tom Tromey <tom@tromey.com>
922
923 * dwarf2/index-write.c (psym_index_map): Change type.
924 (add_address_entry_worker, write_one_signatured_type)
925 (recursively_count_psymbols, recursively_write_psymbols)
926 (class debug_names, psyms_seen_size, write_gdbindex)
927 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
928
0d79cdc4
AM
9292020-02-26 Aaron Merey <amerey@redhat.com>
930
931 * Makefile.in: Handle optional debuginfod support.
932 * NEWS: Update.
933 * README: Add --with-debuginfod summary.
934 * config.in: Regenerate.
935 * configure: Regenerate.
936 * configure.ac: Handle optional debuginfod support.
937 * debuginfod-support.c: debuginfod helper functions.
938 * debuginfod-support.h: Ditto.
939 * doc/gdb.texinfo: Add --with-debuginfod to configure options
940 summary.
941 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
942 when a dwz file cannot be found.
943 * elfread.c (elf_symfile_read): Query debuginfod servers when a
944 debuginfo file cannot be found.
945 * source.c (open_source_file): Query debuginfod servers when a
946 source file cannot be found.
947 * top.c (print_gdb_configuration): Include
948 --{with,without}-debuginfod in the output.
949
b65ce565
JG
9502020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
951
952 * thread.c (thr_try_catch_cmd): Print thread name.
953
d4c9a4f8
SM
9542020-02-26 Simon Marchi <simon.marchi@efficios.com>
955
956 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
957 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
958 dwarf2_fetch_die_type_sect_off): Move to...
959 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
960 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
961 dwarf2_fetch_die_type_sect_off): ... here.
962 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
963 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
964 dwarf2_fetch_die_type_sect_off): Move doc to header file.
965
0dce4280
TV
9662020-02-26 Tom de Vries <tdevries@suse.de>
967
968 PR gdb/25603
969 * symfile.c (set_initial_language): Exit-early if
970 language_mode == language_mode_manual.
971
450a1bfc
SM
9722020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
973
974 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
975 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
976 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
977
9e80cfa1
AB
9782020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
979
980 * gdbtypes.c (create_array_type_with_stride): Handle negative
981 array strides.
982 * valarith.c (value_subscripted_rvalue): Likewise.
983
09624f1f
LM
9842020-02-25 Luis Machado <luis.machado@linaro.org>
985
986 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
987
8cb5117c
SM
9882020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
989
990 * loc.h (dwarf2_get_die_type): Move to...
991 * read.h (dwarf2_get_die_type): ... here.
992 * read.c (dwarf2_get_die_type): Move doc to header.
993
c325c44e
JB
9942020-02-25 Joel Brobecker <brobecker@adacore.com>
995
996 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
997 'gnulib/Makefile.in' to the list.
998
4ac93832
TT
9992020-02-24 Tom Tromey <tom@tromey.com>
1000
1001 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
1002 Remove.
1003 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
1004 XOBNEWVEC.
1005
197400e8
TT
10062020-02-24 Tom Tromey <tom@tromey.com>
1007
1008 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
1009 New method.
1010 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
1011 (dw2_do_instantiate_symtab, dw2_get_file_names)
1012 (build_type_psymtab_dependencies, load_full_type_unit): Update.
1013
76935768
TT
10142020-02-24 Tom Tromey <tom@tromey.com>
1015
1016 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
1017 make_scoped_restore.
1018 (dwarf2_psymtab::read_symtab): Don't clear
1019 reading_partial_symbols.
1020
a88ef40d
TV
10212020-02-24 Tom de Vries <tdevries@suse.de>
1022
1023 PR gdb/25592
1024 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
1025
c9af6521
TV
10262020-02-24 Tom de Vries <tdevries@suse.de>
1027
1028 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
1029 commands layout next/prev/regs.
1030
5707a07a
TT
10312020-02-22 Tom Tromey <tom@tromey.com>
1032
1033 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
1034 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
1035
3b0fb49e
TT
10362020-02-22 Tom Tromey <tom@tromey.com>
1037
1038 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
1039
283be8bf
TT
10402020-02-22 Tom Tromey <tom@tromey.com>
1041
1042 * tui/tui-win.c (_initialize_tui_win): Add usage text.
1043 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
1044 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
1045 * tui/tui.c (_initialize_tui): Add usage text.
1046
ca793b96
TT
10472020-02-22 Tom Tromey <tom@tromey.com>
1048
1049 * tui/tui-win.c (tui_set_focus_command)
1050 (tui_set_win_height_command): Use error_no_arg.
1051 (_initialize_tui_win): Update help text.
1052 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
1053
432b5c40
TT
10542020-02-22 Tom Tromey <tom@tromey.com>
1055
1056 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
1057 * tui/tui-disasm.h (struct tui_disasm_window)
1058 <display_start_addr>: Declare.
1059 * tui/tui-source.h (struct tui_source_window)
1060 <display_start_addr>: Declare.
1061 * tui/tui-winsource.h (struct tui_source_window_base)
1062 <show_source_line, display_start_addr>: New methods.
1063 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
1064 Rename and move to protected section.
1065 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
1066 (tui_source_window_base::do_erase_source_content): Update.
1067 (tui_source_window_base::show_source_line): Now a method.
1068 (tui_source_window_base::show_source_content)
1069 (tui_source_window_base::tui_source_window_base)
1070 (tui_source_window_base::rerender)
1071 (tui_source_window_base::refill)
1072 (tui_source_window_base::do_scroll_horizontal)
1073 (tui_source_window_base::set_is_exec_point_at)
1074 (tui_source_window_base::update_breakpoint_info)
1075 (tui_source_window_base::update_exec_info): Update.
1076 * tui/tui-source.c (tui_source_window::set_contents)
1077 (tui_source_window::showing_source_p)
1078 (tui_source_window::do_scroll_vertical)
1079 (tui_source_window::location_matches_p)
1080 (tui_source_window::line_is_displayed): Update.
1081 (tui_source_window::display_start_addr): New method.
1082 * tui/tui-disasm.c (tui_disasm_window::set_contents)
1083 (tui_disasm_window::do_scroll_vertical)
1084 (tui_disasm_window::location_matches_p): Update.
1085 (tui_disasm_window::display_start_addr): New method.
1086
01b1af32
TT
10872020-02-22 Tom Tromey <tom@tromey.com>
1088
1089 * NEWS: Add entry for gdb.register_window_type.
1090 * tui/tui-layout.h (window_factory): New typedef.
1091 (tui_register_window): Declare.
1092 * tui/tui-layout.c (saved_tui_windows): New global.
1093 (tui_apply_current_layout): Use it.
1094 (tui_register_window): New function.
1095 * python/python.c (do_start_initialization): Call
1096 gdbpy_initialize_tui.
1097 (python_GdbMethods): Add "register_window_type" function.
1098 * python/python-internal.h (gdbpy_register_tui_window)
1099 (gdbpy_initialize_tui): Declare.
1100 * python/py-tui.c: New file.
1101 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
1102
fc96d20b
TT
11032020-02-22 Tom Tromey <tom@tromey.com>
1104
1105 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
1106
935c78c0
TT
11072020-02-22 Tom Tromey <tom@tromey.com>
1108
1109 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
1110 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
1111 * tui/tui-data.c (tui_set_win_with_focus): Remove.
1112 (tui_set_win_focus_to): Move from tui-win.c.
1113
0240c8f1
TT
11142020-02-22 Tom Tromey <tom@tromey.com>
1115
1116 * tui/tui-layout.c (make_standard_window, get_locator_window): New
1117 functions.
1118 (known_window_types): New global.
1119 (tui_get_window_by_name): Reimplement.
1120 (initialize_known_windows): New function.
1121 (validate_window_name): Rewrite.
1122 (_initialize_tui_layout): Call initialize_known_windows.
1123
fdb01f0c
TT
11242020-02-22 Tom Tromey <tom@tromey.com>
1125
1126 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
1127 Remove constants.
1128 * tui/tui-winsource.h (struct tui_source_window_base)
1129 <tui_source_window_base>: Remove parameter.
1130 * tui/tui-winsource.c
1131 (tui_source_window_base::tui_source_window_base): Remove
1132 parameter.
1133 (tui_source_window_base::refill): Update.
1134 * tui/tui-stack.h (struct tui_locator_window)
1135 <tui_locator_window>: Update.
1136 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
1137 Default the constructor.
1138 * tui/tui-regs.h (struct tui_data_item_window)
1139 <tui_data_item_window>: Default the constructor.
1140 (struct tui_data_window) <tui_data_window>: Likewise.
1141 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
1142 Default the constructor.
1143 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
1144 Default the constructor.
1145 <type>: Remove.
1146 (struct tui_win_info) <tui_win_info>: Default the constructor.
1147 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
1148 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
1149 Default the constructor.
1150
865a5aec
TT
11512020-02-22 Tom Tromey <tom@tromey.com>
1152
1153 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
1154 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
1155 * tui/tui-win.c (tui_resize_all): Don't call
1156 tui_delete_invisible_windows.
1157 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
1158 done.
1159 (tui_set_layout): Update.
1160 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
1161 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
1162 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
1163
e098d18c
TT
11642020-02-22 Tom Tromey <tom@tromey.com>
1165
1166 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
1167 correctly.
1168
eb9c8874
TT
11692020-02-22 Tom Tromey <tom@tromey.com>
1170
1171 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
1172
7eed1a8e
TT
11732020-02-22 Tom Tromey <tom@tromey.com>
1174
1175 * tui/tui-winsource.h (struct tui_source_window_iterator)
1176 <inner_iterator>: New etytypedef.
1177 <tui_source_window_iterator>: Take "end" parameter.
1178 <tui_source_window_iterator>: Take iterator.
1179 <operator*, advance>: Update.
1180 <m_iter>: Change type.
1181 <m_end>: New field.
1182 (struct tui_source_windows) <begin, end>: Update.
1183 * tui/tui-layout.c (tui_windows): New global.
1184 (tui_apply_current_layout): Clear tui_windows.
1185 (tui_layout_window::apply): Update tui_windows.
1186 * tui/tui-data.h (tui_windows): Declare.
1187 (all_tui_windows): Now inline function.
1188 (class tui_window_iterator, struct all_tui_windows): Remove.
1189
7c043ba6
TT
11902020-02-22 Tom Tromey <tom@tromey.com>
1191
1192 PR tui/17850:
1193 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
1194 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
1195 "height" argument.
1196 (class tui_layout_window) <get_sizes>: Likewise.
1197 (class tui_layout_split) <tui_layout_split>: Add "vertical"
1198 argument.
1199 <get_sizes>: Add "height" argument.
1200 <m_vertical>: New field.
1201 * tui/tui-layout.c (tui_layout_split::clone): Update.
1202 (tui_layout_split::get_sizes): Add "height" argument.
1203 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
1204 (tui_new_layout_command): Parse "-horizontal".
1205 (_initialize_tui_layout): Update help string.
1206 (tui_layout_split::specification): Add "-horizontal" when needed.
1207 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
1208 argument.
1209 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
1210 New methods.
1211
6bc56648
TT
12122020-02-22 Tom Tromey <tom@tromey.com>
1213
1214 * tui/tui-layout.h (enum tui_adjust_result): New.
1215 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
1216 (class tui_layout_window) <adjust_size>: Return
1217 tui_adjust_result. Rewrite.
1218 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
1219 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
1220
c22fef7e
TT
12212020-02-22 Tom Tromey <tom@tromey.com>
1222
1223 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
1224 parameter and return types.
1225 (class tui_layout_base) <specification>: Add "depth".
1226 (class tui_layout_window) <specification>: Add "depth".
1227 (class tui_layout_split) <specification>: Add "depth".
1228 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
1229 and return types.
1230 (tui_new_layout_command): Parse sub-layouts.
1231 (_initialize_tui_layout): Update help string.
1232 (tui_layout_window::specification): Add "depth".
1233 (add_layout_command): Update.
1234
ee325b61
TT
12352020-02-22 Tom Tromey <tom@tromey.com>
1236
1237 * NEWS: Add "tui new-layout" item.
1238 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
1239 Add new-layout command to help text.
1240 (validate_window_name): New function.
1241 (tui_new_layout_command): New function.
1242 (_initialize_tui_layout): Register "new-layout".
1243 (tui_layout_window::specification): New method.
1244 (tui_layout_window::specification): New method.
1245 * tui/tui-layout.h (class tui_layout_base) <specification>: New
1246 method.
1247 (class tui_layout_window) <specification>: New method.
1248 (class tui_layout_split) <specification>: New method.
1249
416eb92d
TT
12502020-02-22 Tom Tromey <tom@tromey.com>
1251
1252 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
1253 * tui/tui-win.c (window_name_completer): Update comment.
1254 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
1255 Declare method.
1256 (class tui_layout_window) <replace_window>: Likewise.
1257 (class tui_layout_split) <replace_window>: Likewise.
1258 (tui_set_layout): Don't declare.
1259 (tui_set_initial_layout): Declare function.
1260 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
1261 (asm_regs_layout): New globals.
1262 (tui_current_layout, show_layout): Remove.
1263 (tui_set_layout, tui_add_win_to_layout): Rewrite.
1264 (find_layout, tui_apply_layout): New function.
1265 (layout_completer): Remove.
1266 (tui_next_layout): Reimplement.
1267 (tui_next_layout_command): New function.
1268 (tui_set_initial_layout, tui_prev_layout_command): New functions.
1269 (tui_regs_layout): Reimplement.
1270 (tui_regs_layout_command): New function.
1271 (extract_display_start_addr): Rewrite.
1272 (next_layout, prev_layout): Remove.
1273 (tui_layout_window::replace_window): New method.
1274 (tui_layout_split::replace_window): New method.
1275 (destroy_layout): New function.
1276 (layout_list): New global.
1277 (add_layout_command): New function.
1278 (initialize_layouts): Update.
1279 (tui_layout_command): New function.
1280 (_initialize_tui_layout): Install "layout" commands.
1281 * tui/tui-data.h (enum tui_layout_type): Remove.
1282 (tui_current_layout): Don't declare.
1283
0dbc2fc7
TT
12842020-02-22 Tom Tromey <tom@tromey.com>
1285
1286 * tui/tui-regs.c (tui_reg_layout): Remove.
1287 (tui_reg_command): Use tui_regs_layout.
1288 * tui/tui-layout.h (tui_reg_command): Declare.
1289 * tui/tui-layout.c (tui_reg_command): New function.
1290
5afe342e
TT
12912020-02-22 Tom Tromey <tom@tromey.com>
1292
1293 * tui/tui.c (tui_rl_delete_other_windows): Call
1294 tui_remove_some_windows.
1295 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
1296 Declare method.
1297 (class tui_layout_window) <remove_windows>: New method.
1298 (class tui_layout_split) <remove_windows>: Declare.
1299 (tui_remove_some_windows): Declare.
1300 * tui/tui-layout.c (tui_remove_some_windows): New function.
1301 (tui_layout_split::remove_windows): New method.
1302
427326a8
TT
13032020-02-22 Tom Tromey <tom@tromey.com>
1304
1305 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
1306 * tui/tui-layout.h (tui_next_layout): Declare.
1307 * tui/tui-layout.c (tui_next_layout): New function.
1308
3fe12b6d
TT
13092020-02-22 Tom Tromey <tom@tromey.com>
1310
1311 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
1312 correct coordinates.
1313
59b8b5d2
TT
13142020-02-22 Tom Tromey <tom@tromey.com>
1315
1316 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
1317 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
1318 DATA_WIN case.
1319
2a3d458b
TT
13202020-02-22 Tom Tromey <tom@tromey.com>
1321
1322 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
1323 TUI_DISASM_WIN, not tui_win_list.
1324
3f0cbb04
TT
13252020-02-22 Tom Tromey <tom@tromey.com>
1326
1327 * valprint.c (generic_val_print_enum_1)
1328 (val_print_type_code_flags): Style member names.
1329 * rust-lang.c (val_print_struct, rust_print_enum)
1330 (rust_print_struct_def, rust_internal_print_type): Style member
1331 names.
1332 * p-valprint.c (pascal_object_print_value_fields): Style member
1333 names. Only call fprintf_symbol_filtered for static members.
1334 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
1335 * f-valprint.c (f_val_print): Style member names.
1336 * f-typeprint.c (f_type_print_base): Style member names.
1337 * cp-valprint.c (cp_print_value_fields): Style member names. Only
1338 call fprintf_symbol_filtered for static members.
1339 (cp_print_class_member): Style member names.
1340 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
1341 member names.
1342 * ada-valprint.c (ada_print_scalar): Style enum names.
1343 (ada_val_print_enum): Likewise.
1344 * ada-typeprint.c (print_enum_type): Style enum names.
1345
d4d947ae
TT
13462020-02-21 Tom Tromey <tom@tromey.com>
1347
1348 * psympriv.h (struct partial_symtab): Update comment.
1349
e94e944b
TT
13502020-02-21 Tom Tromey <tromey@adacore.com>
1351
1352 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
1353 type is CORE_ADDR.
1354
1eb73179
TV
13552020-02-21 Tom de Vries <tdevries@suse.de>
1356
1357 PR gdb/25534
1358 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
1359 if dependencies[i]->user != NULL.
1360
4f180d53
AT
13612020-02-21 Ali Tamur <tamur@google.com>
1362
1363 * dwarf2/read.c (dwarf2_name): Add null check.
1364
22b6cd70
TT
13652020-02-20 Tom Tromey <tom@tromey.com>
1366
1367 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
1368 ">=", in binary search.
1369 (dwarf2_find_containing_comp_unit): New overload.
1370 (run_test): New self-test.
1371 (_initialize_dwarf2_read): Register new test.
1372
bd0cf5a6
NC
13732020-02-20 Nelson Chu <nelson.chu@sifive.com>
1374
1375 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
1376 * riscv-tdep.h: Likewise.
1377 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
1378 rv32-only CSR.
1379 * features/riscv/64bit-csr.xml: Regenerated.
1380
3f702acd
SDJ
13812020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
1382 Tom Tromey <tom@tromey.com>
1383
1384 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
1385 of 'fputc_unfiltered'.
1386 (putchar_unfiltered): Call 'fputc_unfiltered'.
1387 (fputc_unfiltered): Call 'fputs_unfiltered'.
1388
d13c7322
AB
13892020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
1390
1391 * config.in: Regenerate.
1392 * configure: Regenerate.
1393 * configure.ac: Add --with-python-libdir option.
1394 * main.c: Use WITH_PYTHON_LIBDIR.
1395
869d8950
TT
13962020-02-19 Tom Tromey <tom@tromey.com>
1397
1398 * symtab.c (general_symbol_info::compute_and_set_names): Use
1399 obstack_strndup. Simplify call to symbol_set_demangled_name.
1400
298e9637
SM
14012020-02-19 Simon Marchi <simon.marchi@efficios.com>
1402
1403 * dwarf2/read.c (allocate_signatured_type_table,
1404 allocate_dwo_unit_table, allocate_type_unit_groups_table,
1405 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
1406 Remove objfile parameter, update all callers.
1407
08410482
DE
14082020-02-19 Doug Evans <dje@google.com>
1409
1410 PR rust/25535
1411 * rust-lang.c (rust_print_enum): Apply embedded_offset to
1412 rust_enum_variant calculation.
1413
dfdeeca1
TT
14142020-02-19 Tom Tromey <tromey@adacore.com>
1415
1416 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
1417
2ef5453b
TT
14182020-02-19 Tom Tromey <tromey@adacore.com>
1419
1420 * ada-lang.c (cache_symbol): Use obstack_strdup.
1421
9f1528a1
AB
14222020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1423
1424 * configure: Regenerate.
1425
d3c22fa8
TT
14262020-02-19 Tom Tromey <tromey@adacore.com>
1427
1428 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
1429 NULL check.
1430
bf84f706
MR
14312020-02-19 Maciej W. Rozycki <macro@wdc.com>
1432
1433 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
1434
d1c9b20f
AB
14352020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
1436
1437 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
1438 if GDBSERVER is not defined.
1439 (riscv_tdesc_cache): Likewise, also store const target_desc.
1440 (STATIC_IN_GDB): Define.
1441 (riscv_create_target_description): Update declaration with
1442 STATIC_IN_GDB.
1443 (riscv_lookup_target_description): New function, only define if
1444 GDBSERVER is not defined.
1445 * arch/riscv.h (riscv_create_target_description): Declare only
1446 when GDBSERVER is defined.
1447 (riscv_lookup_target_description): New declaration when GDBSERVER
1448 is not defined.
1449 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
1450 (riscv_linux_read_features): ...this, and return
1451 riscv_gdbarch_features instead of target_desc.
1452 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
1453 (riscv_linux_read_description): Rename to...
1454 (riscv_linux_read_features): ...this.
1455 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
1456 Update to use riscv_gdbarch_features and
1457 riscv_lookup_target_description.
1458 * riscv-tdep.c (riscv_find_default_target_description): Use
1459 riscv_lookup_target_description instead of
1460 riscv_create_target_description.
1461
373d7ac0
SM
14622020-02-18 Simon Marchi <simon.marchi@efficios.com>
1463
1464 * valprint.c (generic_val_print_enum_1): When printing a flag
1465 enum with value 0 and there is no enumerator with value 0, print
1466 just "0" instead of "(unknown: 0x0)".
1467
b29a2df0
SM
14682020-02-18 Simon Marchi <simon.marchi@efficios.com>
1469
1470 * valprint.c (generic_val_print_enum_1): Print unknown part of
1471 flag enum in hex.
1472
6740f0cc
SM
14732020-02-18 Simon Marchi <simon.marchi@efficios.com>
1474
1475 * dwarf2/read.c (update_enumeration_type_from_children): Allow
1476 flag enums to contain duplicate enumerators.
1477 * valprint.c (generic_val_print_enum_1): Update comment.
1478
edd45eb0
SM
14792020-02-18 Simon Marchi <simon.marchi@efficios.com>
1480
1481 * dwarf2/read.c: Include "count-one-bits.h".
1482 (update_enumeration_type_from_children): If an enumerator has
1483 multiple bits set, don't treat the enumeration as a "flag enum".
1484 * valprint.c (generic_val_print_enum_1): Assert that enumerators
1485 of flag enums have 0 or 1 bit set.
1486
6d0cf446
BE
14872020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
1488
1489 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
1490 conversion.
1491 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
1492 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
1493 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1494 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1495 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
1496
7001c1b7
SM
14972020-02-18 Simon Marchi <simon.marchi@efficios.com>
1498
1499 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
1500
fdb61c6c
SM
15012020-02-14 Simon Marchi <simon.marchi@efficios.com>
1502
1503 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
1504 displaced_step_closure_up.
1505 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
1506 (struct displaced_step_closure_up):
1507 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
1508 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
1509 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
1510 Likewise.
1511 * gdbarch.sh (displaced_step_copy_insn): Likewise.
1512 * gdbarch.c, gdbarch.h: Re-generate.
1513 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
1514 displaced_step_closure_up.
1515 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1516 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
1517 * infrun.h (displaced_step_closure_up): New type alias.
1518 (struct displaced_step_inferior_state) <step_closure>: Change
1519 type to displaced_step_closure_up.
1520 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
1521 displaced_step_closure_up.
1522 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
1523
a4a38eb4
TT
15242020-02-14 Tom Tromey <tom@tromey.com>
1525
1526 * minidebug.c (gnu_debug_key): New global.
1527 (find_separate_debug_file_in_section): Use it.
1528
e8217e61
SM
15292020-02-14 Simon Marchi <simon.marchi@efficios.com>
1530
1531 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
1532 std::unique_ptr.
1533 * gdbarch.c: Re-generate.
1534 * gdbarch.h: Re-generate.
1535 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
1536 change.
1537 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
1538 type to std::unique_ptr.
1539 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
1540 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
1541 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
1542 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
1543 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
1544 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1545 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
1546 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1547 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
1548
d8d83535
SM
15492020-02-14 Simon Marchi <simon.marchi@efficios.com>
1550
1551 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
1552 std::unique_ptr.
1553 (displaced_step_clear): Rename to...
1554 (displaced_step_reset): ... this. Just call displaced->reset ().
1555 (displaced_step_clear_cleanup): Rename to...
1556 (displaced_step_reset_cleanup): ... this.
1557 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
1558 (displaced_step_fixup): Likewise.
1559 (resume_1): Likewise.
1560 (handle_inferior_event): Restore child's memory before calling
1561 displaced_step_fixup on the parent.
1562 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
1563 to std::unique_ptr.
1564 <step_closure>: Change type to std::unique_ptr.
1565
5f661e03
SM
15662020-02-14 Simon Marchi <simon.marchi@efficios.com>
1567
1568 * arm-tdep.c: Include count-one-bits.h.
1569 (cleanup_block_store_pc): Use count_one_bits.
1570 (cleanup_block_load_pc): Use count_one_bits.
1571 (arm_copy_block_xfer): Use count_one_bits.
1572 (thumb2_copy_block_xfer): Use count_one_bits.
1573 (thumb_copy_pop_pc_16bit): Use count_one_bits.
1574 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
1575 (thumb_get_next_pcs_raw): Use count_one_bits.
1576 (arm_get_next_pcs_raw): Use count_one_bits_l.
1577 * arch/arm.c (bitcount): Remove.
1578 * arch/arm.h (bitcount): Remove.
1579
8084e579
TT
15802020-02-14 Tom Tromey <tromey@adacore.com>
1581
1582 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
1583 Update.
1584 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
1585 * dwarf2/loc.c (call_site_find_chain_1): Return
1586 unique_xmalloc_ptr.
1587 (call_site_find_chain): Likewise.
1588
258bf0ee
RB
15892020-02-14 Richard Biener <rguenther@suse.de>
1590
1591 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
1592 on expression with division operators.
1593
f98a8458
AKS
15942020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
1595
1596 * MAINTAINERS (Write After Approval): Adding myself.
1597
d1437c0e
TT
15982020-02-12 Tom Tromey <tom@tromey.com>
1599
1600 * event-loop.c (event_data, gdb_event, event_handler_func):
1601 Remove.
1602
3d4560f7
TT
16032020-02-12 Tom Tromey <tom@tromey.com>
1604
1605 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
1606 (dwarf2_frame_objfile_data): Add comment.
1607 (find_comp_unit, set_comp_unit): New functions.
1608 (dwarf2_frame_find_fde): Use find_comp_unit.
1609 (dwarf2_build_frame_info): Use set_comp_unit.
1610
21982304
TT
16112020-02-12 Tom Tromey <tom@tromey.com>
1612
1613 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
1614 (comp_unit): Don't initialize objfile.
1615 (execute_cfa_program): Add text_offset parameter.
1616 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
1617 (dwarf2_frame_cache): Update.
1618 (dwarf2_build_frame_info): Don't set "objfile" member.
1619
4debb237
TT
16202020-02-12 Tom Tromey <tom@tromey.com>
1621
1622 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
1623 (decode_frame_entry): Likewise.
1624 (dwarf2_build_frame_info): Update.
1625
0d404d44
TT
16262020-02-12 Tom Tromey <tom@tromey.com>
1627
1628 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
1629 (decode_frame_entry_1): Use the comp_unit obstack.
1630
a7a3ae5c
TT
16312020-02-12 Tom Tromey <tom@tromey.com>
1632
1633 * dwarf2/frame.c (struct comp_unit): Add initializers and
1634 constructor.
1635 (dwarf2_frame_objfile_data): Store a comp_unit.
1636 (dwarf2_frame_find_fde): Update.
1637 (dwarf2_build_frame_info): Use "new".
1638
a9d65418
TT
16392020-02-12 Tom Tromey <tom@tromey.com>
1640
1641 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
1642 (dwarf2_fde_table): Typedef for std::vector.
1643 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
1644 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
1645 (decode_frame_entry): Update.
1646 (dwarf2_build_frame_info): Use "new".
1647
7559c217
CB
16482020-02-12 Christian Biesinger <cbiesinger@google.com>
1649
1650 * arm-tdep.c (arm_gdbarch_init): Update.
1651 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
1652 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
1653 have_neon, is_m>: Change to bool.
1654
aeefc73c
CB
16552020-02-12 Christian Biesinger <cbiesinger@google.com>
1656
1657 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
1658
d27b8e5f
TT
16592020-02-12 Tom Tromey <tom@tromey.com>
1660
1661 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
1662
cd5900f3
HD
16632020-02-12 Hannes Domani <ssbssa@yahoo.de>
1664
1665 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
1666 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
1667
f056b22b
TT
16682020-02-11 Tom Tromey <tom@tromey.com>
1669
1670 * psymtab.h: Update comment.
1671
f92ff6b5
TT
16722020-02-11 Tom Tromey <tom@tromey.com>
1673
1674 * gdb_obstack.h (struct auto_obstack): Use
1675 DISABLE_COPY_AND_ASSIGN.
1676
3fd6912b
TT
16772020-02-11 Tom Tromey <tom@tromey.com>
1678
1679 * dwarf2/frame.h (struct objfile): Don't forward declare.
1680
69ed9b74
CB
16812020-02-11 Christian Biesinger <cbiesinger@google.com>
1682
1683 * cris-tdep.c (cris_supply_gregset): Change signature to match
1684 what struct regset expects.
1685 (cris_regset): New struct.
1686 (fetch_core_registers): Remove.
1687 (cris_iterate_over_regset_sections): New function.
1688 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
1689 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
1690
bda874f6
CB
16912020-02-11 Christian Biesinger <cbiesinger@google.com>
1692
1693 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
1694 registers.
1695
754e1564
CB
16962020-02-11 Christian Biesinger <cbiesinger@google.com>
1697
1698 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
1699
8ddd8e0e
SM
17002020-02-11 Simon Marchi <simon.marchi@efficios.com>
1701
1702 * configure: Re-generate.
1703
898e7f60
SM
17042020-02-11 Simon Marchi <simon.marchi@efficios.com>
1705
1706 * configure: Re-generate.
1707
58df732b
SM
17082020-02-11 Simon Marchi <simon.marchi@efficios.com>
1709
1710 * acinclude: Update warning.m4 path.
1711 * warning.m4: Move to gdbsupport.
1712
da5bd37e
TT
17132020-02-11 Tom Tromey <tromey@adacore.com>
1714
1715 * remote.c (remote_console_output): Update.
1716 * printcmd.c (printf_command): Update.
1717 * event-loop.c (gdb_wait_for_event): Update.
1718 * linux-nat.c (sigchld_handler): Update.
1719 * remote-sim.c (gdb_os_write_stdout): Update.
1720 (gdb_os_flush_stdout): Update.
1721 (gdb_os_flush_stderr): Update.
1722 (gdb_os_write_stderr): Update.
1723 * exceptions.c (print_exception): Update.
1724 * remote-fileio.c (remote_fileio_func_read): Update.
1725 (remote_fileio_func_write): Update.
1726 * tui/tui.c (tui_enable): Update.
1727 * tui/tui-interp.c (tui_interp::init): Update.
1728 * utils.c (init_page_info): Update.
1729 (putchar_unfiltered, fputc_unfiltered): Update.
1730 (gdb_flush): Update.
1731 (emit_style_escape): Update.
1732 (flush_wrap_buffer, fputs_maybe_filtered): Update.
1733 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
1734 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
1735 (stderr_file::write): Update.
1736 (stderr_file::puts): Update.
1737 * ui-file.h (ui_file_isatty, ui_file_write)
1738 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
1739 (ui_file_puts): Don't declare.
1740
85f0dd3c
TV
17412020-02-10 Tom de Vries <tdevries@suse.de>
1742
1743 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
1744 sentinel to char *.
1745
2e927613
TV
17462020-02-09 Tom de Vries <tdevries@suse.de>
1747
1748 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
1749 filename if it matches "<artificial>".
1750
6bafc845
HD
17512020-02-09 Hannes Domani <ssbssa@yahoo.de>
1752
1753 * windows-tdep.c (struct enum_value_name): New struct.
1754 (create_enum): New function.
1755 (windows_get_siginfo_type): Create and use enum types.
1756
7928d571
HD
17572020-02-09 Hannes Domani <ssbssa@yahoo.de>
1758
1759 * NEWS: Mention $_siginfo support for Windows.
1760 * windows-nat.c (handle_exception): Set siginfo_er.
1761 (windows_nat_target::mourn_inferior): Reset siginfo_er.
1762 (windows_xfer_siginfo): New function.
1763 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
1764 * windows-tdep.c (struct windows_gdbarch_data): New struct.
1765 (init_windows_gdbarch_data): New function.
1766 (get_windows_gdbarch_data): New function.
1767 (windows_get_siginfo_type): New function.
1768 (windows_init_abi): Register windows_get_siginfo_type.
1769 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
1770
6751ebae
TT
17712020-02-08 Tom Tromey <tom@tromey.com>
1772
1773 * dwarf2/read.c (class cutu_reader) <cutu_reader,
1774 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
1775 <keep>: Declare method.
1776 <m_keep>: Remove member.
1777 <~cutu_reader>: Remove.
1778 (cutu_reader::init_tu_and_read_dwo_dies): Update.
1779 (cutu_reader::cutu_reader): Update.
1780 (cutu_reader::keep): Rename from ~cutu_reader.
1781 (process_psymtab_comp_unit, build_type_psymtabs_1)
1782 (process_skeletonless_type_unit, load_partial_comp_unit)
1783 (load_full_comp_unit, dwarf2_read_addr_index)
1784 (read_signatured_type): Update.
1785
135f5437
TT
17862020-02-08 Tom Tromey <tom@tromey.com>
1787
1788 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
1789 "want_partial_unit" parameter.
1790 (process_psymtab_comp_unit): Change want_partial_unit to bool.
1791 Inline check for DW_TAG_partial_unit.
1792 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
1793
9f66ff1c
TT
17942020-02-08 Tom Tromey <tom@tromey.com>
1795
1796 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
1797 read.c.
1798 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
1799 read.c.
1800
c8a7a66f
TT
18012020-02-08 Tom Tromey <tom@tromey.com>
1802
1803 * dwarf2/read.c (read_address): Move to comp-unit.c.
1804 (dwarf2_rnglists_process, dwarf2_ranges_process)
1805 (read_attribute_value, dwarf_decode_lines_1)
1806 (var_decode_location, decode_locdesc): Update.
1807 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
1808 read.c. Remove "cu" parameter.
1809 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
1810 method.
1811
8266302d
TT
18122020-02-08 Tom Tromey <tom@tromey.com>
1813
1814 * dwarf2/read.c (read_attribute_value, read_indirect_string)
1815 (read_indirect_line_string): Update.
1816 * dwarf2/comp-unit.c (read_offset): Remove.
1817 (read_comp_unit_head): Update.
1818 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
1819 method.
1820 (read_offset): Don't declare.
1821
4057dfde
TT
18222020-02-08 Tom Tromey <tom@tromey.com>
1823
1824 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
1825 * dwarf2/read.c (struct comp_unit_head): Move to
1826 dwarf2/comp-unit.h.
1827 (enum class rcuh_kind): Move to comp-unit.h.
1828 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
1829 (read_comp_unit_head, error_check_comp_unit_head)
1830 (read_and_check_comp_unit_head): Move to comp-unit.c.
1831 (read_offset, dwarf_unit_type_name): Likewise.
1832 (create_debug_type_hash_table, read_cutu_die_from_dwo)
1833 (cutu_reader::cutu_reader, read_call_site_scope)
1834 (find_partial_die, follow_die_offset): Update.
1835 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
1836
24aa364d
TT
18372020-02-08 Tom Tromey <tom@tromey.com>
1838
1839 * dwarf2/read.c (read_offset_1): Move to leb.c.
1840 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
1841 (dwarf_decode_macro_bytes): Update.
1842 * dwarf2/leb.c (read_offset): Rename; move from read.c.
1843 * dwarf2/leb.h (read_offset): Declare.
1844
2c7d5afc
TT
18452020-02-08 Tom Tromey <tom@tromey.com>
1846
1847 * dwarf2/read.c (dwarf2_section_size): Remove.
1848 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
1849 Update.
1850 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
1851
4075cb26
TT
18522020-02-08 Tom Tromey <tom@tromey.com>
1853
1854 * dwarf2/read.c (read_initial_length): Move to leb.c.
1855 * dwarf2/leb.h (read_initial_length): Declare.
1856 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
1857 handle_nonstd parameter.
1858 * dwarf2/frame.c (read_initial_length): Remove.
1859 (decode_frame_entry_1): Update.
1860
09ba997f
TT
18612020-02-08 Tom Tromey <tom@tromey.com>
1862
1863 * dwarf2/loc.c (dwarf2_find_location_expression)
1864 (dwarf_evaluate_loc_desc::get_tls_address)
1865 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
1866 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
1867 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
1868 (dwarf2_compile_property_to_c)
1869 (dwarf2_loc_desc_get_symbol_read_needs)
1870 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
1871 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
1872 (loclist_describe_location, loclist_tracepoint_var_ref)
1873 (loclist_generate_c_location): Update.
1874 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
1875 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
1876 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
1877 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
1878 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
1879 (dwarf2_per_cu_data::addr_size)
1880 (dwarf2_per_cu_data::ref_addr_size)
1881 (dwarf2_per_cu_data::text_offset)
1882 (dwarf2_per_cu_data::addr_type): Now methods.
1883 (per_cu_header_read_in): Make per_cu "const".
1884 (dwarf2_version): Remove.
1885 (dwarf2_per_cu_data::int_type): Now a method.
1886 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
1887 (set_die_type, read_array_type, read_subrange_index_type)
1888 (read_tag_string_type, read_subrange_type): Update.
1889 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
1890 offset_size, ref_addr_size, text_offset, addr_type, version,
1891 objfile, int_type, addr_sized_int_type>: Declare methods.
1892
96c738c0
TT
18932020-02-08 Tom Tromey <tom@tromey.com>
1894
1895 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
1896 Move earlier.
1897
8fdd972c
TT
18982020-02-08 Tom Tromey <tom@tromey.com>
1899
1900 * dwarf2/read.h (dwarf_line_debug): Declare.
1901 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
1902 * dwarf2/read.c: Move line_header code to new files.
1903 (dwarf_line_debug): No longer static.
1904 * dwarf2/line-header.c: New file.
1905 * dwarf2/line-header.h: New file.
1906
03075812
TT
19072020-02-08 Tom Tromey <tom@tromey.com>
1908
1909 * dwarf2/read.c (struct line_header) <file_full_name,
1910 file_file_name>: Return unique_xmalloc_ptr.
1911 (line_header::file_file_name): Update.
1912 (line_header::file_full_name): Update.
1913 (dw2_get_file_names_reader): Update.
1914 (macro_start_file): Update.
1915
bb822404
TT
19162020-02-08 Tom Tromey <tom@tromey.com>
1917
1918 * dwarf2/read.c (struct line_header) <file_full_name,
1919 file_file_name>: Declare methods.
1920 (dw2_get_file_names_reader): Update.
1921 (file_file_name): Now a method.
1922 (file_full_name): Likewise.
1923 (macro_start_file): Update.
1924
009b64fc
TT
19252020-02-08 Tom Tromey <tom@tromey.com>
1926
1927 * dwarf2/read.c (dwarf_always_disassemble)
1928 (show_dwarf_always_disassemble): Move to loc.c.
1929 (_initialize_dwarf2_read): Move "always-disassemble" registration
1930 to loc.c.
1931 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
1932 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
1933 static.
1934 (show_dwarf_always_disassemble): Move from read.c.
1935 (_initialize_dwarf2loc): Move always-disassemble from read.c.
1936
5895093f
TT
19372020-02-08 Tom Tromey <tom@tromey.com>
1938
1939 * dwarf2/read.c (~dwarf2_per_objfile): Update.
1940 (create_quick_file_names_table): Return htab_up.
1941 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
1942 Update.
1943 * dwarf2/read.h (struct dwarf2_per_objfile)
1944 <quick_file_names_table>: Now htab_up.
1945
b3b32279
TT
19462020-02-08 Tom Tromey <tom@tromey.com>
1947
1948 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
1949
1d33d811
TT
19502020-02-08 Tom Tromey <tom@tromey.com>
1951
1952 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
1953 Rewrite.
1954 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
1955 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
1956 (abbrev_table::abbrev_table): No longer inline.
1957 (ABBREV_HASH_SIZE): Remove.
1958 (abbrev_table::m_abbrevs): Now an htab_up.
1959
86de1d91
TT
19602020-02-08 Tom Tromey <tom@tromey.com>
1961
1962 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
1963 (cutu_reader): Update.
1964 (build_type_psymtabs_1): Update.
1965 * dwarf2/abbrev.c (abbrev_table::read): Rename.
1966 (abbrev_table::alloc_abbrev): Update.
1967 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
1968 (abbrev_table::read): New static method, renamed from
1969 abbrev_table_read_table.
1970 (abbrev_table::alloc_abbrev)
1971 (abbrev_table::add_abbrev): Now private.
1972 (abbrev_table::abbrev_table): Now private.
1973 (abbrev_table::m_abbrev_obstack): Now private. Rename.
1974
0335378b
TT
19752020-02-08 Tom Tromey <tom@tromey.com>
1976
1977 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
1978 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
1979 htab_up.
1980
48b490f2
TT
19812020-02-08 Tom Tromey <tom@tromey.com>
1982
1983 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
1984 htab_up.
1985 (lookup_dwo_unit_in_dwp): Update.
1986 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
1987 on obstack.
1988
bc68fb19
TT
19892020-02-08 Tom Tromey <tom@tromey.com>
1990
1991 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
1992 obstack.
1993
d15acc42
TT
19942020-02-08 Tom Tromey <tom@tromey.com>
1995
1996 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
1997 line_header_hash.
1998 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
1999 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
2000 Change type to htab_up.
2001
eaa5fa8b
TT
20022020-02-08 Tom Tromey <tom@tromey.com>
2003
2004 * dwarf2/read.c (allocate_type_unit_groups_table): Return
2005 htab_up. Don't allocate on obstack.
2006 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
2007 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
2008 Change type to htab_up.
2009
b0b6a987
TT
20102020-02-08 Tom Tromey <tom@tromey.com>
2011
2012 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
2013 Change type to htab_up.
2014 * dwarf2/read.c (create_signatured_type_table_from_index)
2015 (create_signatured_type_table_from_debug_names)
2016 (create_all_type_units, add_type_unit)
2017 (lookup_dwo_signatured_type, lookup_signatured_type)
2018 (process_skeletonless_type_unit): Update.
2019 (create_debug_type_hash_table, create_debug_types_hash_table):
2020 Change type of types_htab.
2021 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
2022 htab_up. Don't allocate on obstack.
2023 (create_cus_hash_table): Change type of cus_htab parameter.
2024 (struct dwo_file) <cus, tus>: Now htab_up.
2025 (lookup_dwo_signatured_type, lookup_dwo_cutu)
2026 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
2027 (queue_and_load_all_dwo_tus): Update.
2028 * dwarf2/index-write.c (write_gdbindex): Update.
2029 (write_debug_names): Update.
2030
39856def
TT
20312020-02-08 Tom Tromey <tom@tromey.com>
2032
2033 * dwarf2/read.h (struct dwarf2_queue_item): Move from
2034 dwarf2/read.c. Remove "next" member. Add constructor ntad
2035 destructor.
2036 (struct dwarf2_per_objfile) <queue>: New member.
2037 * dwarf2/read.c (struct dwarf2_queue_item): Move to
2038 dwarf2/read.h.
2039 (dwarf2_queue, dwarf2_queue_tail): Remove.
2040 (class dwarf2_queue_guard): Add parameter to constructor. Use
2041 DISABLE_COPY_AND_ASSIGN.
2042 <m_per_objfile>: New member.
2043 <~dwarf2_queue_guard>: Rewrite.
2044 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
2045 Update.
2046 (~dwarf2_queue_item): New.
2047
3e225074
TT
20482020-02-08 Tom Tromey <tom@tromey.com>
2049
2050 * dwarf2/read.c (struct die_info) <has_children>: New member.
2051 (dw2_get_file_names_reader): Remove has_children.
2052 (dw2_get_file_names): Update.
2053 (read_cutu_die_from_dwo): Remove has_children.
2054 (cutu_reader::init_tu_and_read_dwo_dies)
2055 (cutu_reader::cutu_reader): Update.
2056 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
2057 Remove has_children.
2058 (build_type_psymtabs_1, process_skeletonless_type_unit)
2059 (load_partial_comp_unit, load_full_comp_unit): Update.
2060 (create_dwo_cu_reader): Remove has_children.
2061 (create_cus_hash_table, read_die_and_children): Update.
2062 (read_full_die_1,read_full_die): Remove has_children.
2063 (read_signatured_type): Update.
2064 (class cutu_reader) <has_children>: Remove.
2065
82ca8957
TT
20662020-02-08 Tom Tromey <tom@tromey.com>
2067
2068 * dwarf2/expr.c: Rename from dwarf2expr.c.
2069 * dwarf2/expr.h: Rename from dwarf2expr.h.
2070 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
2071 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
2072 * dwarf2/frame.c: Rename from dwarf2-frame.c.
2073 * dwarf2/frame.h: Rename from dwarf2-frame.h.
2074 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
2075 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
2076 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
2077 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
2078 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
2079 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
2080 * dwarf2/loc.c: Rename from dwarf2loc.c.
2081 * dwarf2/loc.h: Rename from dwarf2loc.h.
2082 * dwarf2/read.c: Rename from dwarf2read.c.
2083 * dwarf2/read.h: Rename from dwarf2read.h.
2084 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
2085 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
2086 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
2087 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
2088 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
2089 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
2090 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
2091 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
2092 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
2093 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
2094 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
2095 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
2096 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
2097 Update.
2098 * Makefile.in (COMMON_SFILES): Update.
2099 (HFILES_NO_SRCDIR): Update.
2100
9e35d499
TT
21012020-02-08 Tom Tromey <tom@tromey.com>
2102
2103 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
2104 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
2105
1eba2311
TT
21062020-02-08 Tom Tromey <tom@tromey.com>
2107
2108 * dwarf2read.h (struct die_info): Don't declare.
2109
e41c2da2
TT
21102020-02-08 Tom Tromey <tom@tromey.com>
2111
2112 * dwarf2read.h (die_info_ptr): Remove typedef.
2113
4fc6c0d5
TT
21142020-02-08 Tom Tromey <tom@tromey.com>
2115
2116 * dwarf2read.c (read_call_site_scope)
2117 (handle_data_member_location, dwarf2_add_member_fn)
2118 (mark_common_block_symbol_computed, read_common_block)
2119 (attr_to_dynamic_prop, partial_die_info::read)
2120 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
2121 (dwarf2_symbol_mark_computed, set_die_type): Update.
2122 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
2123 method.
2124 (attr_form_is_block): Don't declare.
2125 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
2126
cd6c91b4
TT
21272020-02-08 Tom Tromey <tom@tromey.com>
2128
2129 * dwarf2read.c (dwarf2_find_base_address, )
2130 (read_call_site_scope, rust_containing_type)
2131 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2132 (handle_data_member_location, dwarf2_add_member_fn)
2133 (get_alignment, read_structure_type, process_structure_scope)
2134 (mark_common_block_symbol_computed, read_common_block)
2135 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
2136 (partial_die_info::read, read_attribute_value, new_symbol)
2137 (lookup_die_type, dwarf2_get_ref_die_offset)
2138 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
2139 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
2140 (dwarf2_symbol_mark_computed): Update.
2141 * dwarf2/attribute.h (struct attribute) <value_as_address,
2142 form_is_section_offset, form_is_constant, form_is_ref>: Declare
2143 methods.
2144 (value_as_address, attr_form_is_section_offset)
2145 (attr_form_is_constant, attr_form_is_ref): Don't declare.
2146 * dwarf2/attribute.c (attribute::value_as_address)
2147 (attribute::form_is_section_offset, attribute::form_is_constant)
2148 (attribute::form_is_ref): Now methods.
2149
162dce55
TT
21502020-02-08 Tom Tromey <tom@tromey.com>
2151
2152 * dwarf2read.c (struct attribute, DW_STRING)
2153 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
2154 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
2155 (attr_form_is_block, attr_form_is_section_offset)
2156 (attr_form_is_constant, attr_form_is_ref): Move.
2157 * dwarf2/attribute.h: New file.
2158 * dwarf2/attribute.c: New file, from dwarf2read.c.
2159 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
2160
3054dd54
TT
21612020-02-08 Tom Tromey <tom@tromey.com>
2162
2163 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
2164 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
2165 Move.
2166 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
2167 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
2168 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
2169 abbrev.c.
2170 * dwarf2/abbrev.h: New file.
2171 * dwarf2/abbrev.c: New file, from dwarf2read.c.
2172 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
2173
96b79293
TT
21742020-02-08 Tom Tromey <tom@tromey.com>
2175
2176 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
2177 (dwarf2_section_size, dwarf2_get_section_info)
2178 (create_signatured_type_table_from_debug_names)
2179 (create_addrmap_from_aranges, read_debug_names_from_section)
2180 (get_gdb_index_contents_from_section, read_comp_unit_head)
2181 (error_check_comp_unit_head, read_abbrev_offset)
2182 (create_debug_type_hash_table, init_cu_die_reader)
2183 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
2184 (read_comp_units_from_section, create_cus_hash_table)
2185 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
2186 (create_dwp_v2_section, dwarf2_rnglists_process)
2187 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
2188 (abbrev_table_read_table, read_indirect_string_at_offset_from)
2189 (read_indirect_string_from_dwz, read_addr_index_1)
2190 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
2191 (dwarf_decode_macro_bytes, dwarf_decode_macros)
2192 (fill_in_loclist_baton): Update.
2193 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
2194 get_containing_section, get_bfd_owner, get_bfd_section,
2195 get_file_name, get_id, get_flags, empty, read>: Declare methods.
2196 (dwarf2_read_section, get_section_name, get_section_file_name)
2197 (get_containing_section, get_section_bfd_owner)
2198 (get_section_bfd_section, get_section_name, get_section_file_name)
2199 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
2200 declare.
2201 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
2202 (dwarf2_section_info::get_bfd_owner)
2203 (dwarf2_section_info::get_bfd_section)
2204 (dwarf2_section_info::get_name)
2205 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
2206 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
2207 (dwarf2_section_info::read): Now methods.
2208 * dwarf-index-write.c (class debug_names): Update.
2209
2c86cff9
TT
22102020-02-08 Tom Tromey <tom@tromey.com>
2211
2212 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
2213 Move to dwarf2/section.h.
2214 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
2215 (get_section_bfd_section, get_section_name)
2216 (get_section_file_name, get_section_id, get_section_flags)
2217 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
2218 dwarf2/section.c.
2219 * dwarf2/section.h: New file.
2220 * dwarf2/section.c: New file, from dwarf2read.c.
2221 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
2222
f4382c45
TT
22232020-02-08 Tom Tromey <tom@tromey.com>
2224
2225 * dwarf2read.h (read_unsigned_leb128): Don't declare.
2226 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
2227 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
2228 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
2229 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
2230 * dwarf2/leb.h: New file, from dwarf2read.c.
2231 * dwarf2/leb.c: New file, from dwarf2read.c.
2232 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
2233 Remove.
2234 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
2235 (COMMON_SFILES): Add dwarf2/leb.c.
2236
01840b7a
JB
22372020-02-08 Joel Brobecker <brobecker@adacore.com>
2238
2239 GDB 9.1 released.
2240
dfcb27e4
IB
22412020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
2242
2243 PR gdb/25190:
2244 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
2245 * gdb/remote.c (remote_console_output): Update.
2246 * gdb/ui-file.c (fputs_unfiltered): Rename to...
2247 (ui_file_puts): ...this.
2248 * gdb/ui-file.h (ui_file_puts): Add declaration.
2249 * gdb/utils.c (emit_style_escape): Update.
2250 (flush_wrap_buffer): Update.
2251 (fputs_maybe_filtered): Update.
2252 (fputs_unfiltered): Add function.
2253
faa17681
IB
22542020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
2255
2256 * gdb/event-loop.c (gdb_wait_for_event): Update.
2257 * gdb/printcmd.c (printf_command): Update.
2258 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
2259 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
2260 (gdb_os_flush_stderr): Update.
2261 * gdb/remote.c (remote_console_output): Update.
2262 * gdb/ui-file.c (gdb_flush): Rename to...
2263 (ui_file_flush): ...this.
2264 (stderr_file::write): Update.
2265 (stderr_file::puts): Update.
2266 * gdb/ui-file.h (gdb_flush): Rename to...
2267 (ui_file_flush): ...this.
2268 * gdb/utils.c (gdb_flush): Add function.
2269 * gdb/utils.h (gdb_flush): Add declaration.
2270
5abbbe1d
TT
22712020-02-07 Tom Tromey <tromey@adacore.com>
2272
2273 PR breakpoints/24915:
2274 * source.c (find_and_open_source): Do not check basenames_may_differ.
2275
919adfe8
TT
22762020-02-07 Tom Tromey <tom@tromey.com>
2277
2278 * README: Update gdbserver documentation.
2279 * gdbserver: Move to top level.
2280 * configure.tgt (build_gdbserver): Remove.
2281 * configure.ac: Remove --enable-gdbserver.
2282 * configure: Rebuild.
2283 * Makefile.in (distclean): Don't mention gdbserver.
2284
1d5d29e7
SV
22852020-02-06 Shahab Vahedi <shahab@synopsys.com>
2286
2287 * source-cache.c (source_cache::ensure): Surround
2288 get_plain_source_lines with a try/catch.
2289 (source_cache::get_line_charpos): Get rid of try/catch
2290 and only check for the return value of "ensure".
2291 * tui/tui-source.c (tui_source_window::set_contents):
2292 Simplify "nlines" calculation.
2293
6eb1129c
SV
22942020-02-06 Shahab Vahedi <shahab@synopsys.com>
2295
2296 * MAINTAINERS (Write After Approval): Add myself.
2297
c6a42d11
CB
22982020-02-05 Christian Biesinger <cbiesinger@google.com>
2299
2300 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
2301 function call.
2302
c8ecdda6
CB
23032020-02-05 Christian Biesinger <cbiesinger@google.com>
2304
2305 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
2306
f6480e70
MR
23072020-02-05 Maciej W. Rozycki <macro@wdc.com>
2308
2309 * nat/riscv-linux-tdesc.h: New file.
2310 * nat/riscv-linux-tdesc.c: New file, taking code from...
2311 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
2312 ... here.
2313 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
2314 NATDEPFILES.
2315
dcc9fbc6
AB
23162020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
2317
2318 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
2319 we don't set the fake simulator ptid to the null_ptid.
2320
719546c4
SM
23212020-02-03 Simon Marchi <simon.marchi@efficios.com>
2322
2323 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
2324 * gdbthread.h (class thread_info) <resumed>: Likewise.
2325 * infrun.c (resume_1): Likewise.
2326 (proceed): Likewise.
2327 (infrun_thread_stop_requested): Likewise.
2328 (stop_all_threads): Likewise.
2329 (handle_inferior_event): Likewise.
2330 (restart_threads): Likewise.
2331 (finish_step_over): Likewise.
2332 (keep_going_stepped_thread): Likewise.
2333 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
2334 (linux_handle_extended_wait): Likewise.
2335 * record-btrace.c (get_thread_current_frame_id): Likewise.
2336 * record-full.c (record_full_wait_1): Likewise.
2337 * remote.c (remote_target::process_initial_stop_replies): Likewise.
2338 * target.c (target_resume): Likewise.
2339 * thread.c (set_running_thread): Likewise.
2340
e409c542
AKS
23412020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
2342
2343 * f-valprint.c (f77_print_array_1): Changed datatype of index
2344 variable to LONGEST from int to enable it to contain bound
2345 values correctly.
2346
ee98c0da
MR
23472020-02-03 Maciej W. Rozycki <macro@wdc.com>
2348
2349 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
2350 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
2351 offsets according to FLEN determined.
2352 (riscv_linux_nat_target::read_description): Determine FLEN
2353 dynamically.
2354 (riscv_linux_nat_target::fetch_registers): Size regset buffer
2355 according to FLEN determined.
2356 (riscv_linux_nat_target::store_registers): Likewise.
2357
aa66aac4
SV
23582020-02-01 Shahab Vahedi <shahab@synopsys.com>
2359
2360 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
2361 when reg->group is empty and reggroup is not.
2362
fd9faca8
TT
23632020-01-31 Tom Tromey <tromey@adacore.com>
2364
2365 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
2366 Call beneath target's mourn_inferior after unpushing.
2367
42330a68
AB
23682020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
2369
2370 PR tui/9765
2371 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
2372 have enough lines to fill the screen, still return the lowest
2373 address we found.
2374
7a27a45b
AB
23752020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
2376
2377 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
2378 '-', '<', and '>' commands.
2379
c47f70e2
PA
23802020-01-29 Pedro Alves <palves@redhat.com>
2381 Sergio Durigan Junior <sergiodj@redhat.com>
2382
2383 * infcmd.c (construct_inferior_arguments): Assert that
2384 'argc' is greater than 0.
2385
5133a315
LM
23862020-01-29 Luis Machado <luis.machado@linaro.org>
2387
2388 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
2389 (BRK_INSN_MASK): Define to 0xd4200000.
2390 (aarch64_program_breakpoint_here_p): New function.
2391 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
2392 * arch-utils.c (default_program_breakpoint_here_p): Moved from
2393 breakpoint.c.
2394 * arch-utils.h (default_program_breakpoint_here_p): Moved from
2395 breakpoint.h
2396 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
2397 call gdbarch_program_breakpoint_here_p.
2398 (program_breakpoint_here): Moved to arch-utils.c, renamed to
2399 default_program_breakpoint_here_p, changed return type to bool and
2400 simplified.
2401 * breakpoint.h (program_breakpoint_here): Moved prototype to
2402 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
2403 return type to bool.
2404 * gdbarch.c: Regenerate.
2405 * gdbarch.h: Regenerate.
2406 * gdbarch.sh (program_breakpoint_here_p): New method.
2407 * infrun.c (handle_signal_stop): Call
2408 gdbarch_program_breakpoint_here_p.
2409
168f8c6b
TT
24102020-01-26 Tom Tromey <tom@tromey.com>
2411
2412 * ctfread.c (struct ctf_fp_info): Reindent.
2413 (_initialize_ctfread): Remove.
2414
128a391f
TT
24152020-01-26 Tom Tromey <tom@tromey.com>
2416
2417 * psymtab.c (partial_map_expand_apply)
2418 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
2419 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
2420 (psym_print_stats, psym_expand_symtabs_for_function)
2421 (psym_map_symbol_filenames, psym_map_matching_symbols)
2422 (psym_expand_symtabs_matching)
2423 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
2424 (maintenance_check_psymtabs): Use new methods.
2425 * psympriv.h (struct partial_symtab) <readin_p,
2426 get_compunit_symtab>: New methods.
2427 <readin, compunit_symtab>: Remove members.
2428 (struct standard_psymtab): New.
2429 (struct legacy_psymtab): Derive from standard_psymtab.
2430 * dwarf2read.h (struct dwarf2_psymtab): Derive from
2431 standard_psymtab.
2432 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
2433
0494dbec
TT
24342020-01-26 Tom Tromey <tom@tromey.com>
2435
2436 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
2437 read_dependencies. Add assert.
2438 * psymtab.c (partial_symtab::read_dependencies): New method.
2439 * psympriv.h (struct partial_symtab) <read_dependencies>: New
2440 method.
2441 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
2442 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
2443 read_dependencies.
2444 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
2445 Add assert.
2446
8566b89b
TT
24472020-01-26 Tom Tromey <tom@tromey.com>
2448
2449 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
2450 Call expand_psymtab.
2451 (xcoff_read_symtab): Call expand_psymtab.
2452 (xcoff_start_psymtab, xcoff_end_psymtab): Set
2453 legacy_expand_psymtab.
2454 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
2455 method.
2456 (struct legacy_psymtab) <expand_psymtab>: Implement.
2457 <legacy_expand_psymtab>: New member.
2458 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
2459 (parse_partial_symbols): Set legacy_expand_psymtab.
2460 (psymtab_to_symtab_1): Change argument order. Call
2461 expand_psymtab.
2462 (new_psymtab): Set legacy_expand_psymtab.
2463 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
2464 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
2465 expand_psymtab.
2466 (dwarf2_psymtab::expand_psymtab): Rename from
2467 psymtab_to_symtab_1. Call expand_psymtab.
2468 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
2469 (dbx_end_psymtab): Likewise.
2470 (dbx_psymtab_to_symtab_1): Change argument order. Call
2471 expand_psymtab.
2472 (dbx_read_symtab): Call expand_psymtab.
2473 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
2474 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
2475 (ctf_psymtab::read_symtab): Call expand_psymtab.
2476
077cbab2
TT
24772020-01-26 Tom Tromey <tom@tromey.com>
2478
2479 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
2480 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
2481 messages.
2482 * mdebugread.c (mdebug_read_symtab): Remove prints.
2483 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
2484 assert.
2485 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
2486
891813be
TT
24872020-01-26 Tom Tromey <tom@tromey.com>
2488
2489 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
2490 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
2491 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
2492 legacy_symtab.
2493 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
2494 * psymtab.c (psymtab_to_symtab): Call method.
2495 (dump_psymtab): Update.
2496 * psympriv.h (struct partial_symtab): Add virtual destructor.
2497 <read_symtab>: New method.
2498 (struct legacy_symtab): New.
2499 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
2500 (struct pst_map) <pst>: Now a legacy_psymtab.
2501 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
2502 (new_psymtab): Use legacy_psymtab.
2503 * dwarf2read.h (struct dwarf2_psymtab): New.
2504 (struct dwarf2_per_cu_data) <psymtab>: Use it.
2505 * dwarf2read.c (dwarf2_create_include_psymtab)
2506 (dwarf2_build_include_psymtabs, create_type_unit_group)
2507 (create_partial_symtab, process_psymtab_comp_unit_reader)
2508 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
2509 (set_partial_user): Use dwarf2_psymtab.
2510 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
2511 (psymtab_to_symtab_1, process_full_comp_unit)
2512 (process_full_type_unit, dwarf2_ranges_read)
2513 (dwarf2_get_pc_bounds, psymtab_include_file_name)
2514 (dwarf_decode_lines): Use dwarf2_psymtab.
2515 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
2516 (add_address_entry_worker, write_one_signatured_type)
2517 (recursively_count_psymbols, recursively_write_psymbols)
2518 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
2519 (write_debug_names): Likewise.
2520 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
2521 <pst>: Now a legacy_psymtab.
2522 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
2523 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
2524 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
2525 * ctfread.c (struct ctf_psymtab): New.
2526 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
2527 ctf_psymtab.
2528 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
2529 (create_partial_symtab): Return a ctf_psymtab.
2530 (scan_partial_symbols): Update.
2531
c3693a1d
TT
25322020-01-26 Tom Tromey <tom@tromey.com>
2533
2534 * xcoffread.c (xcoff_start_psymtab): Use new.
2535 * psymtab.c (partial_symtab::partial_symtab): New constructor,
2536 renamed from start_psymtab_common.
2537 * psympriv.h (struct partial_symtab): Add new constructor.
2538 (start_psymtab_common): Don't declare.
2539 * mdebugread.c (parse_partial_symbols): Use new.
2540 * dwarf2read.c (create_partial_symtab): Use new.
2541 * dbxread.c (start_psymtab): Use new.
2542 * ctfread.c (create_partial_symtab): Use new.
2543
32caafd0
TT
25442020-01-26 Tom Tromey <tom@tromey.com>
2545
2546 * xcoffread.c (xcoff_end_psymtab): Use new.
2547 * psymtab.c (start_psymtab_common): Use new.
2548 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
2549 Update.
2550 * psympriv.h (struct partial_symtab): Add parameters to
2551 constructor. Don't inline.
2552 (allocate_psymtab): Don't declare.
2553 * mdebugread.c (new_psymtab): Use new.
2554 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
2555 * dbxread.c (dbx_end_psymtab): Use new.
2556
abaa2f23
TT
25572020-01-26 Tom Tromey <tom@tromey.com>
2558
2559 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
2560 allocate_psymtab. Update documentation.
2561 * psymtab.c (psymtab_storage::install_psymtab): Rename from
2562 allocate_psymtab. Do not use new.
2563 (allocate_psymtab): Use new. Update.
2564
6d94535f
TT
25652020-01-26 Tom Tromey <tom@tromey.com>
2566
2567 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
2568 * psymtab.c (psym_print_stats): Update.
2569 * psympriv.h (struct partial_symtab) <readin,
2570 psymtabs_addrmap_supported, anonymous>: Now bool.
2571 * mdebugread.c (psymtab_to_symtab_1): Update.
2572 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
2573 (build_type_psymtabs_reader, psymtab_to_symtab_1)
2574 (process_full_comp_unit, process_full_type_unit): Update.
2575 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
2576 * ctfread.c (psymtab_to_symtab): Update.
2577
6f17252b
TT
25782020-01-26 Tom Tromey <tom@tromey.com>
2579
2580 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
2581 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
2582 * psymtab.c (psymtab_storage): Delete psymtabs.
2583 (psymtab_storage::allocate_psymtab): Use new.
2584 (psymtab_storage::discard_psymtab): Use delete.
2585 * psympriv.h (struct partial_symtab): Add constructor and
2586 initializers.
2587
f6f1cebc
TT
25882020-01-26 Tom Tromey <tom@tromey.com>
2589
2590 * machoread.c: Do not include psympriv.h.
2591
e47e48f6
PW
25922020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2593
2594 * NEWS: Mention the new option and the set/show commands.
2595
a2fedca9
PW
25962020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2597
2598 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
2599 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
2600 (validate_exec_file): New variables, enums, functions.
2601 (exec_file_locate_attach, print_section_info): Style the filenames.
2602 (_initialize_exec): Install show_exec_file_mismatch_command and
2603 set_exec_file_mismatch_command.
2604 * gdbcore.h (validate_exec_file): Declare.
2605 * infcmd.c (attach_command): Call validate_exec_file.
2606 * remote.c ( remote_target::remote_add_inferior): Likewise.
2607
7ffa82e1
AB
26082020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2609
2610 * frame.c (find_frame_sal): Move call to get_next_frame into more
2611 inner scope.
2612 * inline-frame.c (inilne_state) <inline_state>: Update argument
2613 types.
2614 (inilne_state) <skipped_symbol>: Rename to...
2615 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
2616 (skip_inline_frames): Build vector of skipped symbols and use this
2617 to reate the inline_state.
2618 (inline_skipped_symbol): Add a comment and some assertions, fetch
2619 skipped symbol from the list.
2620
3d92a3e3
AB
26212020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2622
2623 * buildsym.c (lte_is_less_than): Delete.
2624 (buildsym_compunit::end_symtab_with_blockvector): Create local
2625 lambda function to sort line table entries, and use
2626 std::stable_sort instead of std::sort.
2627 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
2628 markers when looking for a previous line.
2629
94a72be7
AB
26302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2631
2632 * dwarf2read.c (lnp_state_machine::record_line): Include
2633 end_sequence parameter in debug print out. Record the line if we
2634 are at an end_sequence marker even if it's not the start of a
2635 statement.
2636 * symmisc.c (maintenance_print_one_line_table): Print end of
2637 sequence markers with 'END' not '0'.
2638
53af73bf
PA
26392020-01-24 Pedro Alves <palves@redhat.com>
2640
2641 PR gdb/25410
2642 * thread.c (scoped_restore_current_thread::restore): Use
2643 switch_to_inferior_no_thread.
2644 * exec.c: Include "progspace-and-thread.h".
2645 (add_target_sections, remove_target_sections):
2646 scoped_restore_current_pspace_and_thread instead of
2647 scoped_restore_current_thread.
2648 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
2649 and aspace to the inferior before calling clone_program_space.
2650 Remove stale comment.
2651
3050c6f4
CB
26522020-01-24 Christian Biesinger <cbiesinger@google.com>
2653
2654 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
2655 (arm_netbsd_nat_target::fetch_registers): ...this.
2656 (arm_nbsd_nat_target::store_registers): Rename to...
2657 (arm_netbsd_nat_target::store_registers): ...this.
2658
73685c7e
CB
26592020-01-24 Christian Biesinger <cbiesinger@google.com>
2660
2661 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
2662 register_t.
2663
89203d40
CB
26642020-01-24 Christian Biesinger <cbiesinger@google.com>
2665
2666 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
2667 Update comment.
2668 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
2669 Likewise.
2670 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
2671 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
2672 the correct replacement (iterate_over_regset_sections).
2673 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
2674 Update comment.
2675
1ba1ac88
AB
26762020-01-24 Graham Markall <graham.markall@embecosm.com>
2677
2678 PR gdb/23718
2679 * gdb/python/python.c (execute_gdb_command): Call
2680 async_enable_stdin in catch block.
2681
f3364a6d
AB
26822020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2683
2684 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
2685 SWITCH_THRU_ALL_UIS.
2686
733d0a67
AB
26872020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
2688
2689 PR tui/9765
2690 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
2691 comment, add extra parameter, and update to store previous symbol
2692 when appropriate.
2693 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
2694 add extra parameter.
2695 * tui/tui-disasm.c (tui_disassemble): Update header comment,
2696 remove unneeded parameter, add try/catch around gdb_print_insn,
2697 rewrite to add items to asm_lines vector.
2698 (tui_find_backward_disassembly_start_address): New function.
2699 (tui_find_disassembly_address): Updated throughout.
2700 (tui_disasm_window::set_contents): Update for changes to
2701 tui_disassemble.
2702 (tui_disasm_window::do_scroll_vertical): No need to adjust the
2703 number of lines to scroll.
2704
b3b3bada
SM
27052020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
2706
2707 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
2708 (SECT_OFF_DATA): Likewise.
2709 (SECT_OFF_RODATA): Likewise.
2710 (SECT_OFF_TEXT): Likewise.
2711 (SECT_OFF_BSS): Likewise.
2712 (struct objfile) <text_section_offset, data_section_offset>: New
2713 methods.
2714 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
2715 objfile::text_section_offset.
2716 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
2717 * coffread.c (coff_symtab_read): Likewise.
2718 (enter_linenos): Likewise.
2719 (process_coff_symbol): Likewise.
2720 * ctfread.c (get_objfile_text_range): Likewise.
2721 * dtrace-probe.c (dtrace_probe::get_relocated_address):
2722 Use objfile::data_section_offset.
2723 * dwarf2-frame.c (execute_cfa_program): Use
2724 objfile::text_section_offset.
2725 (dwarf2_frame_find_fde): Likewise.
2726 * dwarf2read.c (create_addrmap_from_index): Likewise.
2727 (create_addrmap_from_aranges): Likewise.
2728 (dw2_find_pc_sect_compunit_symtab): Likewise.
2729 (process_psymtab_comp_unit_reader): Likewise.
2730 (add_partial_symbol): Likewise.
2731 (add_partial_subprogram): Likewise.
2732 (process_full_comp_unit): Likewise.
2733 (read_file_scope): Likewise.
2734 (read_func_scope): Likewise.
2735 (read_lexical_block_scope): Likewise.
2736 (read_call_site_scope): Likewise.
2737 (dwarf2_rnglists_process): Likewise.
2738 (dwarf2_ranges_process): Likewise.
2739 (dwarf2_ranges_read): Likewise.
2740 (dwarf_decode_lines_1): Likewise.
2741 (new_symbol): Likewise.
2742 (dwarf2_fetch_die_loc_sect_off): Likewise.
2743 (dwarf2_per_cu_text_offset): Likewise.
2744 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
2745 * hppa-tdep.c (read_unwind_info): Likewise.
2746 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
2747 * psympriv.h (struct partial_symtab): Likewise.
2748 * psymtab.c (find_pc_sect_psymtab): Likewise.
2749 * solib-svr4.c (enable_break): Likewise.
2750 * stap-probe.c (relocate_address): Use
2751 objfile::data_section_offset.
2752 * xcoffread.c (enter_line_range): Use
2753 objfile::text_section_offset.
2754 (read_xcoff_symtab): Likewise.
2755
ab53f382
SM
27562020-01-23 Simon Marchi <simon.marchi@efficios.com>
2757
2758 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
2759 declaration to narrower scopes.
2760
e7eee665
SM
27612020-01-23 Simon Marchi <simon.marchi@efficios.com>
2762
2763 * darwin-nat.h (struct darwin_exception_msg, enum
2764 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
2765 Move up.
2766 (class darwin_nat_target) <wait_1, check_new_threads,
2767 decode_exception_message, decode_message, stop_inferior,
2768 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
2769 * darwin-nat.c (darwin_check_new_threads): Rename to...
2770 (darwin_nat_target::check_new_threads): ... this.
2771 (darwin_suspend_inferior_it): Remove.
2772 (darwin_decode_exception_message): Rename to...
2773 (darwin_nat_target::decode_exception_message): ... this.
2774 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
2775 (darwin_decode_message): Rename to...
2776 (darwin_nat_target::decode_message): ... this.
2777 (cancel_breakpoint): Rename to...
2778 (darwin_nat_target::cancel_breakpoint): ... this.
2779 (darwin_wait): Rename to...
2780 (darwin_nat_target::wait_1): ... this. Use range-based for loop
2781 instead of iterate_over_inferiors.
2782 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
2783 (darwin_stop_inferior): Rename to...
2784 (darwin_nat_target::stop_inferior): ... this.
2785 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
2786 (darwin_init_thread_list): Rename to...
2787 (darwin_nat_target::init_thread_list): ... this.
2788 (darwin_ptrace_him): Rename to...
2789 (darwin_nat_target::ptrace_him): ... this.
2790 (darwin_nat_target::create_inferior): Pass lambda function to
2791 fork_inferior.
2792 (darwin_nat_target::detach): Call stop_inferior instead of
2793 darwin_stop_inferior.
2794 * fork-inferior.h (fork_inferior): Change init_trace_fun
2795 parameter to gdb::function_view.
2796 * fork-inferior.c (fork_inferior): Likewise.
2797
c162ed3e
HD
27982020-01-23 Hannes Domani <ssbssa@yahoo.de>
2799
2800 * i386-cygwin-tdep.c (core_process_module_section): Update.
2801 * windows-nat.c (struct lm_info_windows): Add text_offset.
2802 (windows_xfer_shared_libraries): Update.
2803 * windows-tdep.c (windows_xfer_shared_library):
2804 Add text_offset_cached argument.
2805 * windows-tdep.h (windows_xfer_shared_library): Update.
2806
a1237872
SM
28072020-01-21 Simon Marchi <simon.marchi@efficios.com>
2808
2809 * gdbarch.sh: Add declaration for _initialize_gdbarch.
2810
b3ee6dd9
SM
28112020-01-21 Simon Marchi <simon.marchi@efficios.com>
2812
2813 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
2814 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
2815 replace with range-based for.
2816 (gdbsim_interrupt_inferior): Remove.
2817 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
2818 with a range-based for. Inline code from
2819 gdbsim_interrupt_inferior.
2820
f9fac3c8
SM
28212020-01-21 Simon Marchi <simon.marchi@efficios.com>
2822
2823 * infrun.c (proceed): Fix indentation.
2824
f6474de9
TT
28252020-01-21 Tom Tromey <tromey@adacore.com>
2826
2827 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
2828 * python/python.c (python_extension_ops): Update.
2829 (gdbpy_colorize): New function.
2830 * python/lib/gdb/__init__.py (colorize): New function.
2831 * extension.h (ext_lang_colorize): Declare.
2832 * extension.c (ext_lang_colorize): New function.
2833 * extension-priv.h (struct extension_language_ops) <colorize>: New
2834 member.
2835 * cli/cli-style.c (_initialize_cli_style): Update help text.
2836
f0c702d4
LM
28372020-01-21 Luis Machado <luis.machado@linaro.org>
2838
2839 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
2840 <cond>: Change type to bool.
2841 (aarch64_displaced_step_b_cond): Update cond to use bool type.
2842 (aarch64_displaced_step_cb): Likewise.
2843 (aarch64_displaced_step_tb): Likewise.
2844
1ab139e5
LM
28452020-01-21 Luis Machado <luis.machado@linaro.org>
2846
2847 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
2848 output.
2849
0c271889
LM
28502020-01-21 Luis Machado <luis.machado@linaro.org>
2851
2852 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
2853 <pc_adjust>: Adjust the documentation.
2854 (aarch64_displaced_step_fixup): Check if PC really moved before
2855 adjusting it.
2856
4d89c1c7
TT
28572020-01-19 Tom Tromey <tom@tromey.com>
2858
2859 * disasm.c (~gdb_disassembler): New destructor.
2860 (gdb_buffered_insn_length): Call disassemble_free_target.
2861 * disasm.h (class gdb_disassembler): Declare destructor. Use
2862 DISABLE_COPY_AND_ASSIGN.
2863
c0ab21c2
TT
28642020-01-19 Tom Tromey <tom@tromey.com>
2865
2866 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
2867 (die_reader_func_ftype): Remove.
2868 (cutu_reader): New class.
2869 (dw2_get_file_names_reader): Remove "data" parameter.
2870 (dw2_get_file_names): Use cutu_reader.
2871 (create_debug_type_hash_table): Update.
2872 (read_cutu_die_from_dwo): Update comment.
2873 (lookup_dwo_unit): Add dwo_name parameter.
2874 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
2875 die_reader_func_ftype and data parameters.
2876 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
2877 Remove die_reader_func_ftype and data parameters.
2878 (~cutu_reader): New; from init_cutu_and_read_dies.
2879 (cutu_reader::cutu_reader): Rename from
2880 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
2881 and data parameters.
2882 (init_cutu_and_read_dies_simple): Remove.
2883 (struct process_psymtab_comp_unit_data): Remove.
2884 (process_psymtab_comp_unit_reader): Remove data parameter; add
2885 want_partial_unit and pretend_language parameters.
2886 (process_psymtab_comp_unit): Use cutu_reader.
2887 (build_type_psymtabs_reader): Remove data parameter.
2888 (build_type_psymtabs_1): Use cutu_reader.
2889 (process_skeletonless_type_unit): Likewise.
2890 (load_partial_comp_unit_reader): Remove.
2891 (load_partial_comp_unit): Use cutu_reader.
2892 (load_full_comp_unit_reader): Remove.
2893 (load_full_comp_unit): Use cutu_reader.
2894 (struct create_dwo_cu_data): Remove.
2895 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
2896 dwo_unit parameters.
2897 (create_cus_hash_table): Use cutu_reader.
2898 (struct dwarf2_read_addr_index_data): Remove.
2899 (dwarf2_read_addr_index_reader): Remove.
2900 (dwarf2_read_addr_index): Use cutu_reader.
2901 (read_signatured_type_reader): Remove.
2902 (read_signatured_type): Use cutu_reader.
2903
45bbae5c
TT
29042020-01-19 Tom Tromey <tom@tromey.com>
2905
2906 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
2907 * tui/tui-wingeneral.h (class tui_suppress_output): New.
2908 (tui_wrefresh): Declare.
2909 * tui/tui-wingeneral.c (suppress_output): New global.
2910 (tui_suppress_output, ~tui_suppress_output): New constructor and
2911 destructor.
2912 (tui_wrefresh): New function.
2913 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
2914 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
2915 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
2916 method.
2917 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
2918 tui_wrefresh.
2919 (tui_data_window::no_refresh): New method.
2920 (tui_data_item_window::refresh_window): Call tui_wrefresh.
2921 (tui_reg_command): Use tui_suppress_output
2922 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
2923 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
2924 method.
2925 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
2926
4f13c1c0
TT
29272020-01-19 Tom Tromey <tom@tromey.com>
2928
2929 * tui/tui-winsource.c (tui_update_source_windows_with_line):
2930 Handle case where symtab is null.
2931
fa47e446
SM
29322020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
2933
2934 * linux-fork.c (one_fork_p): Simplify.
2935
26f42329
SM
29362020-01-17 Simon Marchi <simon.marchi@efficios.com>
2937
2938 * top.c (struct qt_args): Remove.
2939 (kill_or_detach): Change return type to void, replace `void *`
2940 parameter with a proper one.
2941 (print_inferior_quit_action): Likewise.
2942 (quit_confirm): Use range-based for loop to iterate over inferiors.
2943 (quit_force): Likewise.
2944
a9ac81b1
SM
29452020-01-17 Simon Marchi <simon.marchi@efficios.com>
2946
2947 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
2948 `void *` parameter with proper parameters.
2949 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
2950 (print_one_inferior): Change return type to void, replace `void *`
2951 parameter with proper parameters.
2952 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
2953 inferiors.
2954 (get_other_inferior): Remove.
2955 (mi_cmd_remove_inferior): Use range-based loop to iterate over
2956 inferiors.
2957
788eca49
SM
29582020-01-17 Simon Marchi <simon.marchi@efficios.com>
2959
2960 * mi/mi-interp.c (report_initial_inferior): Remove.
2961 (mi_interp::init): Use range-based for to iterate over inferiors.
2962
d9bc85b6
SM
29632020-01-17 Simon Marchi <simon.marchi@efficios.com>
2964
2965 * python/py-inferior.c (build_inferior_list): Remove.
2966 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
2967
40c94099
CB
29682020-01-16 Christian Biesinger <cbiesinger@google.com>
2969
2970 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
2971 (btrace_stitch_trace): Likewise.
2972 * charset.c (intermediate_encoding): Likewise (vaild).
2973 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
2974 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
2975 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
2976
e0cdfe3c
HD
29772020-01-16 Hannes Domani <ssbssa@yahoo.de>
2978
2979 * windows-tdep.c (windows_get_tlb_type):
2980 Add rtl_user_process_parameters type.
2981
790f1718
PA
29822020-01-16 Pedro Alves <palves@redhat.com>
2983 Norbert Lange <nolange79@gmail.com>
2984
2985 PR build/24805
2986 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
2987 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
2988 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
2989 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
2990 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
2991 (ps_plog): Redeclare exported functions with default visibility.
2992
3112ed97
NA
29932020-01-16 Nitika Achra <Nitika.Achra@amd.com>
2994
2995 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
2996 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
2997
8dc3273e
SM
29982020-01-15 Simon Marchi <simon.marchi@efficios.com>
2999
3000 * infcmd.c (post_create_inferior): Use get_thread_regcache
3001 instead of get_current_regcache.
3002
ff47f4f0
TT
30032020-01-14 Tom Tromey <tom@tromey.com>
3004
3005 PR symtab/12535:
3006 * python/python.c (gdbpy_decode_line): Treat empty string the same
3007 as no argument.
3008
975f45b7
TT
30092020-01-14 Tom Tromey <tom@tromey.com>
3010
3011 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
3012
25e57356
TT
30132020-01-14 Tom Tromey <tom@tromey.com>
3014
3015 * nat/linux-btrace.c: Don't include <config.h>.
3016 * nat/linux-ptrace.c: Don't include <config.h>.
3017 * nat/x86-linux-dregs.c: Don't include <config.h>.
3018
05ea2a05
TT
30192020-01-14 Tom Tromey <tom@tromey.com>
3020
3021 * configure: Rebuild.
3022 * configure.ac: Move many checks to ../gdbsupport/common.m4.
3023
01027315
TT
30242020-01-14 Tom Tromey <tom@tromey.com>
3025
3026 * nat/x86-linux-dregs.c: Include configh.h.
3027 * nat/linux-ptrace.c: Include configh.h.
3028 * nat/linux-btrace.c: Include configh.h.
3029 * defs.h: Include config.h, bfd.h.
3030 * configure.ac: Don't source common.host.
3031 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
3032 * configure: Rebuild.
3033 * acinclude.m4: Update path.
3034 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
3035 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
3036 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
3037 (CLIBS): Add LIBSUPPORT.
3038 (CDEPS): Likewise.
3039 (COMMON_SFILES): Remove gdbsupport files.
3040 (HFILES_NO_SRCDIR): Likewise.
3041 (stamp-version): Update path to create-version.sh.
3042 (ALLDEPFILES): Remove gdbsupport files.
3043
b2ceabe8
TT
30442020-01-14 Tom Tromey <tom@tromey.com>
3045
3046 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
3047 USE_WIN32API when needed.
3048 * configure.ac (USE_WIN32API): Don't define.
3049 (WIN32LIBS): Use WIN32APILIBS.
3050 * configure: Rebuild.
3051
25c51f71
TT
30522020-01-14 Tom Tromey <tom@tromey.com>
3053
3054 * configure: Rebuild.
3055 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
3056
717c684d
BE
30572020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
3058
3059 * skip.c (skip_function_command): Make skip w/o arguments use the
3060 name of the inlined function if pc is inside any inlined function.
3061
7da6a5b9
LM
30622020-01-14 Luis Machado <luis.machado@linaro.org>
3063
3064 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
3065 * infrun.c (resume_1): Likewise.
3066 (handle_inferior_event): Remove stale comment.
3067 * linux-nat.c (linux_nat_target::resume): Update comments.
3068 (save_stop_reason): Likewise.
3069 (linux_nat_filter_event): Likewise.
3070 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
3071
44e4c775
AB
30722020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3073
3074 * elfread.c (record_minimal_symbol): Set section index to 0 for
3075 non-allocatable sections.
3076
18a8505e
AT
3077
30782020-01-13 Ali Tamur <tamur@google.com>
3079
3080 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
3081 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
3082 to gdb::optional. Update comments.
3083 (dwo_file): Update comments.
3084 (read_attribute): Update API to take an additional out parameter,
3085 need_reprocess. This is used to mark attributes that need other
3086 attributes (e.g. str_offsets_base) for correct computation which may not
3087 have been read yet.
3088 (read_attribute_reprocess): New function declaration.
3089 (read_addr_index): Likewise.
3090 (read_dwo_str_index): Likewise.
3091 (read_stub_str_index): Likewise.
3092 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
3093 (lookup_addr_base): New function definition.
3094 (lookup_ranges_base): Likewise.
3095 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
3096 lookup_ranges_base.
3097 (init_cutu_and_read_dies): Update comments.
3098 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
3099 unit. This is used to inherit parent's str_offsets_base and addr_base.
3100 Update comments.
3101 (init_cutu_and_read_dies_simple): Reflect API changes.
3102 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
3103 (create_cus_hash_table): Change API to take parent compile unit.
3104 Reflect API changes.
3105 (open_and_init_dwo_file): Reflect API changes.
3106 (dwarf2_get_pc_bounds): Update comments.
3107 (dwarf2_record_block_ranges): Likewise.
3108 (read_full_die_1): Change implementation to reprocess attributes that
3109 need str_offsets_base and addr_base.
3110 (partial_die_info::read): Likewise.
3111 (read_attribute_reprocess): New function definition.
3112 (read_attribute_value): Change API to take an additional out parameter,
3113 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
3114 when a non-dwo compile unit has index based attributes.
3115 (read_attribute): Reflect API changes.
3116 (read_addr_index_1): Reflect API changes. Update comments.
3117 (dwarf2_read_addr_index_data): Reflect API changes.
3118 (dwarf2_read_addr_index): Likewise.
3119 (read_str_index): Change API and implementation. This becomes a helper
3120 to be used by the new string index related methods. Update error
3121 message and comments.
3122 (read_dwo_str_index): New function definition.
3123 (read_stub_str_index): Likewise.
3124 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
3125 * symfile.h (dwarf2_debug_sections): Likewise.
3126 * xcoffread.c (dwarf2_debug_sections): Likewise.
3127
0cac9354
SM
31282020-01-13 Simon Marchi <simon.marchi@efficios.com>
3129
3130 * gdbcore.h (struct core_fns) <core_read_registers>: Change
3131 core_reg_sect type to gdb_byte *.
3132 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
3133 * cris-tdep.c (fetch_core_registers): Likewise.
3134 * corelow.c (core_target::get_core_register_section): Change
3135 type of `contents` to gdb::byte_vector.
3136
9a6d629c
AB
31372020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
3138
3139 * tui/tui-wingeneral.c (box_win): Position the title in the center
3140 of the border.
3141
d8b2f9e3
SM
31422020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3143
3144 * corelow.c (core_target::get_core_register_section): Use
3145 std::vector instead of alloca.
3146
bb564c58
SM
31472020-01-13 Simon Marchi <simon.marchi@efficios.com>
3148
3149 * warning.m4: Add -Wmissing-declarations to build_warnings.
3150 * configure: Re-generate.
3151
6b366111
SM
31522020-01-13 Simon Marchi <simon.marchi@efficios.com>
3153
3154 * python/python.c (init__gdb_module): Add declaration.
3155
6c265988
SM
31562020-01-13 Simon Marchi <simon.marchi@efficios.com>
3157
3158 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
3159 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
3160 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
3161 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
3162 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
3163 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
3164 * ada-exp.y (_initialize_ada_exp): Add declaration.
3165 * ada-lang.c (_initialize_ada_language): Add declaration.
3166 * ada-tasks.c (_initialize_tasks): Add declaration.
3167 * agent.c (_initialize_agent): Add declaration.
3168 * aix-thread.c (_initialize_aix_thread): Add declaration.
3169 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
3170 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
3171 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
3172 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
3173 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
3174 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
3175 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
3176 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
3177 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
3178 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
3179 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
3180 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
3181 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
3182 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
3183 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
3184 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
3185 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
3186 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
3187 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
3188 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
3189 * annotate.c (_initialize_annotate): Add declaration.
3190 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
3191 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
3192 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
3193 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
3194 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
3195 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
3196 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
3197 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
3198 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
3199 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
3200 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
3201 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
3202 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
3203 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
3204 * auto-load.c (_initialize_auto_load): Add declaration.
3205 * auxv.c (_initialize_auxv): Add declaration.
3206 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
3207 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
3208 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
3209 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
3210 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
3211 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
3212 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
3213 * breakpoint.c (_initialize_breakpoint): Add declaration.
3214 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
3215 * btrace.c (_initialize_btrace): Add declaration.
3216 * charset.c (_initialize_charset): Add declaration.
3217 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
3218 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
3219 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
3220 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
3221 * cli/cli-script.c (_initialize_cli_script): Add declaration.
3222 * cli/cli-style.c (_initialize_cli_style): Add declaration.
3223 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
3224 * coffread.c (_initialize_coffread): Add declaration.
3225 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
3226 * compile/compile.c (_initialize_compile): Add declaration.
3227 * complaints.c (_initialize_complaints): Add declaration.
3228 * completer.c (_initialize_completer): Add declaration.
3229 * copying.c (_initialize_copying): Add declaration.
3230 * corefile.c (_initialize_core): Add declaration.
3231 * corelow.c (_initialize_corelow): Add declaration.
3232 * cp-abi.c (_initialize_cp_abi): Add declaration.
3233 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
3234 * cp-support.c (_initialize_cp_support): Add declaration.
3235 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
3236 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
3237 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
3238 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
3239 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
3240 * ctfread.c (_initialize_ctfread): Add declaration.
3241 * d-lang.c (_initialize_d_language): Add declaration.
3242 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
3243 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
3244 * dbxread.c (_initialize_dbxread): Add declaration.
3245 * dcache.c (_initialize_dcache): Add declaration.
3246 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
3247 * disasm.c (_initialize_disasm): Add declaration.
3248 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
3249 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
3250 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
3251 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
3252 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
3253 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
3254 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
3255 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
3256 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
3257 * elfread.c (_initialize_elfread): Add declaration.
3258 * exec.c (_initialize_exec): Add declaration.
3259 * extension.c (_initialize_extension): Add declaration.
3260 * f-lang.c (_initialize_f_language): Add declaration.
3261 * f-valprint.c (_initialize_f_valprint): Add declaration.
3262 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
3263 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
3264 * filesystem.c (_initialize_filesystem): Add declaration.
3265 * findcmd.c (_initialize_mem_search): Add declaration.
3266 * findvar.c (_initialize_findvar): Add declaration.
3267 * fork-child.c (_initialize_fork_child): Add declaration.
3268 * frame-base.c (_initialize_frame_base): Add declaration.
3269 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
3270 * frame.c (_initialize_frame): Add declaration.
3271 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
3272 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
3273 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
3274 * gcore.c (_initialize_gcore): Add declaration.
3275 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
3276 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
3277 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
3278 * gdbarch.c (_initialize_gdbarch): Add declaration.
3279 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
3280 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
3281 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
3282 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
3283 * go-lang.c (_initialize_go_language): Add declaration.
3284 * go32-nat.c (_initialize_go32_nat): Add declaration.
3285 * guile/guile.c (_initialize_guile): Add declaration.
3286 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
3287 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
3288 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
3289 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
3290 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
3291 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
3292 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
3293 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
3294 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
3295 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
3296 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
3297 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
3298 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
3299 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
3300 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
3301 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
3302 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
3303 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
3304 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
3305 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
3306 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
3307 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
3308 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
3309 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
3310 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
3311 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
3312 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
3313 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
3314 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
3315 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
3316 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
3317 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
3318 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
3319 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
3320 * infcall.c (_initialize_infcall): Add declaration.
3321 * infcmd.c (_initialize_infcmd): Add declaration.
3322 * inflow.c (_initialize_inflow): Add declaration.
3323 * infrun.c (_initialize_infrun): Add declaration.
3324 * interps.c (_initialize_interpreter): Add declaration.
3325 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
3326 * jit.c (_initialize_jit): Add declaration.
3327 * language.c (_initialize_language): Add declaration.
3328 * linux-fork.c (_initialize_linux_fork): Add declaration.
3329 * linux-nat.c (_initialize_linux_nat): Add declaration.
3330 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
3331 * linux-thread-db.c (_initialize_thread_db): Add declaration.
3332 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
3333 * m2-lang.c (_initialize_m2_language): Add declaration.
3334 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
3335 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
3336 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
3337 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
3338 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
3339 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
3340 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
3341 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
3342 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
3343 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
3344 * machoread.c (_initialize_machoread): Add declaration.
3345 * macrocmd.c (_initialize_macrocmd): Add declaration.
3346 * macroscope.c (_initialize_macroscope): Add declaration.
3347 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
3348 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
3349 * maint.c (_initialize_maint_cmds): Add declaration.
3350 * mdebugread.c (_initialize_mdebugread): Add declaration.
3351 * memattr.c (_initialize_mem): Add declaration.
3352 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
3353 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
3354 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
3355 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
3356 * mi/mi-main.c (_initialize_mi_main): Add declaration.
3357 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
3358 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
3359 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
3360 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
3361 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
3362 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
3363 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
3364 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
3365 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
3366 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
3367 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
3368 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
3369 * mipsread.c (_initialize_mipsread): Add declaration.
3370 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
3371 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
3372 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
3373 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
3374 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
3375 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
3376 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
3377 * nto-procfs.c (_initialize_procfs): Add declaration.
3378 * objc-lang.c (_initialize_objc_language): Add declaration.
3379 * observable.c (_initialize_observer): Add declaration.
3380 * opencl-lang.c (_initialize_opencl_language): Add declaration.
3381 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
3382 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
3383 * osabi.c (_initialize_gdb_osabi): Add declaration.
3384 * osdata.c (_initialize_osdata): Add declaration.
3385 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
3386 * parse.c (_initialize_parse): Add declaration.
3387 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
3388 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
3389 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
3390 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
3391 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
3392 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
3393 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
3394 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
3395 * printcmd.c (_initialize_printcmd): Add declaration.
3396 * probe.c (_initialize_probe): Add declaration.
3397 * proc-api.c (_initialize_proc_api): Add declaration.
3398 * proc-events.c (_initialize_proc_events): Add declaration.
3399 * proc-service.c (_initialize_proc_service): Add declaration.
3400 * procfs.c (_initialize_procfs): Add declaration.
3401 * producer.c (_initialize_producer): Add declaration.
3402 * psymtab.c (_initialize_psymtab): Add declaration.
3403 * python/python.c (_initialize_python): Add declaration.
3404 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
3405 * record-btrace.c (_initialize_record_btrace): Add declaration.
3406 * record-full.c (_initialize_record_full): Add declaration.
3407 * record.c (_initialize_record): Add declaration.
3408 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
3409 * regcache.c (_initialize_regcache): Add declaration.
3410 * reggroups.c (_initialize_reggroup): Add declaration.
3411 * remote-notif.c (_initialize_notif): Add declaration.
3412 * remote-sim.c (_initialize_remote_sim): Add declaration.
3413 * remote.c (_initialize_remote): Add declaration.
3414 * reverse.c (_initialize_reverse): Add declaration.
3415 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
3416 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
3417 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
3418 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
3419 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
3420 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
3421 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
3422 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
3423 Add declaration.
3424 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
3425 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
3426 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
3427 * rust-exp.y (_initialize_rust_exp): Add declaration.
3428 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
3429 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
3430 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
3431 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
3432 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
3433 * score-tdep.c (_initialize_score_tdep): Add declaration.
3434 * ser-go32.c (_initialize_ser_dos): Add declaration.
3435 * ser-mingw.c (_initialize_ser_windows): Add declaration.
3436 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
3437 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
3438 * ser-uds.c (_initialize_ser_socket): Add declaration.
3439 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
3440 * serial.c (_initialize_serial): Add declaration.
3441 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
3442 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
3443 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
3444 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
3445 * skip.c (_initialize_step_skip): Add declaration.
3446 * sol-thread.c (_initialize_sol_thread): Add declaration.
3447 * solib-aix.c (_initialize_solib_aix): Add declaration.
3448 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
3449 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
3450 * solib-frv.c (_initialize_frv_solib): Add declaration.
3451 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
3452 * solib-target.c (_initialize_solib_target): Add declaration.
3453 * solib.c (_initialize_solib): Add declaration.
3454 * source-cache.c (_initialize_source_cache): Add declaration.
3455 * source.c (_initialize_source): Add declaration.
3456 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
3457 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
3458 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
3459 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
3460 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
3461 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
3462 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
3463 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
3464 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
3465 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
3466 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
3467 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
3468 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
3469 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
3470 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
3471 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
3472 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
3473 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
3474 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
3475 * stabsread.c (_initialize_stabsread): Add declaration.
3476 * stack.c (_initialize_stack): Add declaration.
3477 * stap-probe.c (_initialize_stap_probe): Add declaration.
3478 * std-regs.c (_initialize_frame_reg): Add declaration.
3479 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
3480 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
3481 * symfile.c (_initialize_symfile): Add declaration.
3482 * symmisc.c (_initialize_symmisc): Add declaration.
3483 * symtab.c (_initialize_symtab): Add declaration.
3484 * target.c (_initialize_target): Add declaration.
3485 * target-connection.c (_initialize_target_connection): Add
3486 declaration.
3487 * target-dcache.c (_initialize_target_dcache): Add declaration.
3488 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
3489 * thread.c (_initialize_thread): Add declaration.
3490 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
3491 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
3492 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
3493 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
3494 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
3495 * tracectf.c (_initialize_ctf): Add declaration.
3496 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
3497 * tracefile.c (_initialize_tracefile): Add declaration.
3498 * tracepoint.c (_initialize_tracepoint): Add declaration.
3499 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
3500 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
3501 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
3502 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
3503 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
3504 * tui/tui-win.c (_initialize_tui_win): Add declaration.
3505 * tui/tui.c (_initialize_tui): Add declaration.
3506 * typeprint.c (_initialize_typeprint): Add declaration.
3507 * ui-style.c (_initialize_ui_style): Add declaration.
3508 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
3509 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
3510 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
3511 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
3512 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
3513 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
3514 * unittests/filtered_iterator-selftests.c
3515 (_initialize_filtered_iterator_selftests): Add declaration.
3516 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
3517 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
3518 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
3519 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
3520 * unittests/main-thread-selftests.c
3521 (_initialize_main_thread_selftests): Add declaration.
3522 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
3523 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
3524 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
3525 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
3526 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
3527 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
3528 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
3529 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
3530 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
3531 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
3532 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
3533 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
3534 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
3535 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
3536 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
3537 declaration.
3538 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
3539 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
3540 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
3541 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
3542 * user-regs.c (_initialize_user_regs): Add declaration.
3543 * utils.c (_initialize_utils): Add declaration.
3544 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
3545 * valops.c (_initialize_valops): Add declaration.
3546 * valprint.c (_initialize_valprint): Add declaration.
3547 * value.c (_initialize_values): Add declaration.
3548 * varobj.c (_initialize_varobj): Add declaration.
3549 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
3550 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
3551 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
3552 * windows-nat.c (_initialize_windows_nat): Add declaration.
3553 (_initialize_check_for_gdb_ini): Add declaration.
3554 (_initialize_loadable): Add declaration.
3555 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
3556 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
3557 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
3558 * xcoffread.c (_initialize_xcoffread): Add declaration.
3559 * xml-support.c (_initialize_xml_support): Add declaration.
3560 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
3561 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
3562 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
3563 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
3564
e2de1eec
SM
35652020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3566
3567 * regformats/regdat.sh: Generate declaration for init function.
3568
e0037b4c
SM
35692020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
3570
3571 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
3572 up.
3573 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
3574 close_one_inferior>: New methods.
3575 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
3576 pass down target to find_inferior_pid.
3577 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
3578 Pass down target to find_inferior_ptid.
3579 (gdbsim_target::create_inferior): Pass down target to
3580 add_thread_silent.
3581 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
3582 target down to find_inferior_ptid and switch_to_thread.
3583 (gdbsim_target::close): Update to call close_one_inferior.
3584 (struct resume_data): Remove.
3585 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
3586 directly, rather than through a void pointer.
3587 (gdbsim_target::resume): Update to call resume_one_inferior.
3588
58920b5b
SM
35892020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
3590
3591 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
3592
4ec89149
PA
35932020-01-12 Pedro Alves <palves@redhat.com>
3594
3595 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
3596 directly for the current inferior instead of
3597 discard_all_inferiors.
3598 (discard_all_inferiors): Delete.
3599
7c392d1d
TT
36002020-01-11 Tom Tromey <tom@tromey.com>
3601
3602 * tui/tui-wingeneral.c (box_win): Check cli_styling.
3603 * tui/tui-winsource.c (tui_source_window_base::refill): Use
3604 deprecated_safe_get_selected_frame.
3605
d9ebdab7
TBA
36062020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3607
3608 * inferior.c (print_inferior): Switch inferior before printing it.
3609
f3c469b9
PA
36102020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
3611 Pedro Alves <palves@redhat.com>
3612
3613 * progspace-and-thread.c (switch_to_program_space_and_thread):
3614 Assert there's an inferior for PSPACE. Use
3615 switch_to_inferior_no_thread to switch the inferior too.
3616 * progspace.c (program_space::~program_space): Call
3617 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
3618 (program_space::free_all_objfiles): Don't call clear_symtab_users
3619 here.
3620 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
3621
65c574f6
PA
36222020-01-10 Pedro Alves <palves@redhat.com>
3623
3624 * NEWS: Mention multi-target debugging, "info connections", and
3625 "add-inferior -no-connection".
3626
2f4fcf00
PA
36272020-01-10 Pedro Alves <palves@redhat.com>
3628
3629 * infrun.c: Include "target-connection.h".
3630 (check_multi_target_resumption): New.
3631 (proceed): Call it.
3632 * target-connection.c (make_target_connection_string): Make
3633 extern.
3634 * target-connection.h (make_target_connection_string): Declare.
3635
121b3efd
PA
36362020-01-10 Pedro Alves <palves@redhat.com>
3637
3638 * Makefile.in (COMMON_SFILES): Add target-connection.c.
3639 * inferior.c (uiout_field_connection): New function.
3640 (print_inferior): Add new "connection-id" column.
3641 (add_inferior_command): Show connection number/string of added
3642 inferior.
3643 * process-stratum-target.h
3644 (process_stratum_target::connection_string): New virtual method.
3645 (process_stratum_target::connection_number): New field.
3646 * remote.c (remote_target::connection_string): New override.
3647 * target-connection.c: New file.
3648 * target-connection.h: New file.
3649 * target.c (decref_target): Remove process_stratum targets from
3650 the connection list.
3651 (target_stack::push): Add process_stratum targets to the
3652 connection list.
3653
4f837581
PA
36542020-01-10 Pedro Alves <palves@redhat.com>
3655
3656 Revert:
3657 2016-04-12 Pedro Alves <palves@redhat.com>
3658 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
3659 Remove references to name.
3660 * serial.h (struct serial) <name>: Delete.
3661
f4ec508e
PA
36622020-01-10 Pedro Alves <palves@redhat.com>
3663
3664 * gdbarch-selftests.c (register_to_value_test): Remove "target
3665 already pushed" check.
3666
5b6d1e4f
PA
36672020-01-10 Pedro Alves <palves@redhat.com>
3668 John Baldwin <jhb@FreeBSD.org>
3669
3670 * aarch64-linux-nat.c
3671 (aarch64_linux_nat_target::thread_architecture): Adjust.
3672 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
3673 (task_command_1): Likewise.
3674 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
3675 (aix_thread_target::wait, aix_thread_target::fetch_registers)
3676 (aix_thread_target::store_registers)
3677 (aix_thread_target::thread_alive): Adjust.
3678 * amd64-fbsd-tdep.c: Include "inferior.h".
3679 (amd64fbsd_get_thread_local_address): Pass down target.
3680 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
3681 thread's gdbarch instead of target_gdbarch.
3682 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
3683 get_last_target_status.
3684 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
3685 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
3686 inferiors.
3687 (update_inserted_breakpoint_locations): Skip if inferiors with no
3688 execution.
3689 (update_global_location_list): When handling moribund locations,
3690 find representative inferior for location's pspace, and use thread
3691 count of its process_stratum target.
3692 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
3693 * bsd-uthread.c (bsd_uthread_target::wait): Use
3694 as_process_stratum_target and adjust thread_change_ptid and
3695 add_thread calls.
3696 (bsd_uthread_target::update_thread_list): Use
3697 as_process_stratum_target and adjust find_thread_ptid,
3698 thread_change_ptid and add_thread calls.
3699 * btrace.c (maint_btrace_packet_history_cmd): Adjust
3700 find_thread_ptid call.
3701 * corelow.c (add_to_thread_list): Adjust add_thread call.
3702 (core_target_open): Adjust add_thread_silent and thread_count
3703 calls.
3704 (core_target::pid_to_str): Adjust find_inferior_ptid call.
3705 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
3706 * event-top.c (async_disconnect): Pop targets from all inferiors.
3707 * exec.c (add_target_sections): Push exec target on all inferiors
3708 sharing the program space.
3709 (remove_target_sections): Remove the exec target from all
3710 inferiors sharing the program space.
3711 (exec_on_vfork): New.
3712 * exec.h (exec_on_vfork): Declare.
3713 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
3714 Pass it down.
3715 (fbsd_nat_target::update_thread_list): Adjust.
3716 (fbsd_nat_target::resume): Adjust.
3717 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
3718 down.
3719 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
3720 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
3721 get_thread_arch_regcache call.
3722 * fork-child.c (gdb_startup_inferior): Pass target down to
3723 startup_inferior and set_executing.
3724 * gdbthread.h (struct process_stratum_target): Forward declare.
3725 (add_thread, add_thread_silent, add_thread_with_info)
3726 (in_thread_list): Add process_stratum_target parameter.
3727 (find_thread_ptid(inferior*, ptid_t)): New overload.
3728 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
3729 parameter.
3730 (all_threads()): Delete overload.
3731 (all_threads, all_non_exited_threads): Add process_stratum_target
3732 parameter.
3733 (all_threads_safe): Use brace initialization.
3734 (thread_count): Add process_stratum_target parameter.
3735 (set_resumed, set_running, set_stop_requested, set_executing)
3736 (threads_are_executing, finish_thread_state): Add
3737 process_stratum_target parameter.
3738 (switch_to_thread): Use is_current_thread.
3739 * i386-fbsd-tdep.c: Include "inferior.h".
3740 (i386fbsd_get_thread_local_address): Pass down target.
3741 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
3742 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
3743 have_inferiors check.
3744 * inf-ptrace.c (inf_ptrace_target::create_inferior)
3745 (inf_ptrace_target::attach): Adjust.
3746 * infcall.c (run_inferior_call): Adjust.
3747 * infcmd.c (run_command_1): Pass target to
3748 scoped_finish_thread_state.
3749 (proceed_thread_callback): Skip inferiors with no execution.
3750 (continue_command): Rename 'all_threads' local to avoid hiding
3751 'all_threads' function. Adjust get_last_target_status call.
3752 (prepare_one_step): Adjust set_running call.
3753 (signal_command): Use user_visible_resume_target. Compare thread
3754 pointers instead of inferior_ptid.
3755 (info_program_command): Adjust to pass down target.
3756 (attach_command): Mark target's 'thread_executing' flag.
3757 (stop_current_target_threads_ns): New, factored out from ...
3758 (interrupt_target_1): ... this. Switch inferior before making
3759 target calls.
3760 * inferior-iter.h
3761 (struct all_inferiors_iterator, struct all_inferiors_range)
3762 (struct all_inferiors_safe_range)
3763 (struct all_non_exited_inferiors_range): Filter on
3764 process_stratum_target too. Remove explicit.
3765 * inferior.c (inferior::inferior): Push dummy target on target
3766 stack.
3767 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
3768 Add process_stratum_target parameter, and pass it down.
3769 (have_live_inferiors): Adjust.
3770 (switch_to_inferior_and_push_target): New.
3771 (add_inferior_command, clone_inferior_command): Handle
3772 "-no-connection" parameter. Use
3773 switch_to_inferior_and_push_target.
3774 (_initialize_inferior): Mention "-no-connection" option in
3775 the help of "add-inferior" and "clone-inferior" commands.
3776 * inferior.h: Include "process-stratum-target.h".
3777 (interrupt_target_1): Use bool.
3778 (struct inferior) <push_target, unpush_target, target_is_pushed,
3779 find_target_beneath, top_target, process_target, target_at,
3780 m_stack>: New.
3781 (discard_all_inferiors): Delete.
3782 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
3783 (all_inferiors, all_non_exited_inferiors): Add
3784 process_stratum_target parameter.
3785 * infrun.c: Include "gdb_select.h" and <unordered_map>.
3786 (target_last_proc_target): New global.
3787 (follow_fork_inferior): Push target on new inferior. Pass target
3788 to add_thread_silent. Call exec_on_vfork. Handle target's
3789 reference count.
3790 (follow_fork): Adjust get_last_target_status call. Also consider
3791 target.
3792 (follow_exec): Push target on new inferior.
3793 (struct execution_control_state) <target>: New field.
3794 (user_visible_resume_target): New.
3795 (do_target_resume): Call target_async.
3796 (resume_1): Set target's threads_executing flag. Consider resume
3797 target.
3798 (commit_resume_all_targets): New.
3799 (proceed): Also consider resume target. Skip threads of inferiors
3800 with no execution. Commit resumtion in all targets.
3801 (start_remote): Pass current inferior to wait_for_inferior.
3802 (infrun_thread_stop_requested): Consider target as well. Pass
3803 thread_info pointer to clear_inline_frame_state instead of ptid.
3804 (infrun_thread_thread_exit): Consider target as well.
3805 (random_pending_event_thread): New inferior parameter. Use it.
3806 (do_target_wait): Rename to ...
3807 (do_target_wait_1): ... this. Add inferior parameter, and pass it
3808 down.
3809 (threads_are_resumed_pending_p, do_target_wait): New.
3810 (prepare_for_detach): Adjust calls.
3811 (wait_for_inferior): New inferior parameter. Handle it. Use
3812 do_target_wait_1 instead of do_target_wait.
3813 (fetch_inferior_event): Adjust. Switch to representative
3814 inferior. Pass target down.
3815 (set_last_target_status): Add process_stratum_target parameter.
3816 Save target in global.
3817 (get_last_target_status): Add process_stratum_target parameter and
3818 handle it.
3819 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
3820 (context_switch): Check inferior_ptid == null_ptid before calling
3821 inferior_thread().
3822 (get_inferior_stop_soon): Pass down target.
3823 (wait_one): Rename to ...
3824 (poll_one_curr_target): ... this.
3825 (struct wait_one_event): New.
3826 (wait_one): New.
3827 (stop_all_threads): Adjust.
3828 (handle_no_resumed, handle_inferior_event): Adjust to consider the
3829 event's target.
3830 (switch_back_to_stepped_thread): Also consider target.
3831 (print_stop_event): Update.
3832 (normal_stop): Update. Also consider the resume target.
3833 * infrun.h (wait_for_inferior): Remove declaration.
3834 (user_visible_resume_target): New declaration.
3835 (get_last_target_status, set_last_target_status): New
3836 process_stratum_target parameter.
3837 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
3838 process_stratum_target parameter, and use it.
3839 (clear_inline_frame_state (thread_info*)): New.
3840 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
3841 process_stratum_target parameter.
3842 (clear_inline_frame_state (thread_info*)): Declare.
3843 * linux-fork.c (delete_checkpoint_command): Pass target down to
3844 find_thread_ptid.
3845 (checkpoint_command): Adjust.
3846 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
3847 instead of just tweaking inferior_ptid.
3848 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
3849 (exit_lwp): Pass target down to find_thread_ptid.
3850 (attach_proc_task_lwp_callback): Pass target down to
3851 add_thread/set_running/set_executing.
3852 (linux_nat_target::attach): Pass target down to
3853 thread_change_ptid.
3854 (get_detach_signal): Pass target down to find_thread_ptid.
3855 Consider last target status's target.
3856 (linux_resume_one_lwp_throw, resume_lwp)
3857 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
3858 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
3859 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
3860 (linux_nat_target::async_wait_fd): New.
3861 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
3862 target down.
3863 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
3864 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
3865 * linux-thread-db.c (struct thread_db_info::process_target): New
3866 field.
3867 (add_thread_db_info): Save target.
3868 (get_thread_db_info): New process_stratum_target parameter. Also
3869 match target.
3870 (delete_thread_db_info): New process_stratum_target parameter.
3871 Also match target.
3872 (thread_from_lwp): Adjust to pass down target.
3873 (thread_db_notice_clone): Pass down target.
3874 (check_thread_db_callback): Pass down target.
3875 (try_thread_db_load_1): Always push the thread_db target.
3876 (try_thread_db_load, record_thread): Pass target down.
3877 (thread_db_target::detach): Pass target down. Always unpush the
3878 thread_db target.
3879 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
3880 target down. Always unpush the thread_db target.
3881 (find_new_threads_callback, thread_db_find_new_threads_2)
3882 (thread_db_target::update_thread_list): Pass target down.
3883 (thread_db_target::pid_to_str): Pass current inferior down.
3884 (thread_db_target::get_thread_local_address): Pass target down.
3885 (thread_db_target::resume, maintenance_check_libthread_db): Pass
3886 target down.
3887 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
3888 * procfs.c (procfs_target::procfs_init_inferior): Declare.
3889 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
3890 (procfs_init_inferior): Rename to ...
3891 (procfs_target::procfs_init_inferior): ... this and adjust.
3892 (procfs_target::create_inferior, procfs_notice_thread)
3893 (procfs_do_thread_registers): Adjust.
3894 * ppc-fbsd-tdep.c: Include "inferior.h".
3895 (ppcfbsd_get_thread_local_address): Pass down target.
3896 * proc-service.c (ps_xfer_memory): Switch current inferior and
3897 program space as well.
3898 (get_ps_regcache): Pass target down.
3899 * process-stratum-target.c
3900 (process_stratum_target::thread_address_space)
3901 (process_stratum_target::thread_architecture): Pass target down.
3902 * process-stratum-target.h
3903 (process_stratum_target::threads_executing): New field.
3904 (as_process_stratum_target): New.
3905 * ravenscar-thread.c
3906 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
3907 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
3908 down.
3909 * record-btrace.c (record_btrace_target::info_record): Adjust.
3910 (record_btrace_target::record_method)
3911 (record_btrace_target::record_is_replaying)
3912 (record_btrace_target::fetch_registers)
3913 (get_thread_current_frame_id, record_btrace_target::resume)
3914 (record_btrace_target::wait, record_btrace_target::stop): Pass
3915 target down.
3916 * record-full.c (record_full_wait_1): Switch to event thread.
3917 Pass target down.
3918 * regcache.c (regcache::regcache)
3919 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
3920 process_stratum_target parameter and handle it.
3921 (current_thread_target): New global.
3922 (get_thread_regcache): Add process_stratum_target parameter and
3923 handle it. Switch inferior before calling target method.
3924 (get_thread_regcache): Pass target down.
3925 (get_thread_regcache_for_ptid): Pass target down.
3926 (registers_changed_ptid): Add process_stratum_target parameter and
3927 handle it.
3928 (registers_changed_thread, registers_changed): Pass target down.
3929 (test_get_thread_arch_aspace_regcache): New.
3930 (current_regcache_test): Define a couple local test_target_ops
3931 instances and use them for testing.
3932 (readwrite_regcache): Pass process_stratum_target parameter.
3933 (cooked_read_test, cooked_write_test): Pass mock_target down.
3934 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
3935 (get_thread_arch_aspace_regcache): Add process_stratum_target
3936 parameter.
3937 (regcache::target): New method.
3938 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
3939 (regcache::registers_changed_ptid): Add process_stratum_target
3940 parameter.
3941 (regcache::m_target): New field.
3942 (registers_changed_ptid): Add process_stratum_target parameter.
3943 * remote.c (remote_state::supports_vCont_probed): New field.
3944 (remote_target::async_wait_fd): New method.
3945 (remote_unpush_and_throw): Add remote_target parameter.
3946 (get_current_remote_target): Adjust.
3947 (remote_target::remote_add_inferior): Push target.
3948 (remote_target::remote_add_thread)
3949 (remote_target::remote_notice_new_inferior)
3950 (get_remote_thread_info): Pass target down.
3951 (remote_target::update_thread_list): Skip threads of inferiors
3952 bound to other targets. (remote_target::close): Don't discard
3953 inferiors. (remote_target::add_current_inferior_and_thread)
3954 (remote_target::process_initial_stop_replies)
3955 (remote_target::start_remote)
3956 (remote_target::remote_serial_quit_handler): Pass down target.
3957 (remote_target::remote_unpush_target): New remote_target
3958 parameter. Unpush the target from all inferiors.
3959 (remote_target::remote_unpush_and_throw): New remote_target
3960 parameter. Pass it down.
3961 (remote_target::open_1): Check whether the current inferior has
3962 execution instead of checking whether any inferior is live. Pass
3963 target down.
3964 (remote_target::remote_detach_1): Pass down target. Use
3965 remote_unpush_target.
3966 (extended_remote_target::attach): Pass down target.
3967 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
3968 (remote_target::append_resumption): Pass down target.
3969 (remote_target::append_pending_thread_resumptions)
3970 (remote_target::remote_resume_with_hc, remote_target::resume)
3971 (remote_target::commit_resume): Pass down target.
3972 (remote_target::remote_stop_ns): Check supports_vCont_probed.
3973 (remote_target::interrupt_query)
3974 (remote_target::remove_new_fork_children)
3975 (remote_target::check_pending_events_prevent_wildcard_vcont)
3976 (remote_target::remote_parse_stop_reply)
3977 (remote_target::process_stop_reply): Pass down target.
3978 (first_remote_resumed_thread): New remote_target parameter. Pass
3979 it down.
3980 (remote_target::wait_as): Pass down target.
3981 (unpush_and_perror): New remote_target parameter. Pass it down.
3982 (remote_target::readchar, remote_target::remote_serial_write)
3983 (remote_target::getpkt_or_notif_sane_1)
3984 (remote_target::kill_new_fork_children, remote_target::kill): Pass
3985 down target.
3986 (remote_target::mourn_inferior): Pass down target. Use
3987 remote_unpush_target.
3988 (remote_target::core_of_thread)
3989 (remote_target::remote_btrace_maybe_reopen): Pass down target.
3990 (remote_target::pid_to_exec_file)
3991 (remote_target::thread_handle_to_thread_info): Pass down target.
3992 (remote_target::async_wait_fd): New.
3993 * riscv-fbsd-tdep.c: Include "inferior.h".
3994 (riscv_fbsd_get_thread_local_address): Pass down target.
3995 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
3996 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
3997 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
3998 Adjust.
3999 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
4000 * solib-svr4.c (enable_break): Pass down target.
4001 * spu-multiarch.c (parse_spufs_run): Pass down target.
4002 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
4003 * target-delegates.c: Regenerate.
4004 * target.c (g_target_stack): Delete.
4005 (current_top_target): Return the current inferior's top target.
4006 (target_has_execution_1): Refer to the passed-in inferior's top
4007 target.
4008 (target_supports_terminal_ours): Check whether the initial
4009 inferior was already created.
4010 (decref_target): New.
4011 (target_stack::push): Incref/decref the target.
4012 (push_target, push_target, unpush_target): Adjust.
4013 (target_stack::unpush): Defref target.
4014 (target_is_pushed): Return bool. Adjust to refer to the current
4015 inferior's target stack.
4016 (dispose_inferior): Delete, and inline parts ...
4017 (target_preopen): ... here. Only dispose of the current inferior.
4018 (target_detach): Hold strong target reference while detaching.
4019 Pass target down.
4020 (target_thread_name): Add assertion.
4021 (target_resume): Pass down target.
4022 (target_ops::beneath, find_target_at): Adjust to refer to the
4023 current inferior's target stack.
4024 (get_dummy_target): New.
4025 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
4026 has a thread running.
4027 (initialize_targets): Rename to ...
4028 (_initialize_target): ... this.
4029 * target.h: Include "gdbsupport/refcounted-object.h".
4030 (struct target_ops): Inherit refcounted_object.
4031 (target_ops::shortname, target_ops::longname): Make const.
4032 (target_ops::async_wait_fd): New method.
4033 (decref_target): Declare.
4034 (struct target_ops_ref_policy): New.
4035 (target_ops_ref): New typedef.
4036 (get_dummy_target): Declare function.
4037 (target_is_pushed): Return bool.
4038 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
4039 (all_matching_threads_iterator::all_matching_threads_iterator):
4040 Handle filter target.
4041 * thread-iter.h (struct all_matching_threads_iterator, struct
4042 all_matching_threads_range, class all_non_exited_threads_range):
4043 Filter by target too. Remove explicit.
4044 * thread.c (threads_executing): Delete.
4045 (inferior_thread): Pass down current inferior.
4046 (clear_thread_inferior_resources): Pass down thread pointer
4047 instead of ptid_t.
4048 (add_thread_silent, add_thread_with_info, add_thread): Add
4049 process_stratum_target parameter. Use it for thread and inferior
4050 searches.
4051 (is_current_thread): New.
4052 (thread_info::deletable): Use it.
4053 (find_thread_ptid, thread_count, in_thread_list)
4054 (thread_change_ptid, set_resumed, set_running): New
4055 process_stratum_target parameter. Pass it down.
4056 (set_executing): New process_stratum_target parameter. Pass it
4057 down. Adjust reference to 'threads_executing'.
4058 (threads_are_executing): New process_stratum_target parameter.
4059 Adjust reference to 'threads_executing'.
4060 (set_stop_requested, finish_thread_state): New
4061 process_stratum_target parameter. Pass it down.
4062 (switch_to_thread): Also match inferior.
4063 (switch_to_thread): New process_stratum_target parameter. Pass it
4064 down.
4065 (update_threads_executing): Reimplement.
4066 * top.c (quit_force): Pop targets from all inferior.
4067 (gdb_init): Don't call initialize_targets.
4068 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
4069 Declare.
4070 (windows_add_thread, windows_delete_thread): Adjust.
4071 (get_windows_debug_event): Rename to ...
4072 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
4073 * tracefile-tfile.c (tfile_target_open): Pass down target.
4074 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
4075 Forward declare.
4076 (switch_to_thread): Add process_stratum_target parameter.
4077 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
4078 parameter. Use it.
4079 (mi_on_resume): Pass target down.
4080 * nat/fork-inferior.c (startup_inferior): Add
4081 process_stratum_target parameter. Pass it down.
4082 * nat/fork-inferior.h (startup_inferior): Add
4083 process_stratum_target parameter.
4084 * python/py-threadevent.c (py_get_event_thread): Pass target down.
4085
75c6c844
PA
40862020-01-10 Pedro Alves <palves@redhat.com>
4087
4088 * remote.c (remote_target::start_remote): Don't set inferior_ptid
4089 directly. Instead find the first thread in the thread list and
4090 use switch_to_thread.
4091
78f2c40a
PA
40922020-01-10 Pedro Alves <palves@redhat.com>
4093
4094 * remote.c (remote_target::remote_add_inferior): Don't bind a
4095 process to the current inferior if the current inferior is already
4096 bound to a process.
4097
e7af6c70
TBA
40982020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4099 Pedro Alves <palves@redhat.com>
4100
4101 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
4102 If no process is specified, return null_ptid instead of
4103 inferior_ptid.
4104 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
4105 TARGET_WAITKIND_SIGNALLED with no pid.
4106
31ba933e
PA
41072020-01-10 Pedro Alves <palves@redhat.com>
4108
4109 * remote.c (first_remote_resumed_thread): New.
4110 (remote_target::wait_as): Use it as default event_ptid instead of
4111 inferior_ptid.
4112
735fc2ca
PA
41132020-01-10 Pedro Alves <palves@redhat.com>
4114
4115 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
4116
c17e02e1
PA
41172020-01-10 Pedro Alves <palves@redhat.com>
4118
4119 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
4120 not -1.
4121
ab1ddbcf
PA
41222020-01-10 Pedro Alves <palves@redhat.com>
4123
4124 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
4125 ptid to get_last_target_status.
4126 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
4127 ptid to get_last_target_status.
4128 * infcmd.c (continue_command): Don't pass a target_waitstatus to
4129 get_last_target_status.
4130 (info_program_command): Don't pass a target_waitstatus to
4131 get_last_target_status.
4132 * infrun.c (init_wait_for_inferior): Use
4133 nullify_last_target_wait_ptid.
4134 (get_last_target_status): Handle nullptr arguments.
4135 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
4136 (print_stop_event): Don't pass a ptid to get_last_target_status.
4137 (normal_stop): Don't pass a ptid to get_last_target_status.
4138 * infrun.h (get_last_target_status, set_last_target_status): Move
4139 comments here and update.
4140 (nullify_last_target_wait_ptid): Declare.
4141 * linux-fork.c (fork_load_infrun_state): Remove local extern
4142 declaration of nullify_last_target_wait_ptid.
4143 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
4144 to get_last_target_status.
4145
f3f8ece4
PA
41462020-01-10 Pedro Alves <palves@redhat.com>
4147
4148 * gdbthread.h (scoped_restore_current_thread)
4149 <dont_restore, restore, m_dont_restore>: Declare.
4150 * thread.c (thread_alive): Add assertion. Return bool.
4151 (switch_to_thread_if_alive): New.
4152 (prune_threads): Switch inferior/thread.
4153 (print_thread_info_1): Switch thread before calling target methods.
4154 (scoped_restore_current_thread::restore): New, factored out from
4155 ...
4156 (scoped_restore_current_thread::~scoped_restore_current_thread):
4157 ... this.
4158 (scoped_restore_current_thread::scoped_restore_current_thread):
4159 Add assertion.
4160 (thread_apply_all_command, thread_select): Use
4161 switch_to_thread_if_alive.
4162 * infrun.c (proceed, restart_threads, handle_signal_stop)
4163 (switch_back_to_stepped_thread): Switch current thread before
4164 calling target methods.
4165
db2d40f7
PA
41662020-01-10 Pedro Alves <palves@redhat.com>
4167
4168 * inferior.c (switch_to_inferior_no_thread): New function,
4169 factored out from ...
4170 (inferior_command): ... here.
4171 * inferior.h (switch_to_inferior_no_thread): Declare.
4172 * mi/mi-main.c (run_one_inferior): Use
4173 switch_to_inferior_no_thread.
4174
bd420a2d
PA
41752020-01-10 Pedro Alves <palves@redhat.com>
4176
4177 * infcmd.c (kill_command): Remove dead code.
4178
ddf5db90
PA
41792020-01-10 Pedro Alves <palves@redhat.com>
4180
4181 * remote.c (remote_target::mourn_inferior): No longer check
4182 whether the target is running.
4183
5018ce90
PA
41842020-01-10 Pedro Alves <palves@redhat.com>
4185
4186 * corelow.c (core_target::has_execution): Change parameter type to
4187 inferior pointer.
4188 * inferior.c (number_of_live_inferiors): Use
4189 inferior::has_execution instead of target_has_execution_1.
4190 * inferior.h (inferior::has_execution): New.
4191 * linux-thread-db.c (thread_db_target::update_thread_list): Use
4192 inferior::has_execution instead of target_has_execution_1.
4193 * process-stratum-target.c
4194 (process_stratum_target::has_execution): Change parameter type to
4195 inferior pointer. Check the inferior's PID instead of
4196 inferior_ptid.
4197 * process-stratum-target.h
4198 (process_stratum_target::has_execution): Change parameter type to
4199 inferior pointer.
4200 * record-full.c (record_full_core_target::has_execution): Change
4201 parameter type to inferior pointer.
4202 * target.c (target_has_execution_1): Change parameter type to
4203 inferior pointer.
4204 (target_has_execution_current): Adjust.
4205 * target.h (target_ops::has_execution): Change parameter type to
4206 inferior pointer.
4207 (target_has_execution_1): Change parameter type to inferior
4208 pointer. Change return type to bool.
4209 * tracefile.h (tracefile_target::has_execution): Change parameter
4210 type to inferior pointer.
4211
74375d18
PA
42122020-01-10 Pedro Alves <palves@redhat.com>
4213
4214 * exceptions.c (print_flush): Remove current_top_target() check.
4215
acdf84a6
PA
42162020-01-10 Pedro Alves <palves@redhat.com>
4217
4218 * remote.c (show_remote_exec_file): Show the current inferior's
4219 exec-file instead of the command variable's value.
4220
ec506636
PA
42212020-01-10 Pedro Alves <palves@redhat.com>
4222
4223 * record-full.c (record_full_resume_ptid): New global.
4224 (record_full_target::resume): Set it.
4225 (record_full_wait_1): Use record_full_resume_ptid instead of
4226 inferior_ptid.
4227
873657b9
PA
42282020-01-10 Pedro Alves <palves@redhat.com>
4229
4230 * gdbthread.h (scoped_restore_current_thread)
4231 <dont_restore, restore, m_dont_restore>: Declare.
4232 * thread.c (thread_alive): Add assertion. Return bool.
4233 (switch_to_thread_if_alive): New.
4234 (prune_threads): Switch inferior/thread.
4235 (print_thread_info_1): Switch thread before calling target methods.
4236 (scoped_restore_current_thread::restore): New, factored out from
4237 ...
4238 (scoped_restore_current_thread::~scoped_restore_current_thread):
4239 ... this.
4240 (scoped_restore_current_thread::scoped_restore_current_thread):
4241 Add assertion.
4242 (thread_apply_all_command, thread_select): Use
4243 switch_to_thread_if_alive.
4244
7f0ae84c
GB
42452020-01-10 George Barrett <bob@bob131.so>
4246
4247 * stap-probe.c (stap_modify_semaphore): Don't check for null
4248 semaphores.
4249 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
4250 for null semaphores.
4251
f5a7c406
AB
42522020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
4253
4254 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
4255 all source windows, and maintain horizontal scroll status while
4256 doing so.
4257
9ae6bf64
TT
42582020-01-09 Tom Tromey <tom@tromey.com>
4259
4260 PR tui/18932:
4261 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
4262 update_source_window, not print_source_lines.
4263
b2efe70c
AB
42642020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
4265
4266 * tui/tui.c (tui_enable): Register tui hooks after calling
4267 tui_display_main.
4268
5f23a082
CB
42692020-01-09 Christian Biesinger <cbiesinger@google.com>
4270
4271 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
4272
3061113b
SM
42732020-01-08 Simon Marchi <simon.marchi@efficios.com>
4274
4275 * thread.c (print_thread_info_1): Fix indentation.
4276
57d75002
CB
42772020-01-09 Christian Biesinger <cbiesinger@google.com>
4278
4279 * symtab.c (general_symbol_info::compute_and_set_names): Move the
4280 unique_xmalloc_ptr outside the if to always free the demangled name.
4281
6a053cb1
TT
42822020-01-08 Tom Tromey <tromey@adacore.com>
4283
4284 * xcoffread.c (enter_line_range, read_xcoff_symtab)
4285 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
4286 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
4287 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
4288 Remove.
4289 (section_offsets): New typedef.
4290 * symtab.c (fixup_section, get_msymbol_address): Update.
4291 * symmisc.c (dump_msymbols): Update.
4292 * symfile.h (relative_addr_info_to_section_offsets)
4293 (symfile_map_offsets_to_segments): Update.
4294 * symfile.c (build_section_addr_info_from_objfile)
4295 (init_objfile_sect_indices): Update.
4296 (struct place_section_arg): Change type of "offsets".
4297 (place_section): Update.
4298 (relative_addr_info_to_section_offsets): Change type of
4299 "section_offsets". Remove "num_sections" parameter.
4300 (default_symfile_offsets, syms_from_objfile_1)
4301 (set_objfile_default_section_offset): Update.
4302 (reread_symbols): No need to preserve section offsets by hand.
4303 (symfile_map_offsets_to_segments): Change type of "offsets".
4304 * stap-probe.c (relocate_address): Update.
4305 * stabsread.h (process_one_symbol): Update.
4306 * solib-target.c (struct lm_info_target) <offsets>: Change type.
4307 (solib_target_relocate_section_addresses): Update.
4308 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
4309 Update.
4310 * solib-frv.c (frv_relocate_main_executable): Update.
4311 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
4312 * solib-aix.c (solib_aix_get_section_offsets): Change return
4313 type.
4314 (solib_aix_solib_create_inferior_hook): Update.
4315 * remote.c (remote_target::get_offsets): Update.
4316 * psymtab.c (find_pc_sect_psymtab): Update.
4317 * psympriv.h (struct partial_symbol) <address, text_low,
4318 text_high>: Update.
4319 * objfiles.h (obj_section_offset): Update.
4320 (struct objfile) <section_offsets>: Change type.
4321 <num_sections>: Remove.
4322 (objfile_relocate): Update.
4323 * objfiles.c (entry_point_address_query): Update
4324 (relocate_one_symbol): Change type of "section_offsets".
4325 (objfile_relocate1, objfile_relocate1): Change type of
4326 "new_offsets".
4327 (objfile_rebase1): Update.
4328 * mipsread.c (mipscoff_symfile_read): Update.
4329 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
4330 parameter.
4331 * mdebugread.c (parse_symbol): Change type of "section_offsets".
4332 (parse_external, psymtab_to_symtab_1): Update.
4333 * machoread.c (macho_symfile_offsets): Update.
4334 * ia64-tdep.c (ia64_find_unwind_table): Update.
4335 * hppa-tdep.c (read_unwind_info): Update.
4336 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
4337 * dwarf2read.c (create_addrmap_from_index)
4338 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
4339 (process_psymtab_comp_unit_reader, add_partial_symbol)
4340 (add_partial_subprogram, process_full_comp_unit)
4341 (read_file_scope, read_func_scope, read_lexical_block_scope)
4342 (read_call_site_scope, dwarf2_rnglists_process)
4343 (dwarf2_ranges_process, dwarf2_ranges_read)
4344 (dwarf_decode_lines_1, var_decode_location, new_symbol)
4345 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
4346 Update.
4347 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
4348 Update.
4349 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
4350 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
4351 (process_one_symbol): Change type of "section_offsets".
4352 * ctfread.c (get_objfile_text_range): Update.
4353 * coffread.c (coff_symtab_read, enter_linenos)
4354 (process_coff_symbol): Update.
4355 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4356 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
4357
456e800a
TT
43582020-01-08 Tom Tromey <tromey@adacore.com>
4359
4360 * dwarf2read.c (parse_macro_definition): Use std::string.
4361 (parse_macro_definition): Likewise.
4362
6dfa2fc2
TT
43632020-01-08 Tom Tromey <tromey@adacore.com>
4364
4365 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
4366 (ATTR_ALLOC_CHUNK): Remove.
4367
421d1616
TT
43682020-01-08 Tom Tromey <tromey@adacore.com>
4369
4370 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
4371
43816ebc
TT
43722020-01-08 Tom Tromey <tromey@adacore.com>
4373
4374 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
4375 (dwarf2_compute_name, open_dwo_file): Likewise.
4376 (process_enumeration_scope): Use std::vector.
4377 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
4378 (partial_die_info::fixup, dwarf2_start_subfile)
4379 (guess_full_die_structure_name, dwarf2_name): Likewise.
4380 (determine_prefix): Update.
4381 (guess_full_die_structure_name): Make return type const.
4382 (partial_die_full_name): Return unique_xmalloc_ptr.
4383 (DW_FIELD_ALLOC_CHUNK): Remove.
4384
4212d509
TT
43852020-01-07 Tom Tromey <tromey@adacore.com>
4386
4387 PR build/24937:
4388 * stap-probe.c (class stap_static_probe_ops): Add constructor.
4389
06a6207a
JT
43902020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
4391
4392 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
4393
153d79c4
AB
43942020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
4395
4396 * stack.c (print_frame_info): Move disassemble_next_line code
4397 inside source_print block.
4398
66182876
EZ
43992020-01-06 Eli Zaretskii <eliz@gnu.org>
4400
4401 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
4402 gdb/signals.h, as we are now using native signal symbols.
4403
cbfa8581
SV
44042020-01-06 Shahab Vahedi <shahab@synopsys.com>
4405
4406 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
4407 overflow by an early check of content vs threshold.
4408 * tui/tui-source.c (tui_source_window::line_is_displayed):
4409 Likewise.
4410
3f602821
EZ
44112020-01-06 Eli Zaretskii <eliz@gnu.org>
4412
4413 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
4414
a08c904d
JT
44152020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
4416
4417 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
4418 export table if no section contains it's RVA.
4419
89a65580
EZ
44202020-01-06 Eli Zaretskii <eliz@gnu.org>
4421
4422 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
4423
8b7fcda2
HD
44242020-01-06 Hannes Domani <ssbssa@yahoo.de>
4425
4426 * source.c (print_source_lines_base): Set last_line_listed.
4427
a61b4f69
SV
44282020-01-06 Shahab Vahedi <shahab@synopsys.com>
4429
4430 * tui/tui-disasm.c: Remove trailing spaces.
4431
559e7e50
EZ
44322020-01-06 Eli Zaretskii <eliz@gnu.org>
4433 Pedro Alves <palves@redhat.com>
4434
4435 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
4436 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
4437 (windows_gdb_signal_to_target): New function, uses the above
4438 enumeration to convert GDB internal signal codes to equivalent
4439 Windows codes.
4440 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
4441 * windows-nat.c: Include "gdb_wait.h".
4442 (get_windows_debug_event): Extract the fatal exception from the
4443 exit status and convert to the equivalent Posix signal number.
4444 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
4445 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
4446 * gdbsupport/gdb_wait.c: New file, implements
4447 windows_status_to_termsig.
4448 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
4449 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
4450
f2302a34
AB
44512020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
4452
4453 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
4454 show_layout.
4455
6a5206eb
LM
44562020-01-05 Luis Machado <luis.machado@linaro.org>
4457
4458 * aarch64-linux-nat.c
4459 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
4460 and bfd_mach_aarch64.
4461
6ec1d75e
PW
44622020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4463
4464 * ui-file.c (stdio_file::can_emit_style_escape)
4465 (tee_file::can_emit_style_escape): Ensure style is used also on
4466 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
4467 to gdb_stdout.
4468 * main.c (set_gdb_data_directory): Use file style to output the
4469 warning that the given pathname is not a directory.
4470 * top.c (show_history_filename, gdb_safe_append_history)
4471 (show_gdb_datadir): Use file style.
4472
44f81a76
HD
44732020-01-03 Hannes Domani <ssbssa@yahoo.de>
4474
4475 * solib-target.c (struct lm_info_target):
4476 Change offsets to be a unique_xmalloc_ptr.
4477 (solib_target_relocate_section_addresses): Update.
4478
25057eb0
HD
44792020-01-03 Hannes Domani <ssbssa@yahoo.de>
4480
4481 * windows-nat.c (windows_clear_solib): Free so_list linked list.
4482
6e2118f5
BE
44832020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
4484
4485 * MAINTAINERS (Write After Approval): Add myself.
4486
8133c7dc
LM
44872020-01-02 Luis Machado <luis.machado@linaro.org>
4488
4489 * proc-service.c (get_ps_regcache): Remove reference to obsolete
4490 Cell BE architecture.
4491 * target.h (struct target_ops) <thread_architecture>: Likewise.
4492
48189bec
HD
44932020-01-01 Hannes Domani <ssbssa@yahoo.de>
4494
4495 * Makefile.in: Use INSTALL_PROGRAM_ENV.
4496
ead1063b
HD
44972020-01-01 Hannes Domani <ssbssa@yahoo.de>
4498
4499 * MAINTAINERS (Write After Approval): Add myself.
4500
e5d78223
JB
45012020-01-01 Joel Brobecker <brobecker@adacore.com>
4502
4503 * gdbarch.sh: Update copyright year range of generated files.
4504
b811d2c2
JB
45052020-01-01 Joel Brobecker <brobecker@adacore.com>
4506
4507 Update copyright year range in all GDB files.
4508
5f4def5c
JB
45092020-01-01 Joel Brobecker <brobecker@adacore.com>
4510
4511 * copyright.py: Convert to Python 3.
4512
51fd4002
JB
45132020-01-01 Joel Brobecker <brobecker@adacore.com>
4514
4515 * copyright.py: Adapt after move of gnulib directory from gdb
4516 directory to toplevel directory.
4517
5fb651f2
JB
45182020-01-01 Joel Brobecker <brobecker@adacore.com>
4519
4520 * copyright.py (main): Exit if run from the wrong directory.
4521
5dd8bf88
JB
45222020-01-01 Joel Brobecker <brobecker@adacore.com>
4523
4524 * top.c (print_gdb_version): Change copyright year to 2020.
4525
9f71dacb 45262020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 4527
9f71dacb 4528 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 4529
9f71dacb 4530For older changes see ChangeLog-2019.
c906108c
SS
4531\f
4532Local Variables:
4533mode: change-log
4534left-margin: 8
4535fill-column: 74
4536version-control: never
57da7796 4537coding: utf-8
c906108c 4538End: