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