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