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