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