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