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