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