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