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