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