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