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