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