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