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