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