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