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