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