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