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