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