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